- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Increase /usr and /tmp disk space
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
Discussions
Discussions
Forums
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
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
тАО06-25-2003 12:34 PM
тАО06-25-2003 12:34 PM
I have already allocated all of the space available on the disk to other mnt points..
Can you decrease the space allocated to a mnt point? I have a mnt point for /apps that contains 30Gig of disk space but only using around 5 Gig, I would like to make some the unused space available to both /usr and /tmp.
I am new to Unix so I apologize if the message is written poorly..
Thanks..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2003 12:46 PM
тАО06-25-2003 12:46 PM
SolutionI do question your need to increase /tmp; /tmp should really only be used by the OS; /var/tmp is intended for users and applications.
If your have OnlineJFS then you can do an fsadm and shrink the /apps filesystem and then do an lvreduce to reduce the size of the LVOL. You can then do an lvextend operation on the /usr and /tmp LVOLS and an fsadm to grow the filesystems.
Man fsadm_vxfs for details.
Now if you don't have OnlineJFS then things are more complicated so before going through that procedure or giving more detail on the OnlineJFS procedure, it would be good to know it you are OnlineJFS challenged or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2003 12:47 PM
тАО06-25-2003 12:47 PM
Re: Increase /usr and /tmp disk space
If you have OnlineJFS licensed, then you *may* be able to dynamically reduce the size of your /apps filesystem. I say "may" only because this generally will not work unless you have JFS version 3.3.
In the absence of the above, the best (only) way to decrease a filesystem's size is to back it up; 'lvreduce' the logical volume container in which the filesystem resides; 'newfs' the filesystem; and reload your data.
With regard to expanding '/usr' and '/tmp', then if you have a spare physical disk, then you could add it to the volume group, although I personally prefer vg00 to consist of a single disk (plus a single mirror).
If you don't have OnlineJFS, then to expand '/usr' and '/tmp' you will need to boot-up into single-user mode; 'lvextend' the logical volumes; and 'extendfs' the filesystem.
Since you are new to Unix, I urge you to consider using SAM *and* I urge you to take some time to read chapter-6 of "Managing Systems and Workgroups":
http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2003 12:49 PM
тАО06-25-2003 12:49 PM
Re: Increase /usr and /tmp disk space
If you have a current backup of your /apps then this is my suggestion:
- Delete the logical volume on which /apps mounts.
- Created a 10GB logical volume to mount /apps on.
- Restore /apps data to this new /apps.
- Now you have 20GB available to add to /usr and /tmp.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2003 01:00 PM
тАО06-25-2003 01:00 PM
Re: Increase /usr and /tmp disk space
shutdown -ry 0
interrupt
boot pri ipl
ISL> hpux -is
(only / and /stand should be mounted)
/sbin/lvextend -L XXX(MB) /dev/vg00/lvolx
/sbin/extendfs -F vxfs /dev/vg00/rlvolx
mount /dev/vg00/lvolx /usr
bdf (to check that it has been extended)
init 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2003 01:04 PM
тАО06-25-2003 01:04 PM
Re: Increase /usr and /tmp disk space
The /tmp filesystem is a bit annoying because by default the allocation is strict, meaning the new space must be contiguous.
If you have space contiguous to the end of /tmp you can do this.
init 1
brings the system down to run level 1
lvextend -L 1024 /dev/vg00/lvol6 /dev/dsk/c1t1d0
umount /tmp
extendfs -F vxfs /dev/vg00/rlvol6
1024 is the number of megabytes to expand /tmp to
The /dev/dsk entry is the chosen disk.
/var is even tougher.
To expand it without OnlineJFS, you will need to follow this procedure.
shutdown -ry now
interupt at the 10 second prompt
bo
Y Interact with the ISL
hpux -is
You have now booted to single user mode and can use the lvextend and extendfs commands to finish the job.
Good Luck,
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2003 08:11 PM
тАО06-25-2003 08:11 PM
Re: Increase /usr and /tmp disk space
Here's another idea and can only be called an "easy way" if this machine can afford the downtime involved. Make an ignite tape backup using 'make_recovery' with the "-Ai" options so that the recovery is interactive, then reduce/increase the size of the volumes when you go to restore the system from the recovery tape.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2003 09:45 PM
тАО06-25-2003 09:45 PM
Re: Increase /usr and /tmp disk space
1. boot to a single user mode
ISL > hpux -is
2. mount /usr ( for commands )
# umount /tmp
3. change the size of the logical volume
of tmp.
# lvextend -L
4. extend the file system with extendfs
# extendfs /dev/vg00/rlvol4
# mount /dev/vg00/lvol4 /tmp
5. boot the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2003 04:38 AM
тАО06-26-2003 04:38 AM
Re: Increase /usr and /tmp disk space
otherwise, you are off to single user land to make these changes if you do not have OnlineJFS