- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: extending /var
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
05-07-2002 11:31 PM
05-07-2002 11:31 PM
I am trying to extend /var and have done the following.
since /var is already mounted extended the logical volume
lvextend -l 400 /dev/vg00/lvol8
i have tried to change run levels by running
- init s
- killall
but when i try to umount /var i get an error message that the device is busy and cannot unmount the device. So i tried it the traditional way.
-shutdown
waited for the 60 sec grace period and the 20 sec single user mode period . now i know i am definately in single user mode.
however when i try to umount /var i still get the same error message. i run bdf and can see that
/
/var
/usr
/home
are mounted
i don't think this is very normal. Is there anything else I can try to unmount /var to extend it. I am not using on-line JFS, using version 11.0, A-class.
if i remove the entry from the /etc/fstab file will that be a bad thing?
thanks in advance
Maria
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 11:39 PM
05-07-2002 11:39 PM
SolutionSometimes some processes associated with
some filesystems will not terminate
going into single user mode, going down.
I suggest you reboot the system into
single user mode, and then increasing
your logical volume.
interrupt the boot
At the ISL prompt:
ISL> hpux -is
system boots in single user mode
increase your logical volume
extend your filesystem using 'extendfs'
put system into multi-user mode,
control-d or init 3 or 4 depending
on the first line or /etc/inittab
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 11:42 PM
05-07-2002 11:42 PM
Re: extending /var
Check this document.
This should help you.
http://us-support.external.hp.com/cki/bin/doc.pl/sid=0c318d8d0c2216306d/screen=ckiDisplayDocument?docId=200000046785431
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 11:42 PM
05-07-2002 11:42 PM
Re: extending /var
You can use fuser to find out which processes are using the filesystem.
processes like syslogd write to /var
Hope this helps
Hilary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 11:49 PM
05-07-2002 11:49 PM
Re: extending /var
As said Michael, the easy way is by rebooting in single user mode.
lvextend -l 400 will extent up 1.6 Gb !!!
I usualy create a new lvol to store /var/adm/sw/save. If you cant reboot now this is a easy trick to dealocate space in /var.
lvcreate -L 500 /dev/vg00
newfs /dev/vg00/rlvolxxx
mount /dev/vg00/lvolxx /tmp_mnt
cd /var/adm/sw/save
mv * /tmp_mnt
umount /tmp_mnt
edit /etc/fstab and add a new filesystem to mount
/dev/vg00/lvolxxx /var/adm/sw/save vxfs delaylog 0 2
mount /var/adm/sw/save.
And please do not remove /var from /etc/fstab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 11:56 PM
05-07-2002 11:56 PM
Re: extending /var
I usually take the following steps. They work for me:
1. Reboot and in single user mode type:
2. boot pri isl
3. hpux -isl
4. mount -a
5. umount /dev/vg00/lvol8
6. lvextend -L 400 /dev/vg00/lvol8
7. extendfs /dev/vg00/lvol8
8. mount /dev/vg00/lvol8 /var
9. reboot
Regards,
Mateja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 11:59 PM
05-07-2002 11:59 PM
Re: extending /var
First couple of queries.
1. Have you got OnlineJFS?
If yes, then use fsadm to do extend the /var filesystem. So there is no issue of unmounting the /var filesystem.
2. If you dont have OnlineJFS then you need to unmount the filesystem after you run the lvextend command. Because mere running lvextend will not extend the filesystem, you need to run the 'extendfs' command. So my suggestion is to straight away shutdown the machine and then boot it in single user mode by using ISL> hpux -is
After that use extendfs to extend the filesystem.
-Sukant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2002 12:32 AM
05-08-2002 12:32 AM
Re: extending /var
thanks for all your help,
using ISL worked.
Why doesn't the "shutdown (boot in single user mode)" command work?
even after rebooting the system? I don't understand why it would still have processors attached to it if you do a reboot then a shutdown into single user mode without using the ISL fuction?
Carols thanks for the tip, I was trying to extend /var for that particular purpose. didn't think to move it elsewhere.
Maria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2002 12:44 AM
05-08-2002 12:44 AM