Unmirror Second disk (sdb)
HI,
I'm trying to unmirror my second disk sdb in the rootdg but was unable to do it correctly. Ayy help would be appreciated.
The Veritas version is 4.1 and the system is installed with the following RPMs on RHEL 5.0
VRTSvxvm-platform-4.1.40.00-MP4_RHEL5
VRTSvxfs-platform-4.1.40.00-MP4_RHEL5
VRTSvxfen-4.1.40.00-MP4_RHEL5
VRTSvxvm-common-4.1.40.00-MP4_RHEL5
VRTSvxfs-common-4.1.40.00-MP4_RHEL5
# vxprint -hvt -g rootdg
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
v dump - DISABLED ACTIVE 37748736 SELECT - fsgen
v oradump - DISABLED ACTIVE 4194304 SELECT - fsgen
v oravol - DISABLED ACTIVE 20971520 SELECT - fsgen
v rootvol - ENABLED ACTIVE 41945652 ROUND - root
pl rootvol-01 rootvol ENABLED ACTIVE 41945652 CONCAT - RW
sd sda-02 rootvol-01 sda 0 41945652 0 sda ENA
v swapvol - ENABLED ACTIVE 16384000 ROUND - swap
pl mirswapvol-01 swapvol DISABLED STALE 0 CONCAT - RW
pl swapvol-01 swapvol ENABLED ACTIVE 16384000 CONCAT - RW
sd sda-01 swapvol-01 sda 41945652 4192965 0 sda ENA
sd sda-04 swapvol-01 sda 67110137 12191035 4192965 sda ENA
When attempted to dis the mirswapvol-01 plex, I got the following error:
# vxplex -g rootdg dis mirswapvol-01
VxVM vxplex ERROR V-5-1-621 Enabled Volume swapvol would be left with no active restricted plexes,
When try to re-mirror the disk, it said sdb is already in the rootdg:
]# vxrootmir -t rootmirror sdb rootmir
sda is your root disk
AND
sdb is the dmp disk on which root disk is to be mirrored
Is this correct ? [y,n,q,?] (default: n) y
VxVM vxrootmir ERROR V-5-2-2238
Disk sdb is already being used as auto:sliced disk - in disk group -;
Disk cannot be used for mirroring root.
VxVM vxrootmir INFO V-5-2-0
To use this disk for root disk mirroring, remove it from the
VxVM disk group using the 'vxdg rmdisk' command and/or remove it
from the VxVM configuration with the 'vxdiskunsetup' utility
If try to remove sdb from rootdg, it said sdb is not in configuration:
]# vxdg -g rootdg rmdisk sdb
VxVM vxdg ERROR V-5-1-555 Disk sdb not found in configuration