1837900 Members
3130 Online
110123 Solutions
New Discussion

file system increase

 
navin
Super Advisor

file system increase

Hello,
I have to increase the filesystem /volme size.how do i check if i can do that online.
It is set up lvm/vxfs
i dont think it has onlinejfs.
pls advice
thanks
Learning ...
12 REPLIES 12
Ganesan R
Honored Contributor

Re: file system increase

Hi,

If you have not online JFS then you cannot extend it online.

check if you have online jfs installed or not by using swlist

#swlist -l product |grep -i online

if you don't have, you need to unmount and extend the filesytem using lvextend and extendfs commands
Best wishes,

Ganesh.
Gokul Chandola
Trusted Contributor

Re: file system increase

Hi,
plz provide os version.

Regards,
Gokul Chandola
There is always some scope for improvment.
Adam W.
Valued Contributor

Re: file system increase

I use this for LVOL extensions if NO ONline JFS is avalable:
A. umount /dev/vgxx/lvolx
(unmounts filesystem)
B. lvextend â L /dev/vgxx/lvolx
C. extendfs â F vxfs/hfs(/etc/fstab) â o largefiles
D. mount â a
AND this if ONLINE JFS IS available:

A. lvextend â L 4000 /dev/vgxx/lvolx
(increases the size of the lvol reads in megs by default)
Note: the â L option is not used to specify the amount of space you want to â growâ the lvol by. It is used to specify TOTAL space needed after the lvextend.
B. fsadm â F vxfs â b 39000M /filesystem
Note: fsadm command reads by Kbytes by default, Megs must be specified by the M after amount
There are two types of people in the world, Marines and those who wish they were.
Adam W.
Valued Contributor

Re: file system increase

Navin here is a little cheat sheet I use for my HP-UX 11.11 boxes.
There are two types of people in the world, Marines and those who wish they were.
OldSchool
Honored Contributor

Re: file system increase

WHICH volume / filesystem?

some of the stuff in vg00 requires contiguous allocations an is easier to handle with ignite.....
Pete Randall
Outstanding Contributor

Re: file system increase

First off, what file system is this? There is a "/" in your question that makes me wonder if you're talking about the root file system or you are talking about increasing both the logical volume and the file system it contains. If that is the case, look at the EXAMPLES section of the lvextend man page for guidance.


Pete

Pete
navin
Super Advisor

Re: file system increase

it's file system opt.it's in vg00
OS version is 11.23
thanks
Learning ...
James R. Ferguson
Acclaimed Contributor

Re: file system increase

Hi Navin:

> it's file system opt.it's in vg00

OK, so what. If you have OnlineJFS you don't need to unmount the filesystem to enlarge it. In this case, you use 'fsadm' after growing the logical volume with 'lvextend'.

If you don't have OnlineJFS then you can't use 'fsadm' and must first unmount the filesytem to enlarge it with 'extendfs' (after doing an 'lvextend').

It will be easiest if you boot *into* single-user mode where '/opt' isn't mounted. Then, use the commands in '/sbin'. When you are done, it is easiest to reboot again to resume normal operations.

For your reading pleasure see:

http://docs.hp.com/en/B2355-90950/index.html

Regards!

...JRF...
B V B Kumar
Frequent Advisor

Re: file system increase

Hi,

First check whether you have OnlineJFS product installed in your system to increase filesystem online.

#swlist -l product | grep -i onlinejfs

Then you can use fsadm command to increase.

If this product is not installed, you cannot increase filesystem online.

regards
Suraj K Sankari
Honored Contributor

Re: file system increase

Hi,

First check onlineJFS is there or not with swlist command if onlineJFS is there then no need to unmount the FS.
as well as you have to check this things also

vgdisplay vg00
PE Size (Mbytes) ?
Free PE ?

if you have free pe then only you can extend your /opt

Suraj
Johnson Punniyalingam
Honored Contributor

Re: file system increase

Hi Navin,
>> Increase the filesystem /volume size.how do i check if i can do that online >>

which volume are you going to increase..?

does your file system or Logical reside under vg00.?

also you need check do you have enough free disk space.?

vgdisplay /dev/vgxx

*****Free Space = Free PE x PE Size (Mbytes)

(if you have Onlin JFS)

lvextend -L /dev/vg00/lvol2
fsadm -f vxfs -b M
bdf --> verfiy "you have Increased the file system"

Extending Logical Volumes (without online JFS)
umount /dev/vgxx/lvolx --> this you need to check if your Logical volume reside under "vg00" also belongs to Operating File system (eg /var/ /opt/ /usr)
(note you can't unmount the file system) you need go HPUX Singel User mode)

shutdown -ry 0
Hit anykey to interupt the boot process

main Menu > bo pri
Interact with IPL (Y or N)?> y
Booting...
Hard booted

ISL> hpux -lm --> booting server in lvm maintance Mode

# mount -a

umount /var
lvextend -L /dev/vg00/lvolx
extendfs -F vxfs /dev/vg00/lvolx
mount /dev/vg00/lvolx /var

(Note if you Logical volume does not reside under vg00 or doesn't belong to Operating File system pls ignore the above steps)

fuser -c
umount /data --> example
lvextend -L /dev/vg01/lvolx
extendfs -F vxfs /dev/vg00/lvolx
mount /dev/vg01/lvolx /data
mount -a

Hope this helps you ,

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
SKR_1
Trusted Contributor

Re: file system increase

Go ahead with Johnson reply.

Thanks

SKR