11-09-2011 05:11 AM
Hi Guys,
I need to extend a vxfs filesystem that is using subvolume. I did'nt manage to get the correct short way.
I managed to create up to subvolume, but didn't get how to extend the subvolume i have created in the main volume.
11-09-2011 07:41 AM
any comments? Appreciate for the help
11-10-2011 01:46 AM
Hi
Do you know how the volume was created ?
Could you provide vxprint -ht display i.e
vxprint -g p40sapdata1dg -ht sapdata1
It should be the case that a grow operation on the upper volume (sapdata1) will grow the sub structures required for the resize as long as there is free space
Look up vxresize command that will resize volume and file system
cheers
tony
11-10-2011 03:22 AM
RESIZE
VEA: ACTION -> VOLUMES T FS
VXASIST: VOLUME
FSADM: VXFS
VEA: Select action-> resize volume
CLI: vxassist -g datadg growto/growby Shrikto/Shrikby
vxresize -b fstype -g diskgroup volumen
vxassit growto/growby/shrinkto/shrinkby <volname> <length>
vxvol set len=<length> <volname>
RESIZE Dinamico:
VEA: ACTIONS-> RESIZE DISK
CLI: vxdisk -F -g DISKGROUP reize Dmname
resize a filesystem (ufs cannot be shrunk, only grown)
# vxresize -g <diskgroup> <volumename> + <size>
# vxresize -g <diskgroup> <volumename> - <size>
11-10-2011 04:43 AM
11-10-2011 04:45 AM
Here is the vxresize man page
https://sort.symantec.com/public/documents/sfha/5.1sp1/solaris/manualpages/html/man/volume_manager/html/man1m/vxresize.1m.html
11-11-2011 01:19 AM
I think there is little mis-calculation here...
you have total disk space of 6290209344 ( i.e 1048368224 * 6) which translates to 2999 G (approx 3000G)
what you have used currently is 3145090000 which translates to 1499 G (1500 G) :
v sapdata1 fsgen ENABLED 3145090000 - ACTIVE - -
pl sapdata1-04 sapdata1 ENABLED 3145090000 - ACTIVE - -
So you stil have almost 1499 G of space left...
So question is what is the issue with resize ?
Lets understand the volume structure, so you actually have concat at the top layer & mirror at the lower layer, so it is a concat-mirror
sv sapdata1-S01 sapdata1-04 ENABLED 1048368224 0 - - -
sv sapdata1-S02 sapdata1-04 ENABLED 1048368224 1048368224 - - -
sv sapdata1-S03 sapdata1-04 ENABLED 1048353552 2096736448 - - -
I would expect the resize to go normally over here because if you run a vxresize, it should ideally create one more subvolume & concat the same with existing subvolumes ..
vxresize -t <filesystem> <volume> <new_length>
Please note, for volume & FS both to resize, you should have FS mounted..
Is there any specific error you faced ?
Gaurav
11-13-2011 05:57 PM
1.5TB RAID1+0 of 2 way mirror required 3TB capacity.
No space left now.