- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to increase the /var 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
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
11-12-2001 02:59 AM
11-12-2001 02:59 AM
How to increase the /var space?
today i read this on my system:
vxfs: mesg 001: vx_nospace - /dev/vg00/lvol8 file system full (1 block extent)
Short file
ERROR: PHCO_24723.depot checksum is 05381 should be 12857
ERROR: wc results of PHCO_24723.depot are 98664 285243 13724498 should be 124069
363010 18155520
/dev/vg00/lvol8 512000 504116 7585 99% /var
Unfortunatly, it's full.
Someone can explain me the correct procedure to add a disk and dedicate his space to /var?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 03:07 AM
11-12-2001 03:07 AM
Re: How to increase the /var space?
Finally do symbolic link.
# mount /dev/vgXX/lvolY /new_var
# cd /var ; find . | cpio -pdmuxl /new_var
# dircmp -s /var /new_var
# rm -rf /var
# ln -s /new_var /var
Hope this helps,
Hope this helps,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 03:11 AM
11-12-2001 03:11 AM
Re: How to increase the /var space?
Did you check that there is no space left on the vg00 ? (vgdisplay -v vg00 --> free PE). If you have enough free PE go to b
a. To add a disk cxtydz to vg00:
pvcreate /dev/rdsk/cxtydz
then
vgextend vg00 /dev/dsk/cxtydz
b. Then to extend the logical volume
lvextend -L
where the size is the the total size after extending the lv.
c. To extend the file system if you have OnlineJFS :
fsadm -F vxfs -b
where the size is 1024*size in Mo
else you will have to run the system in single user mode to have no process on /var and type extendf -F vxfs /dev/vg00/rlvol8
Fr??d??ric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 03:12 AM
11-12-2001 03:12 AM
Re: How to increase the /var space?
lvextend -L xxMb /dev/vg00/lvol8
extendfs -F vkfs /dev/vg00/rlvol8
xxMb is the wanted /var dimension, not how much to incrase.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 03:23 AM
11-12-2001 03:23 AM
Re: How to increase the /var space?
Using vgdisplay -v /dev/vg00 check for free PE available. If u have eough PE to allocate then do the following.
$/sbin/shutdown -> for single user mode.
$/sbin/mount /var -> will mount /var
$/sbin/lvextend ???L newsize /dev/vg00/lvol? -> extend the lvol size
$/sbin/umount /var -> unmount /var
$/sbin/extendfs /dev/vg00/rlvol? -> Extend file system size to lvol size
$/sbin/mount /var -> mount /var
$/sbin/reboot ???r -> reboots in multiuser mode
Hope this will help u.
Regards
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 03:24 AM
11-12-2001 03:24 AM
Re: How to increase the /var space?
-init 1
-killall
-umount /var
..and now i wuold like to add the disk 14/0/2.0.0 to /var.
How can do this?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 03:27 AM
11-12-2001 03:27 AM
Re: How to increase the /var space?
Increasing /var file system force us to umount /var. It is possible only when no processes are attached to the file system. Thus you have to reboot to single user mode. Command "init s" wont work ( some processes remain attached to /var ).
Later,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 03:28 AM
11-12-2001 03:28 AM
Re: How to increase the /var space?
Instead of just allocating more space to /var first check as to why it is full as log files grow in this area.
Start points are in /var/adm and the files wtmp, btmp and sulog
Either use Sam to trim them or:-
cat /dev/nul >
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 03:45 AM
11-12-2001 03:45 AM
Re: How to increase the /var space?
this is my definitive choose.
-init 1
-killall
-umount /var
-pvcreate /dev/rdsk/c1t0d0
-vgextend vg00 /dev/dsk/c1t0d0
-lvextend -L 8000 /dev/vg00/lvol8 (this means that i have use 8gig for /var. But if i wuold like to dedicate all disk to /var?)
Thanks to all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 03:50 AM
11-12-2001 03:50 AM
Re: How to increase the /var space?
The disk is only available to /var at the moment. You can increase the size of it anytime using lvextend and fsadm. In order for it to be avalaible to other logical volumes, you need to lvextend them to the disk just like you did with /var.
HTH,
Vince
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 03:52 AM
11-12-2001 03:52 AM
Re: How to increase the /var space?
You don't need to use the whole 8GB for /var, you can also extend other LVs in that volume group if you need to.
Finally, the last step after the lvextend should be extenfs /dev/vg00/lvol8. This should extend the filesystem to span the whole 8GB (or 2GB if you prefer).
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 04:45 AM
11-12-2001 04:45 AM
Re: How to increase the /var space?
root@testmnp [/]
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 143360 69689 69127 50% /
/dev/vg00/lvol1 127573 70825 43990 62% /stand
/dev/vg00/lvol8 512000 504078 7620 99% /var
/dev/vg00/lvol7 1048576 502223 512261 50% /usr
/dev/vg00/lvol4 1048576 202449 793298 20% /tmp
/dev/vg00/lvol6 1048576 803069 230179 78% /opt
/dev/vg00/lvol5 4194304 129046 3811227 3% /home
I do this:
-init 1
-killall
-umount /var
-pvcreate /dev/rdsk/c1t0d0
-vgextend vg00 /dev/dsk/c1t0d0
-lvextend -L 8000 /dev/vg00/lvol8
I forget something ?
May be extendfs /dev/vg00/lvol8 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 05:01 AM
11-12-2001 05:01 AM
Re: How to increase the /var space?
I forget extendfs /dev/vg00/lvol8
root@testmnp [/]
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 143360 69699 69116 50% /
/dev/vg00/lvol1 127573 70825 43990 62% /stand
/dev/vg00/lvol8 8192000 506001 7205817 7% /var
/dev/vg00/lvol7 1048576 502228 512256 50% /usr
/dev/vg00/lvol4 1048576 202450 793297 20% /tmp
/dev/vg00/lvol6 1048576 803069 230179 78% /opt
/dev/vg00/lvol5 4194304 129046 3811227 3% /home
Now, it works fine.
Bye && thanks