- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Reducing the the size of /tmp, /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
04-18-2002 10:50 AM
04-18-2002 10:50 AM
Reducing the the size of /tmp, /var
I am in a terrible situation wherein I allocated too much space to /tmp and /var and as such wasting resources. I am now faced with the task of reducing these logical volumns. I will have to go into single user mode to reduce the sizes, but I am not too familiar with the correct ways to use the commands I need to do this operation. Are these steps accurate and can someone help me with the commands???
1. Create a backup of the /var directory to another logical volumn directory home using fbackup:
/usr/sbin/fbackup -f /home /var
2. Log into single user mode
3. unmount,reduce, extend and mount the logical volumn by using the commands:
i) umount /var
ii) lvreduce -L 500 /dev/vg00/lvol8
iii) newfs -F vxfs /dev/vg00/lvol8
iv) mount /dev/vg00/lvol8 /var
4. frecover the var directory:
/usr/sbin/frecover -f /home /var
I will be greatful is someone can look over the above commands to check if they are correct.
Thanks for your help,
Dee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 10:58 AM
04-18-2002 10:58 AM
Re: Reducing the the size of /tmp, /var
Only thing you can take the backup using cpio command to if you are talking on logical volume. fabckup will be also fine.
ONE IMPORTANT POINT TO NOTE IS DO NOT FORGET TO RUN FOLLOWING COMMAND BEFORE BOOTING THE MACHINE.
#lvlnboot -R
THIS IS MOST IMP. FAILURE TO RUN THIS COMMAND WILL CREATE SYSTEM BOOT FAILURE....
This is important whenever you are changing any configuration in /dev/vg00.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 10:58 AM
04-18-2002 10:58 AM
Re: Reducing the the size of /tmp, /var
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x18cca1abbac8d5118ff10090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcc46af48a9e5d5118ff40090279cd0f9,00.html
Good Luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 10:59 AM
04-18-2002 10:59 AM
Re: Reducing the the size of /tmp, /var
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 11:41 AM
04-18-2002 11:41 AM
Re: Reducing the the size of /tmp, /var
just my thoughts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 12:14 PM
04-18-2002 12:14 PM
Re: Reducing the the size of /tmp, /var
I would not use lvreduce.
lvremove
then.
lvcreate
...jcd....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 12:36 PM
04-18-2002 12:36 PM
Re: Reducing the the size of /tmp, /var
Have you checked whether you have OnLine JFS?
If you do have this product (it will show up in an swlist), then there's no need to go to single user mode, or even un-mount the file systems...
HTH
Duncan
I am an HPE Employee
