- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /home full. Please suggest how to extend.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2007 09:54 PM
04-24-2007 09:54 PM
/home full. Please suggest how to extend.
$ uname -a
HP-UX lciahp27 B.11.31 U ia64 0695562488 unlimited-user license
$ bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 307672 735144 30% /
/dev/vg00/lvol1 1835008 151808 1670088 8% /stand
/dev/vg00/lvol7 2097152 363200 1720616 17% /var
/dev/vg00/lvol6 4194304 2910024 1274272 70% /usr
/dev/vg00/lvol5 2097152 114320 1967408 5% /tmp
/dev/vg00/lvol8 5308416 3373816 1919512 64% /opt
/dev/vg00/lvol4 8388608 8388608 0 100% /home
$ sudo fstyp /dev/vg00/lvol4
Password:
vxfs
Please suggest how to extend this.
Thanks & Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2007 10:04 PM
04-24-2007 10:04 PM
Re: /home full. Please suggest how to extend.
$sudo sam
>>Disks and File systems
>>Logical volumes
>>select lvol4 with space key
use tab key and arrow key to select Actions
>>select Increase Size
and
If space available in Volume Group is Ok set the new size.
regards,
mustafa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2007 10:12 PM
04-24-2007 10:12 PM
Re: /home full. Please suggest how to extend.
du -kx /home |sort -rn
will give you a list of the largest directories under /home. From there, go see what the person hogging all the space has in their directory.
Hope it helps
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2007 10:12 PM
04-24-2007 10:12 PM
Re: /home full. Please suggest how to extend.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2007 10:54 PM
04-24-2007 10:54 PM
Re: /home full. Please suggest how to extend.
Check what's is it being use for and evaluate alternative solutions because it makes no sense to need so much space for the /home filesystem.
Probably you need another filesystem to store some data that is currently stored in /home.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 12:32 AM
04-25-2007 12:32 AM
Re: /home full. Please suggest how to extend.
It is a good practice to clean the file system on a routine basis if you do not limit the disk usage by quota.
du -xk /home/* |sort -rn |more
will you give the usage of each dir.
find /home -type f -size +1000000c -mtime -1 -exec ls -lart {} \;
will give you the output of latest big files.
You can add more zeroes on the size to find bigger files
You can do these things:
-Ask the users to delete/move unwanted files immediately
-look for any core files
-As sysadmin you can move the big files to another file system and compress it and move back to the original place (while the filesystem is 100%, you cannot compress it) you have to move/compress/move back.
You can extend the filesytem (if it is online JFS) on the fly if you have enough free physical extents on vg00 - meanwhile also consider the other forum members' opinions as mentioned above.
Regards,
Rasheed Tamton.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 07:34 PM
04-25-2007 07:34 PM
Re: /home full. Please suggest how to extend.
General guidelines:
# lvdisplay -v /dev/vg00/lvol4 | more
- check allocation, check extents, check their distribution, check which physical volumes are being used at this logical volume etc.
# vgdisplay -v vg00
- check free extents on disks used at logical volume lvol4, check extent size etc.
# lvextend -l NUM /dev/vg00/lvol4 PVOL1 PVOL2
- NUM is total number of extents (wanted size in mb divided by extent size in mb, like we want 9gb = 9216mb wanted size / 16mb extent size = 576 extents
- PVOL1 is in context of lvm mirror the original physical volume, PVOL2 is mirrored physical volume.
# lvdisplay -v /dev/vg00/lvol4 | more
- check if all numbers fit (logical volume size, number of extents, their mirroring etc.)
# fsadm -F vxfs -b NUM /home
- NUM is the number of mb, you can take it from logical volume size checked in the previous command, for example 9216mb, so NUM would be 9216M (see that M at the end, it says megabytes).
# fill the /home up again
- this step is optional of course :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 01:23 AM
04-26-2007 01:23 AM
Re: /home full. Please suggest how to extend.
# du -sk /home/* | sort -n
Look at the files in users directory who consume the most space. I cannot tell you how many times I see people that have old trace files, etc, that they never clean up. I usually look for large text files and gzip them. Or just get with the offending users and ask them to clean up. Otherwise, you can check if you have any free extents available on vg00. If not you can add another disk to vg00. Then lvextend and use fsadm to extend the file system.
You should also see if you have onlinejfs installed.
# swlist | grep -i online
This will make the extending transparent to the users, as you will not need to umount /home in order to extend. Also, in order to lvextend you are going to have to cleanup /home. The command will not be able to work if the file system is completely full.