Operating System - HP-UX
1833883 Members
1786 Online
110063 Solutions
New Discussion

Extension of VXFS File System

 
Samy_4
Frequent Advisor

Extension of VXFS File System

Hi all
I wanna know how to extend a VXFS File system online ? I'm using HP-UX 11i v1 OS and online JFS is installed

Thnx
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: Extension of VXFS File System

The standard process:

lvextend the logical volume
umount the filesystem
extendfs the filesystem.

Since you have OnlineJFS you can skip the umount and use fsadm to extend the filesystem while its in use.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Slawomir Gora
Honored Contributor

Re: Extension of VXFS File System

Hi,
1. extend you logical volumen
lvextend -L size_in_MB lvol_name
ex: lvextedn -L 1000 /dev/vgtest/lvol1

2. extend you fs using fsadm command
ex:
fsadm -F vxfs -b $((1024*size_in_MB)) /mount_point
RAC_1
Honored Contributor

Re: Extension of VXFS File System

Check if you have enough free space to extend FS
lvextend -L "new_size_in_MB" /dev/vgxx/lvolx
fsadm -b "size_in_mb" /dev/vgxx/lvolx or /FS_mount

bdf /FS

Anil
There is no substitute to HARDWORK
Devender Khatana
Honored Contributor

Re: Extension of VXFS File System

Hi,

The process posted above is perfect & you should not have any problems following the same.

Awarding a few points to the replies according to there relevance will be a nice thing for this forum.

HTH,
Devender
Impossible itself mentions "I m possible"
Geoff Wild
Honored Contributor

Re: Extension of VXFS File System

Course - first step I do - make sure there is room in the vg first with a

vgdisplay -v vgXX

Then,

lvextend -L /dev/vgXX/lvolX
fsadm -b M /mountpoint

Example:

lvextend -L 4096 /dev/vg01/lvol1
fsadm -b 4096M /test

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Cem Tugrul
Esteemed Contributor

Re: Extension of VXFS File System

Sammy,

JFS;
# umount
# lvextend â L /dev/vgXX/lvolX
-L set new size of lvol to n MB
# extendfs â F vxfs /dev/vgXX/rlvolX
# mount

Online JFS;
# lvextend â L /dev/vgXX/lvolX
-L set new size of lvol to n MB
# fsadm â F vxfs â b
-b set new file system size to n KB

Also have a look this pd
Our greatest duty in this life is to help others. And please, if you can't
vinod_25
Valued Contributor

Re: Extension of VXFS File System

hi samy
#lvextend -L /dev/vgXX/lvolX

#fsadm -F vxfs -b XXXXM /dev/vgXX/lvolXX

-F represents what filetype
-b represents the size
M represents 'Megabytes'

Example:

#fsadm -F vxfs -b 100M /dev/vg03/lvol02

This will extend lvol2 100 megabytes with a vxfs filetype

regards

Vinod k
Samy_4
Frequent Advisor

Re: Extension of VXFS File System

thx all