Bill_Ranck
15 years agoLevel 4
Using vxassist to break mirror?
Yesterday I was able to mirror data from a striped volume onto a concat space:
vxassist -g calendar01dg -b mirror u01 layout=concat alloc=calendar01disk1
This worked just fine, and now I need to break the mirror leaving the new space and just dropping the old. The old space is being retired. So the disk group looks like this:
Manu#vxprint -qthg calendar01dg
dg calendar01dg default default 16000
dg calendar01dg default default 16000
dm calendar01d00 HDS9980V0_0 auto 2048 258336 -
dm calendar01disk1 Disk_9 auto 2048 427685632 -
dm calendar01d01 HDS9980V0_1 auto 2048 71186976 -
dm calendar01d02 HDS9980V0_2 auto 2048 71186976 -
dm calendar01d03 HDS9980V0_3 auto 2048 71186976 -
dm calendar01d04 HDS9980V0_4 auto 2048 71186976 -
dm calendar01d05 HDS9980V0_5 auto 2048 71186976 -
dm calendar01d06 HDS9980V0_6 auto 2048 71186976 -
dm calendar01disk1 Disk_9 auto 2048 427685632 -
dm calendar01d01 HDS9980V0_1 auto 2048 71186976 -
dm calendar01d02 HDS9980V0_2 auto 2048 71186976 -
dm calendar01d03 HDS9980V0_3 auto 2048 71186976 -
dm calendar01d04 HDS9980V0_4 auto 2048 71186976 -
dm calendar01d05 HDS9980V0_5 auto 2048 71186976 -
dm calendar01d06 HDS9980V0_6 auto 2048 71186976 -
v u01 - ENABLED ACTIVE 427000000 SELECT u01-01 fsgen
pl u01-01 u01 ENABLED ACTIVE 427000320 STRIPE 6/128 RW
sd calendar01d01-01 u01-01 calendar01d01 0 71166720 0/0 HDS9980V0_1 ENA
sd calendar01d02-01 u01-01 calendar01d02 0 71166720 1/0 HDS9980V0_2 ENA
sd calendar01d03-01 u01-01 calendar01d03 0 71166720 2/0 HDS9980V0_3 ENA
sd calendar01d04-01 u01-01 calendar01d04 0 71166720 3/0 HDS9980V0_4 ENA
sd calendar01d05-01 u01-01 calendar01d05 0 71166720 4/0 HDS9980V0_5 ENA
sd calendar01d06-01 u01-01 calendar01d06 0 71166720 5/0 HDS9980V0_6 ENA
pl u01-02 u01 ENABLED ACTIVE 427000000 CONCAT - RW
sd calendar01disk1-01 u01-02 calendar01disk1 0 427000000 0 Disk_9 ENA
pl u01-01 u01 ENABLED ACTIVE 427000320 STRIPE 6/128 RW
sd calendar01d01-01 u01-01 calendar01d01 0 71166720 0/0 HDS9980V0_1 ENA
sd calendar01d02-01 u01-01 calendar01d02 0 71166720 1/0 HDS9980V0_2 ENA
sd calendar01d03-01 u01-01 calendar01d03 0 71166720 2/0 HDS9980V0_3 ENA
sd calendar01d04-01 u01-01 calendar01d04 0 71166720 3/0 HDS9980V0_4 ENA
sd calendar01d05-01 u01-01 calendar01d05 0 71166720 4/0 HDS9980V0_5 ENA
sd calendar01d06-01 u01-01 calendar01d06 0 71166720 5/0 HDS9980V0_6 ENA
pl u01-02 u01 ENABLED ACTIVE 427000000 CONCAT - RW
sd calendar01disk1-01 u01-02 calendar01disk1 0 427000000 0 Disk_9 ENA
I checked and the old storage is all on c6t4 target while the new storage is c6t6:
Manu#vxdmpadm getsubpaths ctlr=c6
NAME STATE[A] PATH-TYPE[M] DMPNODENAME ENCLR-TYPE ENCLR-NAME ATTRS
================================================================================
c6t20000014C39D4612d0s2 ENABLED(A) - Disk_0 Disk Disk -
c6t20000014C39D4E26d0s2 ENABLED(A) - Disk_7 Disk Disk -
c6t4849544143484920523435304139394430303030d0s2 ENABLED(A) - HDS9980V0_6 HDS9980V HDS9980V0 -
c6t4849544143484920523435304139394430323331d0s2 ENABLED(A) - HDS9980V0_0 HDS9980V HDS9980V0 -
c6t4849544143484920523435304139394430303142d0s2 ENABLED(A) - HDS9980V0_1 HDS9980V HDS9980V0 -
c6t4849544143484920523435304139394430303531d0s2 ENABLED(A) - HDS9980V0_4 HDS9980V HDS9980V0 -
c6t4849544143484920523435304139394430303837d0s2 ENABLED(A) - HDS9980V0_2 HDS9980V HDS9980V0 -
c6t4849544143484920523435304139394430303643d0s2 ENABLED(A) - HDS9980V0_3 HDS9980V HDS9980V0 -
c6t4849544143484920523435304139394430303336d0s2 ENABLED(A) - HDS9980V0_5 HDS9980V HDS9980V0 -
c6t60A98000486E5A7153345A447139322Fd0s2 ENABLED(A) - Disk_9 Disk Disk -
NAME STATE[A] PATH-TYPE[M] DMPNODENAME ENCLR-TYPE ENCLR-NAME ATTRS
================================================================================
c6t20000014C39D4612d0s2 ENABLED(A) - Disk_0 Disk Disk -
c6t20000014C39D4E26d0s2 ENABLED(A) - Disk_7 Disk Disk -
c6t4849544143484920523435304139394430303030d0s2 ENABLED(A) - HDS9980V0_6 HDS9980V HDS9980V0 -
c6t4849544143484920523435304139394430323331d0s2 ENABLED(A) - HDS9980V0_0 HDS9980V HDS9980V0 -
c6t4849544143484920523435304139394430303142d0s2 ENABLED(A) - HDS9980V0_1 HDS9980V HDS9980V0 -
c6t4849544143484920523435304139394430303531d0s2 ENABLED(A) - HDS9980V0_4 HDS9980V HDS9980V0 -
c6t4849544143484920523435304139394430303837d0s2 ENABLED(A) - HDS9980V0_2 HDS9980V HDS9980V0 -
c6t4849544143484920523435304139394430303643d0s2 ENABLED(A) - HDS9980V0_3 HDS9980V HDS9980V0 -
c6t4849544143484920523435304139394430303336d0s2 ENABLED(A) - HDS9980V0_5 HDS9980V HDS9980V0 -
c6t60A98000486E5A7153345A447139322Fd0s2 ENABLED(A) - Disk_9 Disk Disk -
So, I issued this vxassist command, which if I am reading the man page correctly should do what I want, however . . .
Manu#vxassist -g calendar01dg remove mirror u01 \!target=c6t4
VxVM vxassist ERROR V-5-1-1102 Unrecognized attribute: !target=c6t4
VxVM vxassist ERROR V-5-1-1102 Unrecognized attribute: !target=c6t4
Do I need to list the individual disks, or what? The striped vs. concat thing makes me a bit hesitant to delete plexes one at a time, but I suppose I can if that's the only way, but it seems like vxassit ought to work here.
The vxplex -o rm dis ... will not remove the disks from the disk group, it only dissociates (and removes/deletes) the specified plex. ie: if you had other plexes using the same disks, you would need to run the command for those plexes too.
You will need to run separate commands to remove the diskgroup once the plex has been removed - either via vxdiskadm or vxdg -g <dg> rmdisk <dmname1> [, ... etc]
You shouldn't need to resync the device group until after the disks are removed from the dg