cancel
Showing results for 
Search instead for 
Did you mean: 

How to add disk in existing mirror volume???

Tiger09
Level 4

HI,

My FS is running out of sapce, i need to extend file system asap but volumes are mirror 

, can u tell wht r the steps & wht kind precausion i have to take during this actvity??? 

1 ACCEPTED SOLUTION

Accepted Solutions

Gaurav_S
Moderator
Moderator
   VIP    Certified

Hi,

First find out how much space your DG has using "vxdg free "command

If there is no space, you need to add more disks to DG using " vxdg -g <dg> adddisk <DMdisk>=<DAdisk>". As you have mirrored volume, make sure you take double space in consideration. For e.g if you want to increase 10GB in FS, you need to add 20GB space. Also for vxresize to be successful, it is recommended that atleast 5% space is available in DG

Once DG has free space, use vxresize command to expand the volume

# vxresize -g <diskgroup> <vol> <new_length>

man page can be found here

https://sort.symantec.com/public/documents/sfha/6.1/solaris/manualpages/html/man/volume_manager/html/man1m/vxresize.1m.html

 

G

View solution in original post

2 REPLIES 2

Gaurav_S
Moderator
Moderator
   VIP    Certified

Hi,

First find out how much space your DG has using "vxdg free "command

If there is no space, you need to add more disks to DG using " vxdg -g <dg> adddisk <DMdisk>=<DAdisk>". As you have mirrored volume, make sure you take double space in consideration. For e.g if you want to increase 10GB in FS, you need to add 20GB space. Also for vxresize to be successful, it is recommended that atleast 5% space is available in DG

Once DG has free space, use vxresize command to expand the volume

# vxresize -g <diskgroup> <vol> <new_length>

man page can be found here

https://sort.symantec.com/public/documents/sfha/6.1/solaris/manualpages/html/man/volume_manager/html/man1m/vxresize.1m.html

 

G

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

In addition to Gaurav's excellent post, bear in mind that current layout must be maintained when both plexes are increased.

So, have a look at existing layout:

vxprint -g <dg-name> -htr <volume-name>

If single concatenated subdisks on hardware raid, find out if underlying luns can be extended.

If so, the VxVM disks can also be resized with 'vxdisk resize':

vxdisk [-f] [-g diskgroupresize {accessname|medianame} [length=value

See http://sfdoccentral.symantec.com/sf/5.0/aix/manpages/vxvm/vxdisk_1m.html 

Please read all the Notes dealing with resize.

Once done, you can use vxresize to grow the volume.

Hope this helps.