- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can /tmp be reduced on a HP-UX 11.0 server?
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
Forums
Discussions
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
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-15-2001 11:40 AM
11-15-2001 11:40 AM
Server: HP-UX 11.0 L2000
Can the filesystem /tmp be reduced using LVM and/or VxFS? A 'df -n' command shows that(/tmp) is a VxFS filesystem.
The reason why I am thinking of doing this is that my swap is probably too small and the VG (vg00) has no more free space/blocks left to allocate. It looks like reducing the filesystem
in VG=vg00 and using the freed up space for swap is possibly my only option.
(10 points for any good answer).
Thank you Gino Castoldi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 11:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 11:51 AM
11-15-2001 11:51 AM
Re: Can /tmp be reduced on a HP-UX 11.0 server?
You could reduce /tmp if you want.
If you have Online JFS you might be able to do this. However, unless you have Online JFS 3.3, I personally wouldn't bother to try. The predecessor version (3.1) SOMETIMES allows file shrinkage if first you defragment and if no inuse blocks are present in the extents to be reduced. Collective experience indicates the failure for shrinkage to succeed is high.
In the absence of Online JFS, you can 'lvreduce' the logical volume and then 'newfs' the filesystem. Normally you would then reload its data, although in the case of /tmp there is no need. I should hasten to add that this would apply to 'hfs' as well as 'vxfs' filesystems.
*BUT NOTE* that a large /tmp filesystem has advantages. Since un-sharing patches requires space in /tmp, and since patches can be rather large, I'd give consideration to retaining a good-size filesystem.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 11:52 AM
11-15-2001 11:52 AM
Re: Can /tmp be reduced on a HP-UX 11.0 server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 11:52 AM
11-15-2001 11:52 AM
Re: Can /tmp be reduced on a HP-UX 11.0 server?
You could install Ignite/UX ( http://software.hp.com/products/IUX ), create a make_tape_recovery tape, boot from the tape interactively and change the sizes of pri. swap and /tmp so that they are the size you need. This too, though fairly simple, would be a pain in the butt.
The thing I would do is just create another swap LV in one of your other VGs on the system and activate it. If you like, you can create it the same size as your primary swap, and make sure it is used at the same priority as primary swap, and the two areas will get used equally.
Hope all this makes sense.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 11:52 AM
11-15-2001 11:52 AM
Re: Can /tmp be reduced on a HP-UX 11.0 server?
how about creating a secondary swap space in another Volume Group. More than 1 swap space
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 11:55 AM
11-15-2001 11:55 AM
Re: Can /tmp be reduced on a HP-UX 11.0 server?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 01:14 PM
11-15-2001 01:14 PM
Re: Can /tmp be reduced on a HP-UX 11.0 server?
fsadm -F vxfs -d -D -e -E /tmp
fsadm -F vxfs -b NEW_SIZE_IN_KB /tmp
lvreduce -L NEW_SIZE_IN_MB /dev/vg00/lvolx
As pointed out, the success rate is not 100%, however /tmp probably has a higher probability.
Good Luck,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 02:20 PM
11-15-2001 02:20 PM
Re: Can /tmp be reduced on a HP-UX 11.0 server?
If you want additional swap space, create secondary swap on different disk/VG.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 03:33 PM
11-15-2001 03:33 PM
Re: Can /tmp be reduced on a HP-UX 11.0 server?
Yes, technically it is possible to do it. But, be
sure whether you really want to do it; what is the size of /tmp ?? it is good to have
it around 70Mb (or upto 100Mb incase of a huge system).
Once you decide,you really want to remove it, make sure
you don''t have any files in it which you need later. Or better make a backup copy of the whole filesystem. The FSreduction will whack out the contents of /tmp.
The way to do this is:
#take downtime
#shutdown -r -y now
#boot in single user mode
#ISL>hpux -is
#lvreduce -L
(make sure it is /tmp LV!).
#newfs -F vxfs /dev/vg00/rlvol??
**
<
If the swap is small, you have the option of creating additional swap on other disks! Please note you cannot extend Primary swap!! since it needs contiguous extents. So even if you free up space from /tmp, you would not be able to use it for extnding perimary swap.
<
Sorry, you cannot do that! But you can create a new swap with the freed space, which is not advisable, since the the swap sizes should prerably be the same.
<<(10 points for any good answer). >>
Nice bait ;-)
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2001 06:22 AM
11-16-2001 06:22 AM
Re: Can /tmp be reduced on a HP-UX 11.0 server?
The filesystem will be corrupted after you reduce it with lvextend. Since it is tmp you prop. don't care to much. But after you reduce it. I would recreate it quickly and re-mount. This will free up as much space as you reduced it.
Also ....How big is /tmp on your machine.
How much can you really gain? How much more swap space do you need?