Operating System - HP-UX
1833777 Members
1886 Online
110063 Solutions
New Discussion

I need to increase a filesystem in root volume group using Online-JFS

 
SOLVED
Go to solution
Anand Sreenivasan
Regular Advisor

I need to increase a filesystem in root volume group using Online-JFS

I need step by step procedure to increase /usr and /var filesystem on my root volumegroup /dev/vg00. I have online-JFS installed. I did not know whether I should increase logical volume before running fsadm command. Any help in this is appreciated. Thanks
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: I need to increase a filesystem in root volume group using Online-JFS

You always run the lvextend command before running the fsadm command. Since you seem uncomfortable with this procedure, I suggest that you use SAM.

SAM -> Disks & Filesystems -> Logical Volumes

Hilight the desired LVOL then Actions -> Increase Size.

Sam will handle all the steps for you and do it safely. It's a good idea to check both filesystems to make sure that there is a lost+found directory in each one. Fsadm must have this directory to store the lock file.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: I need to increase a filesystem in root volume group using Online-JFS

Yes, you MUST extend the LV before you run fsadm.

Say your new size for /var (typically lvol8) is 2048MB. You would need to do:

# lvextend -L 2048 /dev/vg00/lvol8

# fsadm -b 2048m /var

Note the m at the end of the 2048 in the fsadm command. That allows you specify the size in MB rather than the typical 512KB blocks.
Gerald Taylor
Frequent Advisor

Re: I need to increase a filesystem in root volume group using Online-JFS

lvextend -L [n] /dev/[vg]/[lvol]

#where n is new logical volume size in MB

fsadm -f vxfs -b [x] /[mount_point]

#where x is filesystem size in KB

DocID USFKBRC00006800
Gerald
Anand Sreenivasan
Regular Advisor

Re: I need to increase a filesystem in root volume group using Online-JFS

Thanks guys. I was able to get that taken care of . Appreciate your help.
Anand Sreenivasan
Regular Advisor

Re: I need to increase a filesystem in root volume group using Online-JFS

Please see my earlier posting.Thanks