Operating System - HP-UX
1836770 Members
2126 Online
110109 Solutions
New Discussion

expanding /home after default install

 
SOLVED
Go to solution
Ferdinand_5
Advisor

expanding /home after default install

I been a silly boy and left the /home dir at 20 MB during a re-install. I need to expand this /home dir.
It should be possible to expand /home to 400 MB but how do I do that without using ignite?

My box:
***************************************
HP-UX kenny B.11.11 U 9000/800 702017538 unlimited-user license
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 71944 131872 35% /
/dev/vg00/lvol1 295024 36192 229328 14% /stand
/dev/vg00/lvol8 2609152 268976 2322416 10% /var
/dev/vg00/lvol7 1056768 1028152 28432 97% /usr
/dev/vg03/lvol2 4096000 2408583 1600742 60% /tport
/dev/vg00/lvol4 204800 14416 189096 7% /tmp
/dev/vg01/lvol4 8499200 6715220 1733822 79% /test
/dev/vg01/lvol3 9216000 6412780 2729120 70% /support
/dev/vg01/lvol1 8388608 6647645 1643849 80% /oracle
/dev/vg01/lvol2 8388608 6213231 2039544 75% /oracle/oradata
/dev/vg00/lvol6 925696 735496 188776 80% /opt
/dev/vg00/lvol5 20480 2280 18072 11% /home
/dev/vg02/lvol1 4194304 3199277 964537 77% /mnt/v2l1
/dev/vg02/lvol2 4194304 85353 3935149 2% /mnt/v2l2
/dev/vg02/lvol3 8388608 4565774 3734086 55% /mnt/v2l3
/dev/vg02/lvol4 8388608 5170654 3117730 62% /mnt/v2l4
/dev/vg03/lvol1 4096000 3585815 478529 88% /mnt/v3l1
/dev/vg03/lvol3 27361280 23154656 4142416 85% /mnt/v3l3
10 REPLIES 10
Victor BERRIDGE
Honored Contributor

Re: expanding /home after default install

Hi,
The easiest way is by using SAM,
Alternatives depends if you have online-JFS or not


All the best
Victor
Sridhar Bhaskarla
Honored Contributor

Re: expanding /home after default install

Hi,

Not a problem if you have enough space in your vg00. All you have to do is to unmount /home and then extend it. It should be easy if you don't have any application processes running out of /home.

1. Ask all your users to logoff. Find out the processes that are attached to this filesytem.

fuser -cu /dev/vg00/lvol5

If you don't find any PIDs, then go to step2. If you do, then do a 'ps -ef|grep pid' and see what those processes are doing. If they are not critical (make sure 100%), then kill them using the command 'fuser -k /dev/vg00/lvol5'.

2. Unmount /home

#umount /home

3. Extend the logical volume to say 1024MB.

lvextend -L 1024 /dev/vg00/lvol5
extendfs -F vxfs /dev/vg00/rlvol5

4. Mount it back and verify
#mount /home
#bdf /home

5. Ask your users to log back in.

If you have onlineJFS installed (swlist -l product |grep -i onlinejfs), then it's much easier. You can do it on the fly without distrubing the users.

lvextend -L 1024 /dev/vg00/lvol5
fsadm -b 1024m /home

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: expanding /home after default install

It's trivially easy if you have OnlineJFS; SAM will do the job just fine. If not, you will need to unmount /home and extend the LVOL first and then the filesystem. Hopefully, you have some unused extents in vg00. The good news is that /home doesn't even have to be in vg00 although vg00 is the common convention.
If it ain't broke, I can fix that.
Deoncia Grayson_1
Honored Contributor

Re: expanding /home after default install

The gurus got to you first, but home can be extended through sam or through online jfs, this shouldn't cause any problems to your root filesystem. It isn't like /var where the server constantly writing to it,just make sure no one is working in the home directory and then umount it and you can extend it.


If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Prashant Zanwar_4
Respected Contributor

Re: expanding /home after default install

If you have space in vg00, you can do it online if you have onlineJFS.


swlist -l bundle | grep -i JFS
lvextend -L path_to_lvol

fsadm -b

Hope this helps
Thanks
Prashant

"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Scot Bean
Honored Contributor

Re: expanding /home after default install

I guess one reason install defaults to a small size is that many folks use NFS to crossmount /home across all of their systems.

If this is your case, there is no need to expand /home on individual machines, just the NFS server.
Ferdinand_5
Advisor

Re: expanding /home after default install

I have:
# more fs
LOCAL=vxfs
#

I have done it once useing the command line.
How would I do it useing sam?

# pvdisplay /dev/dsk/c1t15d0
--- Physical volumes ---
PV Name /dev/dsk/c1t15d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 8
PE Size (Mbytes) 4
Total PE 4340
Free PE 2527
Allocated PE 1813
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

Btw: Gawd your quick!

F
Victor BERRIDGE
Honored Contributor
Solution

Re: expanding /home after default install

Depends if you have a X emulation or not...
under X be sure you have exported you DISPLAY=:0.0

sam&

otherwise just type sam...

I will take X to guide you:
Once opened click on "Disks and File Systems" then "Logical Volumes" - choose your lvol where mount directory = /home
Then
Action => Increase size


Simple no?

To know if you have ONline-JFS:
swlist¦grep JFS will show if bought separately
or swlist -l product¦grep JFS

All the best
Vi
Victor BERRIDGE
Honored Contributor

Re: expanding /home after default install

Just seen strange characters you should read pipe |

All the best
Victor
Ferdinand_5
Advisor

Re: expanding /home after default install

Everyone is such a help

Perfect solutions.

THX a lot!

F