- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reduce /var /opt /usr without online JFS
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
Discussions
Discussions
Forums
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
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
тАО01-16-2011 05:30 AM
тАО01-16-2011 05:30 AM
want to reduce /var, /opt, /usr . i don't have online JFS. how should i proceed. please advice.
Regards,
Morshed.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2011 07:02 AM
тАО01-16-2011 07:02 AM
Re: Reduce /var /opt /usr without online JFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2011 07:15 AM
тАО01-16-2011 07:15 AM
SolutionBut if you really want to do this then probably you need to enter si ( single user mode ) as you may not be able to umount "usr"
& then do follows.
1) Backup /usr & others fs
2) fsadm -F vxfs -D -E -d -e /usr
This will defrag the filesystem and thus incrases the chances of being able to reduce the filesystem size.
3) fsadm -F vxfs -b
4) lvreduce -L XXX /dev/vg00/lvolX
5) bdf and confirm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2011 07:21 AM
тАО01-16-2011 07:21 AM
Re: Reduce /var /opt /usr without online JFS
is the steps with single use user mode?
1) fsadm -F vxfs -D -E -d -e /usr
3) fsadm -F vxfs -b
4) lvreduce -L XXX /dev/vg00/lvolX
5) bdf and confirm
any options without fsadm?
Regards,
Morshed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2011 08:19 AM
тАО01-16-2011 08:19 AM
Re: Reduce /var /opt /usr without online JFS
Without OnlineJFS you can't use 'fsadm' to resize your filesystem downward unless you backup it's data; unmount the filesystem; use 'newfs' to create one of a smaller size; re-mount the filesystem; and finally restore your data.
You don't say why you want to reduce the size of your filesystems, but if you believe that you need to do so, I would take an Ignite backup of your 'vg00' and use it to rebuild vg00. Given the filesystems in question this would probably be easiest and fastest.
If you don't want to use Ignite, *boot* into single user mode and use the commands in '/sbin' for perform your maintenance. Then when, done, reboot normally. This will be easier than making sure no files are open in '/var', '/opt' and '/usr' that prevent unmounting these filesystems in order to resize them.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2011 08:46 AM
тАО01-16-2011 08:46 AM
Re: Reduce /var /opt /usr without online JFS
fsadm -F vxfs -n newsize /dev/vgXX/lvolYY
lvreduce -L newsize /mountpoint
Option 2: Without online JFS
You have to unmount file system before you run above command.
I think you have JFS not the online version of JFS so "fsadm" should do after umounting the fs.
other wise try extendfs -s
-s size
Specifies the number of DEV_BSIZE blocks to be added to the file system. If size is not specified, the maximum possible size is used.
extendfs -F vxfs -s
Do let me know if it works for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2011 08:49 AM
тАО01-16-2011 08:49 AM
Re: Reduce /var /opt /usr without online JFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2011 04:26 PM
тАО01-16-2011 04:26 PM
Re: Reduce /var /opt /usr without online JFS
2. After creating a ignite image you could try the following.
A. boot up in single user mode
B. /var /opt /usr will not be mounted
C. Create a new logical volume for /var
mount it at /newvar
D. mount /var
E. find /var | cpio -pudmvl /newvar
F. umount /var
G. umount /newvar
H edit /etc/fstab to replace the /var entry with the new logical volume.
I. lvremove the old volume from /var
REpeat steps C to I for /opt and /usr
Do this only after a good backup and ignite image. Should work but if you are not good with LVM you could cause a problem.
3. Convince the boss to get you onlinejfs for this reason.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2011 03:12 AM
тАО01-17-2011 03:12 AM
Re: Reduce /var /opt /usr without online JFS
u r ri8.
single user mode:
1) fsadm -F vxfs -D -E -d -e /usr
3) fsadm -F vxfs -b
4) lvreduce -L XXX /dev/vg00/lvolX
5) bdf and confirm
i have tested on rx2660 with hpux 11iv3.
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2011 06:54 AM
тАО01-17-2011 06:54 AM
Re: Reduce /var /opt /usr without online JFS
Thanks & Regards
Manix