1833827 Members
2225 Online
110063 Solutions
New Discussion

HP-UX 11.22: lvextend

 
Mike Linger_2
Advisor

HP-UX 11.22: lvextend

I'm trying to install an application through SAM.

Initially, it looks like /opt was too small.

I've increased /opt to 3.5 GB (an increase of about 3 GB). I only needed an extra 200 MB, but I believe in overkill.

SAM reports the new volume size as 3504 MB in the logical volume manager. However, bdf reports that the volume is still small. Why?

I started with the GUI in SAM and increased the logical volume to 2000 MB. bdf still reported no change.

Then, I used the lvextend command:
lvextend -L 3000 /dev/vg00/lvol6

The volume manager in sam detected this increase, but bdf still doesn't notice the change.

Finally, I used sam to increase to 3500 MB. bdf still doesn't notice.

The GUI in sam reports that there is still not enough space to install my application. it looks like this installation application relies on bdf.
I Love Computers ... Sometimes
11 REPLIES 11
Steven E. Protter
Exalted Contributor

Re: HP-UX 11.22: lvextend

You need to run extendfs

sam should have done that for you though, there was probably an error.

extendfs -F vxfs /dev/vg##/rlvol6

as root. At least you'll see the error, whatever it is.

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
Stuart Abramson_2
Honored Contributor

Re: HP-UX 11.22: lvextend

fsadm with OnlineJFS.

Do you have Online JFS? If so:

lvextend -L 2500 /dev/vg00/lvol4
^
|-- lv_size

c. fsadm -b 2560000 /opt

Or:

d. fsadm -b 2500m /opt


Mike Linger_2
Advisor

Re: HP-UX 11.22: lvextend

Looks like fsextend requires that I unmount /opt.

Looks like I can't unmount /opt
device busy. I'm the only user on the system.
I Love Computers ... Sometimes
Robert-Jan Goossens
Honored Contributor

Re: HP-UX 11.22: lvextend

Hi,

Check with fuser or losf if some application is using /opt. Stop the application and try unmounting again.

Regards,

Robert-Jan.
Todd McDaniel_1
Honored Contributor

Re: HP-UX 11.22: lvextend

Maybe you didnt see Stuart's post above ...

IF you JFS online you can use fsadm to extend a mounted filesystem...

fsadm -b {extents*4096}

extendfs is valid only if you dont have JFSonline OR if you can umount the filesystem... but I wouldnt umount it if you can use fsadm.
Unix, the other white meat.
Sudhakar.J
Advisor

Re: HP-UX 11.22: lvextend

Hi,
In your case only LV is extended but not FS.So u have to extend FS also.

If u have JFS online installed on your machine, you can use fsadm -b . Otherwise you have to unmount the FS and run extendfs .
Then u can see new size in bdf also.

ATB
Sudhakar
Steven E. Protter
Exalted Contributor

Re: HP-UX 11.22: lvextend

Yes extendfs does require umount

If you are the only user on the system, you MIGHT be able to clear users as follows:

fuser -cuk /opt

That might blow you out of the system or affect applications, so be careful.

This assumes you do not have OnlineJFS.

That seems to be the case.

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
Camel_1
Valued Contributor

Re: HP-UX 11.22: lvextend

Mike, if the server does not have online-JFS installed I suggest you to boot the server into single user mode and expand /opt.
Mike Linger_2
Advisor

Re: HP-UX 11.22: lvextend

I don't have the JFS.

The fuser command did not unmount /opt

I've never seen this behavior before. I'm reinstalling the OS. This time, I will extend the volumes first.
I Love Computers ... Sometimes
Bernhard Mueller
Honored Contributor

Re: HP-UX 11.22: lvextend

You do not have to reinstall, just boot into single user mode and run
# vgchange -a y vg00
(assuming your root vg is vg00)
# extendfs -F vxfs /dev/vg00/rlvol6
(asssuming /opt is mounted from /dev/vg00/lvol6)


to boot into single user mode, connect to lan/web/serial console (whatever you have),
enter
# shutdown -r -y 0
interrrupt boot at the BCH (where it tells you that you have 10 seconds to interrupt the boot process), enter
bo pri
question "interact with ISL?" answer
y
at ISL>
enter
hpux -is

vgchange and extendfs as above
# mount -a
# bdf
# reboot

Regards,
Bernhard



Todd McDaniel_1
Honored Contributor

Re: HP-UX 11.22: lvextend

I guess from Mike's post he is Loading a new OS and Application on a new server...

Mike maybe you can elaborate.
Unix, the other white meat.