1832936 Members
2619 Online
110048 Solutions
New Discussion

Enlarge

 
osama_9
Occasional Contributor

Enlarge

I want to know how to enlarge the VXFS on hp_unix 11.0 ....
the steps ..
thank u
3 REPLIES 3
Victor Fridyev
Honored Contributor

Re: Enlarge

Hi,

I guess, the easiest way to do this is to use SAM. You can do this from its menu.
If you want to do this by LVM, so
1. Define volume group and logical volume where the FS is built. Suppose, this is vgXX and /dev/vgXX/lvolY and the FS name is FFFF.
2. Check whether the volume group has a free space
vgdisplay vgXX |grep -i free
3. Unmount the file system
umount FFFF. If the file system is busy, you can resolve the problem by
fuser -kc XXXX
Please be careful with file systems on vg00. If you want to extend /var, /usr etc, you have to transfer your computer to single user mode.
4. Extend the appropriate logical volume:
lvextend -L NNNN /dev/vgXX/lvolY
NNNN is desired new size in MB
5. Extend the FS
extendfs -F vxfs /dev/vgXX/rlvolY
6. Mount the FS
mount XXXX

Don't forget to back up the FS before the exercize.
HTH
Entities are not to be multiplied beyond necessity - RTFM
monasingh_1
Trusted Contributor

Re: Enlarge

You may also want to check if you have online JFS using swlist. If that is available, then you can simply lvextend and then use fsadm -F vxfs -b (newlvsize*1024) /mount_point


Now need to unmount te filesystem...
Ted Buis
Honored Contributor

Re: Enlarge

I depends on which file system you want to enlarge and whether you have OnlineJFS or not. The / and /stand cannot be enlarged.
If you don't have OnlineJFS, then filesystems must be unmounted before they can be extended. SAM can do this for non system filesystems easily, and for anything other than / and /stand if you have OnlineJFS. But if you don't have OnlineJFS and want to extend /usr or /var you will have boot up in single user mode then:
lvextednd -Lxxxx /dev/vgXX/lvolX
umount /dev/vgXX/lvolX
extendfs /dev/vgXX/lvolX
mount /dev/vg00/lvolX

X is logical volume number
XX is volume group number
xxxx is the size in MB to which you want to grow.

Theoretically, you could drop to init 1 state, but then you typically have to issue more commands before you can unmount some of the file systems. Booting to single user mode is relatively foolproof.
Mom 6