Operating System - HP-UX
1752810 Members
5737 Online
108789 Solutions
New Discussion юеВ

extend my file system size

 
Bernard  Bravo
Advisor

extend my file system size

hi,

what is the fastest way to extend my file system size aside from using sam...

thanks in advance.


bernard
Do good, Look Good, Feel Good
8 REPLIES 8
Ian Dennison_1
Honored Contributor

Re: extend my file system size

if you have OnlineJFS, you should be able to extend the FileSystem online (have never used it myself).

commands to quickly extend a File System,
umount /filesystem
lvextend -L [New Size in MB] /dev/vg01/lvol1
extendfs -F vxfs /dev/vg01/rlvol1
mount /filesystem

This assumes the file system is specified in MB, it is JFS (VxFS) and it can be unmounted.

If you want to extend the FileSystem onto a specific disk, specify the disk device name on the end of the lvextend command,

Share and Enjoy! Ian
Building a dumber user
Rainer von Bongartz
Honored Contributor

Re: extend my file system size



suppose you are using LVM, you first have to extend your lgical volume

lvextend -L /dev/vgxx/rlvolyy


afterwards extend your (unmounted) FS

extendfs /dev/vgxx/rlvolyy


Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
eran maor
Honored Contributor

Re: extend my file system size

Hi

if you have install onlien jfs you need to do this :

lvextend -L newsize logical_voulme
fsadm -F type_of_fs -b newsize /tmp

if you dont have online jfs you can use ian des.

keep in mine that if the file system is in the vg00 you cant do it online and you must boot in a single user mode and do it .

another way is to do a ignite backup and then restore , over there you can change the size of the logical volume in the vg00 .

but if the file system is in a diff vg you can do it online .
love computers
Bernard  Bravo
Advisor

Re: extend my file system size

how can i check if i have online jfs installed...

thanks.
bernard
Do good, Look Good, Feel Good
Rainer von Bongartz
Honored Contributor

Re: extend my file system size


swlist -l product | grep JFS

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Bill Hassell
Honored Contributor

Re: extend my file system size

Without Online JFS, there are two answers, the choice depends on which filesystem you want to increase. The first 3 lvols in 10.20 (and higher) HP-UX are not extendable while all others can be extended BUT must un-mounted first. However, if you cannot un-mount the filesystem, you'll have to go into single user mode to perform the task.

If you need to extend / or /stand, let us know so we can advise...


Bill Hassell, sysadmin
federico_3
Honored Contributor

Re: extend my file system size

If you have JFS online installed you can extend the FS online without unmounting it

lvextend -L (total MBs) /dev/vgxx/lvolxxx
fsadm -F (FS type) -b (1024*MBs) /mountpoint


if not:

lvextend -L (total MBs) /dev/vgxx/lvolxxx
umount /mountpoint
extendfs /dev/vgxx/rvolxxxx
Deshpande Prashant
Honored Contributor

Re: extend my file system size

Hi
With Online JFS try

#lvextend -L (SIZE-In-MB) /dev/vgX/lvY
#fsadm -F vxfs -b (New-Size-in-MB) /Mountpoint

Use
#swlist |grep -i JFS to look for Online JFS product.

Thanks.
Prashant.
Take it as it comes.