- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: reduce 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
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
10-02-2003 03:15 AM
10-02-2003 03:15 AM
/dev/vg09/lvol1 59523072 21802080 37426344 37% /u08
what command would I use, vgreduce ot lvreduce?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 03:18 AM
10-02-2003 03:18 AM
Re: reduce volume
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 03:24 AM
10-02-2003 03:24 AM
SolutionYou'll be looking for 'lvreduce'. The 'vgreduce' command is for removing physical volumes from your volume group.
I've never successfully done an lvreduce and had the filesystem survive it. I read here on the forum once that it can work but the poster suggested using 'fsadm' to defrag the filesystem first. I would most certainly get a good backup copy of the data before trying it.
The only way I've been able to do it before is to backup the data, remove the logical volume, recreate the logical volume at the smaller size, recreate the filesystem, and restore the data.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 03:28 AM
10-02-2003 03:28 AM
Re: reduce volume
As JP mentioned, I've not had much success with lvreduce. If you have the space, I would make another logical volume of the desired size and copy the contents of /u08 into it, then blow /u08 away.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 03:28 AM
10-02-2003 03:28 AM
Re: reduce volume
As said, only in very rare cases lvreduce succeed.
Two things
1) Defragment the filesyetm
fsadm -dDeE /mountpoint
2) Backup it up to the tapes or to an alternate location.
3) use fsadm to reduce the size and lvreduce.
if lvreduce is not successful then recreate the LV, newfs and restore from backup.
Thanks,
Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 03:28 AM
10-02-2003 03:28 AM
Re: reduce volume
Unmount and use lvreduce. If the lvreduce frees up enough extents to free up an entire physical volume in the volume group, then you can do a vgreduce. The vgreduce will remove the designated physical volume from the volume group.
I would definately heed John's words though. I have performed a couple of lvreduce commands, but never in a production environment. I would most definately have a good backup. That safety net is a must.
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 03:29 AM
10-02-2003 03:29 AM
Re: reduce volume
1) Backup your data on this file system
2) If you have OnlineJFS, you can do it 'on the fly'
3) I would recommend doing 'backup first, lvremove second, lvcreate third and restore last' option. This will be more safe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 04:28 AM
10-02-2003 04:28 AM
Re: reduce volume
1. Create new volume of desired size - Copy data to new volume - Remove original volume
Or
2. Backup the data - Remove original volume - Create new volume with desired size - Restore data.
-GK-