05-10-2011 04:23 AM
Hi folks,
Can someone let me know the correct command to expand a mirror-stripe volume (nmirror=2, ncol=3) by 6GB using an additional x3 2gb disks from one enclosure and x3 2gb disks from a second enclosure?
Would it be something like: vxassist -b -g diskgroup +6gb volume_name layout=mirror-stripe new_disk1 new_disk2 new_disk3 mirror=enclr
Solved! Go to Solution.
05-11-2011 09:11 PM
Hello Jonny,
First thing I would suggest is to use a vxresize command (presuming that you have FS mounted & you are trying to expand the volume), vxresize will ensure that FS also is increased accordingly with the volume expansion.
Secondly, what is the SF version you are using ? if you have latest volume manager (5.x), to my knowledge, vxassist would be intelligent enough to discover that luns are appearing from different storage enclosures... In this case, if you simply give disk names after the vxresize command, volume manager should pick them up & increase the volume & FS for you.
So an e.g command like:
# vxresize -b -g <diskgroup> <volume> <new_size> <disk_1> <disk_2> ....
G
05-10-2011 05:21 AM
If your 2 enclosures are on different sites, then you should consider implementing the site awareness feature and this will ensure all volumes are mirrored across enclosures. This requires Enterprise license, but you also need Enterprise license to use DCOs which you should ideally be using if you have 2 enclosures.
With this feature you label the disks for each enclosure so that VM ensures a mirrored volume is created and takes disks from each enclosure. For more information see the "Administering sites and remote mirrors" section in the vxvm admin guide.
Mike
05-11-2011 09:11 PM
Hello Jonny,
First thing I would suggest is to use a vxresize command (presuming that you have FS mounted & you are trying to expand the volume), vxresize will ensure that FS also is increased accordingly with the volume expansion.
Secondly, what is the SF version you are using ? if you have latest volume manager (5.x), to my knowledge, vxassist would be intelligent enough to discover that luns are appearing from different storage enclosures... In this case, if you simply give disk names after the vxresize command, volume manager should pick them up & increase the volume & FS for you.
So an e.g command like:
# vxresize -b -g <diskgroup> <volume> <new_size> <disk_1> <disk_2> ....
G