1846788 Members
5091 Online
110256 Solutions
New Discussion

/Home Directory

 
Saifudheen_1
Advisor

/Home Directory

Hi,

I have hpunix 10.20 installed on HP D class 9000. Now my home directory become full, when i check BDF command its, showing 100% used. is there any way to increse my home directory?

Pls give any solutions

Regads,
saf
8 REPLIES 8
Robert-Jan Goossens
Honored Contributor

Re: /Home Directory

Hi Saf,

Yes, If you got some free space left in your volume group.

Check if you have.

# vgdisplay -v /dev/vg00
If you have free extends left.

# umount /home
# lvextend -M new_size_in_MB /dev/vgXX/lvolX
# extendfs -F hfs /dev/vgXX/rlvolX
I suspect you use hfs filesystems, check the output from /usr/bin/fstyp /dev/vgXX/lvolX.

# mount /home

# bdf

Hope this helps,
Robert-Jan

Ps.
http://www.compute-aid.com/extend_vg00.htm
Joseph Loo
Honored Contributor

Re: /Home Directory

hi,

first check the available space in your vg00.
# vgdisplay vg00
# lvdisplay /dev/vg00/
# lvdisplay /dev/vg00/lvol4 [example]

once you have identity the space. do this:
# lvextend -L /dev/vg00/lvol4 [example]

you must un-mount /home
# umount /home
if not possible, you may have to restart the server in single-user boot.

if able to un-mount, then extend via:
# /usr/sbin/extendfs /dev/vg00/rlvol4 [example]

then mount it up again:
# mount /dev/vg00/lvol4 /home [example]

please reply if you have problem with restarting as single user.

regards.
what you do not see does not mean you should not believe
Sarvesh A Dhuri
Advisor

Re: /Home Directory

Hi

Hey check whether you have any free extends are available on the volume group where the /home is been created

vgdisplay -v vgXX (where XX is may be 00 , 02 and so on)

if you have any space available then use follwing procedure

umount /home
lvextend -L (specify size in MB) /dev/vgXX/lvolXX

extendfs -F (specify file system type) /dev/vgXX/rlvolXX

mount /dev/vgXX/lvolXX /home

I have been betrayed by our own People
lawrenzo
Trusted Contributor

Re: /Home Directory

Hello,

once you have checked there is available disk you can check to see if you have online JFS which means you don't need to unmount the filesystem:

swlist |grep -i onlinejfs

if it is installed then:

#lvextend -L /dev/vg/lvol
#fsadm -f vxfs -b /home

hope this helps
hello
Bill Hassell
Honored Contributor

Re: /Home Directory

/home is often abused by users so you might want to see which users are occupying the most space:

du -kx /home | sort -rn | more

Then look in the biggest directories to see if there are junk files that can be removed. /home will grow without bounds unless you place some controls on it.


Bill Hassell, sysadmin
Sanjay_6
Honored Contributor

Re: /Home Directory

Hi,

Since /home is one of those filesystems that can be unmounted, you can unmount it, do a lvextend / extendfs to increase the size and then remount it. Make sure any users who have home directories in /home or are running any processes from home are logged out and their processes stopped / killed.

If you have online jfs this can be done without unmounting by using lvextend / fsadm and without asking any user to log out.

Hope this helps.

Regds
SS_6
Valued Contributor

Re: /Home Directory

Yes you can extend it online if you have online JFS installed. Please note that you have to free up some space and bring the file system to a little bit less than to extend it alse you will get an error. You can move some files to /var/adm/crash and put them back once FS is extended.
To see logival volume do
#bdf /home
See if space is available in vg00 and on both primary and mirroe disks.
#vgdisplay -v vg00|more
For example if you want to extend /home to new size of 800MB
#lvextend -L 800 /dev/vg00/lvolxx
#fsadm -b 800M /home
If you extend a already mirrored logical volume, the mirror will also get extended automatically.
By providing solutions I am helping myself
Sanjiv Sharma_1
Honored Contributor

Re: /Home Directory

Hi Saf,

First you should check if you can move/remove some unwanted files from /home
# du -axk /home | sort -nr |more

Incase you find that there are no unwanted files then we have to think on increasing the filesystem.

Take the filesystem backup of /home.

Check the availability of space in vg00
# vgdisplay -v /dev/vg00
If there are free space available.

Without Online JFS.
# shutdown 0
This will bring the server in a single user mode and ensure that all the users are logged out.
# mount -a
# bdf (Check the size of /home, say 500MB)
You want it to be 1 GB
# lvextend -L 1000 /dev/vg00/lvolX
lvolX is the logical volume of /home.
# umount /home
# extendfs /dev/vg00/rlvolX
# mount -a
# init 3

With Online JFS installed,
# lvextend -L 1000 /dev/vg00/lvolX
# fsadm -b 1000M /home

All the best.
Everything is possible