- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How do I increase the space in /var & /usr
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
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
12-31-2003 01:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2003 01:48 AM
12-31-2003 01:48 AM
Solutiondo lvextend and fsadm
lvextend -L new_size_in_MB lv_device_file
fsadm -b new_size_in_MB /var
2. If you do not have online jfs.
Goto to single user mode.
hpux -is
do
lvextend and extendfs.
(For both options you need to have enough free space )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2003 01:50 AM
12-31-2003 01:50 AM
Re: How do I increase the space in /var & /usr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2003 01:54 AM
12-31-2003 01:54 AM
Re: How do I increase the space in /var & /usr
You've got to boot the server in single-user mode to increase /var (lvol8) and /usr (lvol7):
#shutdown -r -y
boot pri
Interact with ISL? Yes
ISL>hpux -is
When you are in single user mode, increase the file system as follows:
#lvextend â L â new size in MBâ /dev/vg00/lvol7
#extendfs /dev/vg00/rlvol7
#lvextend â L â new size in MBâ /dev/vg00/lvol8
#extendfs /dev/vg00/rlvol8
#mount /usr
#mount /var
to verify the new size
and reboot the server on
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2003 02:01 AM
12-31-2003 02:01 AM
Re: How do I increase the space in /var & /usr
boot the box at the console
Interupt at the 10 second prompt
bo pri
Y(es) Interact
hpux -is
Now you can extend /var and /usr.
It would be a good idea to find out first where the lvm commands are and have the commands in a script with full path name.
I will always try to present a non OnlineJFS option even though I now have it in my shop.
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
12-31-2003 02:13 AM
12-31-2003 02:13 AM
Re: How do I increase the space in /var & /usr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2003 03:55 AM
12-31-2003 03:55 AM
Re: How do I increase the space in /var & /usr
Also make sure that you have enough space in the volume group that /var and /usr are in. If they are in vg00 do:
# vgdisplay /dev/vg00
and look at the Free PE value. To get the total number of free MB, multiply that value by PE Size (usually 4MB).
If there isn't enough space, there are other options you can do. But you would need to find that out first.
-Hazem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2003 06:35 AM
12-31-2003 06:35 AM
Re: How do I increase the space in /var & /usr
Seems like the question is already answered, but I feel you have a second question in the back of your head...
IF you have JFS online, then you can increase any LVOL on your box while in multi-user mode EXCEPT for / and /stand which MUST be contiguous extents... and require you to rebuild or ignite the box to extend them.
You would have to make a backup or 2 of your OS and then ignite and change the sizes of them and continue with the ignite process.
/var and /usr dont require contiguous space so you can do them in multi user mode, but I would schedule time where users are not on the box, just to make it quiet for your work.
However, it can be done "online" while the box is running with users. But always err on the side of caution.