- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Filesystem reduce
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
06-24-2002 12:49 AM
06-24-2002 12:49 AM
Filesystem reduce
I have a N-Class with HP-UX 11.00.
I have extended the /tmp filesystem to 5 GB by mistake. I want it to be 500 MB.
Steps followed:
Booted in Single User Mode.
# lvextend -L 5000 /dev/vg00/lvol4
# extendfs -F vxfs /dev/vg00/rlvol4
My intension was to make /tmp 500 MB.
What needs to be done? Give me the steps/commands.
Thanks,
Raje.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 01:01 AM
06-24-2002 01:01 AM
Re: Filesystem reduce
If you have OnlineJFS you can reduce it on the fly (no reboot) but from youre above commands it appears you do NOT have OnlineJFS, which means the only way to reduce /tmp is;
1. boot in LVM maintenance mode. Remove the /tmp lvol (/dev/vg00/lvol4). Create a new one to the size you want, reboot.
2. Its probably easier at this point to create a new lvol to the size you want /tmp to be (eg. lvcreate -L 500 vg00) - lets say its lvol 10, then vi /etc/fstab, change the entry for /tmp (/dev/vg00/lvol4) to the new lvol (eg. /dev/vg00/lvol10). Then reboot, /tmp will now be /dev/vg00/lvol10, then you can remove the old /dev/vg00/lvol4 to free up the 5GB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 01:11 AM
06-24-2002 01:11 AM
Re: Filesystem reduce
I have booted in Maintenance Mode and done the following.
# lvremove /dev/vg00/lvol4
# lvcreate -L 500 /dev/vg00/lvol4
Now what needs to be done.
After booting in the multiuser mode, I can see /tmp to be 500 MB in sam and 5 GB in bdf.
Where I have gone wrong and how to resolve this? Pls. give the command stepwise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 01:17 AM
06-24-2002 01:17 AM
Re: Filesystem reduce
newfs -F vxfs /dev/vg00/rlvol4
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 02:58 PM
06-24-2002 02:58 PM
Re: Filesystem reduce
If you don't have online JFS installed on your system,
then you need to recreate the volume.
Find out the logical volume used by /tmp file system from /etc/fstab file. If /tmp is mounted unmount that file system
#umount /tmp
Create the new file system in that volume
#newfs -F vxfs -s 512000 /dev/vg00/lvol4
mount that volume
#mount /tmp
If you have online JFS installed on your system,
use the following command to reduce the file system size
#fsadm -F vxfs -b 500M /tmp
You should reduce the logical volume size now. Because reducing a file system doesn't automatically reduce the size of the logical volume that the file system is in.
To reduce the logical volume
#lvreduce -L 500 /dev/vg00/lvol4