1831647 Members
2352 Online
110029 Solutions
New Discussion

Extending Mount Points

 
Bob Pedi
Occasional Contributor

Extending Mount Points

When I installed HP-UX 11.0 the OS is allocating only 2 gig of a 10 gig drive. How do I extend the other 8 gig that is free?

Thanks
9 REPLIES 9
Sandip Ghosh
Honored Contributor

Re: Extending Mount Points

During installation you can change the allocated size of the filesystems. During installation go to the filesystems tab and increase the filesystems as per your requirement. Standard config takes around 4 Gb of disk space.

Sandip
Good Luck!!!
Ted Ellis_2
Honored Contributor

Re: Extending Mount Points

run vgdisplay -v vg00

it will report both the volume group and logical volume stats for the volume group

it will end by reporting the physical volume details (disk space used and available, etc)

do you want to extend existing mointed file systems (like /home) or create new ones?

To extend the file systems already mounted will depend on your configuration... do you have OnLineJFS installed?

to create them from scratch, use the lvcreate command... check the man pages for details as there are several options. If you give us some specs on what you want I am sure the forum has someone with the answer

Ted
Pete Randall
Outstanding Contributor

Re: Extending Mount Points

Bob,

You can use SAM to extend the existing logical volumes or add new ones. A complete re-arrangement would probably require a re-install, as previously noted.

Pete

Pete
S.K. Chan
Honored Contributor

Re: Extending Mount Points

It depends on whether you're planning to extend the existing logical volume size created during install or using the free space for some other logical volume. You can plan ahead and modify/change the filesystem size during the installation itself, that way you do not need to extend the filesystem like (/tmp;/var;/opt;/usr). If you're planning to use the free space available after your OS installation, say you want to create a 2GB filesystem for /opt/apps, you would simply ..
# lvcreate -L 2000 -n lvol8 /dev/vg00
==> Creating "lvol8" (2GB) in vg00
# mkdir /opt/apps
# newfs -F vxfs /dev/vg00/rlvol8
# mount /dev/vg00/lvol8 /opt/apps
# vi /etc/fstab
==> Edit appropriately to make the mount point permanent.

Keep in mind (if you can afford it) "vg00" should only have "non-data" LVs. Doing that can simplify the recovery process.
harry d brown jr
Honored Contributor

Re: Extending Mount Points


filesystem (aka Logical Volume) at a time.

live free or die
harry
Live Free or Die
S.K. Chan
Honored Contributor

Re: Extending Mount Points

oops .. you said "extending mount points" .. in that case it is much easier if you have OnlineJFS ( can increase mounted FS on-the-fly ). If you don't you would have to do it the old-fashion way (ie umount the FS first then lvextend it) ..
Usually you would not be able to umount vg00 filesystem in multi-user mode. Bring the system down in single-user-mode (ISL> hpux -is) then do this .. (example increasing /opt - lvol5 to 4GB)..
# /etc/umount /opt
==> Only if it's mounted. It should not in single-user-mode.
# lvextend -L 4000 /dev/vg00/lvol5
==> 4GB is the new size
# /usr/sbin/extendfs /dev/vg00/rlvol5
# /etc/mount -a
==> Check the new size.
Reboot the system. Keep in mind extending contigous LVs (/,/stand and swap) is not going to be straight forward and the above won't work.

Donald Kok
Respected Contributor

Re: Extending Mount Points

Hi,

making a new filesystem goes basicaly like this:

- decide how big it will be, and where it come in the tree.
- lvcreate -L size_in Mb /dev/vg00
- this results in a new lv, say lvol9
- newfs -F vxfs /dev/vg00/rlvol9
- mkdir /where_it_will_be
- mount /dev/vg00/lvol9 /where_it_will_be


extending a filesystem is possible through onlinejfs (which must be bought seperately) , and without:

in both ways you do
- lvextend -L new_size_in_Mb /dev/vg00/lvol9

in onlinejfs you do:
- fsadm -F vxfs|hfs /mountpoint

without onlineJFS you do:
- umount /mountpoint
- extendfs -F vxfs|hfs /dev/vg00/rlvol9
- mount /mountpoint

The trouble with the not-onlineJFS-way is that some mountpoints (like /tmp, /var, / ...) can not be unmounted. Therefore you have to reboot in single user mode. There fore you sit behind the console:
- let users log out
- shutdown -ry 0
- interrupt boot proces when it asks you
- load hpux -is
- do the trick and reboot again

Good luck
Donald


My systems are 100% Murphy Compliant. Guaranteed!!!
Dave Wherry
Esteemed Contributor

Re: Extending Mount Points

The other posts have explained how to do it. I'm wondering what exactly you are trying to do. If your OS only needs 2GB why extend exisiting logical volumes/file systems to use up the other 8GB? That's what the question sounds like.
If you do not need it, keep it in reserve. If you allocate all of the disk space and then later have a need for more, either for an existing logical volume or a new one, it's much more difficult to reclaim it.
HP used to ship their new systems with all of the boot disk assigned. They would create the usual file systems at default sizes and then allocate the remainder to swap. 500MB of swap on a system with 32MB of memory did not make sense. They now leave it unassigned so the customer can use it as they please.
V. Nyga
Honored Contributor

Re: Extending Mount Points

Hi Bob,

I'm with Dave, why do you want to extend the OS?
Have you installed Swap?
It should be twice of your RAM.
You can do this with the SAM.

And don't worry - one time (HP-UX 20.1?) also 10 gig will be too less. ;))

Volkmar
*** Say 'Thanks' with Kudos ***