- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Recover LUNs that are accidentally added to an...
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
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
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
08-23-2011 07:18 AM
08-23-2011 07:18 AM
Recover LUNs that are accidentally added to an LV
Hi,
I addded 20 LUNs to an LV on a HP-UX 11.23 server so that I can extend a file system. However there was an error in the client request and they want these LUNs to be allocated to another file system which resides in another VG. If I use lvreduce can I be sure that the newly added disks will be freed? Is there any way that I can specify the disks from which the LEs should be removed from? What is the best approach for this ?
Thanks
VKV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2011 07:30 AM
08-23-2011 07:30 AM
Re: Recover LUNs that are accidentally added to an LV
Hi:
You can use 'lvreduce' and specify the 'pv_path' you want to eliminate. When the physical disks you want to reclaim are freed from the logical volume(s), use 'vgreduce' to eliminate the physical disks from the volume group.
Hae a look at the manpages for both commands.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2011 07:46 AM
08-23-2011 07:46 AM
Re: Recover LUNs that are accidentally added to an LV
Hi,
lvreduce accepts pv_path as an argument only if -m option is specified. As I am not looking for reducing mirror copies here I cannot use that option.
lvreduce -L 60000 /dev/vgrm0_dm_stg/lv_cp_dm_joi10 $DISK1
Usage: lvreduce [-A Autobackup] [-k] {-m MirrorCopies | -l LogicalExtentsNumber | -L LogicalVolumeSize} [-f] LogicalVolumePath [PhysicalVolumePath ...]
"PhysicalVolumePath": Can be used only if "-m" has been specified.
Thanks
VKV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2011 09:11 AM
08-23-2011 09:11 AM
Re: Recover LUNs that are accidentally added to an LV
If you've extended the filesystem, make sure you reduce it before doing the lvreduce!
lvreduce removes extents from highest-numbered back, so if you lvreduce the lvol back to the original size, it should free up the space on the luns you added. Then you can vgreduce the vg to free up the luns.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2011 09:58 AM
08-23-2011 09:58 AM
Re: Recover LUNs that are accidentally added to an LV
Thanks Earl for that confirmation.
I have asked the backup team to backup the Filesystem. I will try lvreduce and post the outcome.