- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reducing logical volume...
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
01-28-2008 07:05 AM
01-28-2008 07:05 AM
Would really appreciate your advice the steps to reduce a size of logical volume:
Before some time, i was try to reduce logical volume, at that time it gone corrupted.
I have to reduce one logical volume again. can you please suggest what should i do from first. note that i haven't such a time for backup and restoration. and no extra space to copy that data.
hope to hear from you. looking forward for your awaiting reply.
Thanks
Piyush
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 07:21 AM
01-28-2008 07:21 AM
Re: Reducing logical volume...
Then, with Online JFS:
fsadm -b
lvreduce -L
Example - decrease /tmp from 2GB to 1GB
fsadm -b 1024M /tmp
lvreduce -L 1024 /dev/vg00/lvol4
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 07:24 AM
01-28-2008 07:24 AM
SolutionTo do this at all, you need Online JFS, otherwise your only option is to back up the data, remove the logical volume, rebuild and restore.
There are good instructions on how to use fsadm to do what you wish in the first post.
Caveat. If you try and reduce too much, this can lead to failure and data corruption.
Always take a full backup prior to reduction.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 07:27 AM
01-28-2008 07:27 AM
Re: Reducing logical volume...
The key is to reduce the size of the _filesystem_ contained within the logical volume, first.
If you don't have OnlineJFS (and I hope you do), then you must backup the filesystem; 'lvreduce' (or 'lvremoved and 'lvcreate') the logical volume; 'newfs' the filesystem and reload the data from the backup.
If you have OnlineJFS, use 'fsadm' to reduce the size of the filesystem; THEN use 'lvreduce' to reduce the corresponding size of the container --- the logical volume.
See the manpages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 07:41 AM
01-28-2008 07:41 AM
Re: Reducing logical volume...
it is not possible without online jfs.
Hasanç
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 07:46 AM
01-28-2008 07:46 AM
Re: Reducing logical volume...
As mentioned it is much safer to create a new smaller FS, move your data, then delete the old one. ( or send the data to tape, delete and recreate the smaller and restore ).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 11:01 AM
01-28-2008 11:01 AM
Re: Reducing logical volume...
swlist -l product OnlineJFS
There is no other way to reduce a filesystem without a backup and restore.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 11:06 AM
01-28-2008 11:06 AM
Re: Reducing logical volume...
swlist -l product OnlineJFS
There is no other way to reduce a filesystem except a backup, lvremove, lvcreate and newfs, then a restore.
Bill Hassell, sysadmin