09-24-2009 05:51 AM
Hi,
to resize (expand ) a vxfs filesystem, based on volume home, I would do something like
this:
1.This is my mirrored layout:
v home - ENABLED ACTIVE 58720256 ROUND - fsgen
pl HOME_0 home ENABLED ACTIVE 58720256 CONCAT - RW
sd HOME_00 HOME_0 DECALOG00 0 58720256 0 EMC0_0 ENA
pl home_0 home ENABLED ACTIVE 58720256 CONCAT - RW
sd home_00 home_0 decalog00 0 58720256 0 EMC1_0 ENA
2. These are my disks
#vxdg free
GROUP DISK DEVICE TAG OFFSET LENGTH FLAGS
decalog DECALOG00 EMC0_0 EMC0_0 58721312 47273696 -
decalog decalog00 EMC1_0 EMC1_0 58720256 47274752 -
3. make two new subdisks:
vxmake -g decalog sd HOME_01 disk=DECALOG00 offset=58721312 len=42000000
vxmake -g decalog sd home_01 disk=decalog00 offset=58720256 len=42000000
4. associate the subdisk with the existing plexes
vxsd assoc HOME_0 HOME_01
vxsd assoc home_0 home_01
5. grow Volume and Filesystem
vxresize -F vxfs -g decalog home <new length>
The syntax of the resize command is not clear to me. The new size of the volume should be
58720256 + 42000000 = 100720256 ( blocks )
So is this the correct command:
vxresize -F vxfs -g decalog home 100720256 ( growto?? )
or this one
vxresize -F vxfs -g decalog home + 42000000 (growby?? )
or a different other syntax???
Veritas 5.0 / Solaris 10
THX!
Heinz
Solved! Go to Solution.
09-24-2009 06:45 AM
09-24-2009 06:45 AM
09-24-2009 07:25 AM
g_lee,
thank you. That helps me a lot!
"Also note it wasn't necessary to associate the subdisks beforehand .."
Because I want to give the subdisks a special naming I've created them at first.
I've found a second way ( 2 steps :(
1. growing the volume
vxassist -g decalog growto home 100720256
2. growing the filesystem
fsadm -F vxfs -b 100720256 <mount point >
Can you agree with the second way?
Heinz
09-24-2009 08:16 AM
09-24-2009 08:56 AM
09-24-2009 11:18 AM
09-25-2009 05:50 AM