- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Importing a VG with Reduced Number of PVs
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
07-25-2006 04:09 AM
07-25-2006 04:09 AM
My question is can i export the VG and reimport using only 2 PV.Means reimport using a single copy of the data?
Thanks in Advance
Narender Kumar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2006 04:18 AM
07-25-2006 04:18 AM
Re: Importing a VG with Reduced Number of PVs
see man lvreduce.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2006 04:27 AM
07-25-2006 04:27 AM
Re: Importing a VG with Reduced Number of PVs
Agreed with above statement..you can do the above mentioned activity follow the below procedure..
1. lvreduce
2. vgreduce
3. vgexport
4. vgimport
Best Regards,
Prashanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2006 04:44 AM
07-25-2006 04:44 AM
Re: Importing a VG with Reduced Number of PVs
Once you do the 'lvreduce -m 0 lv_path pv_path' for the physical volumes that you want to remove, then simply, 'vgreduce' the physical volumes that (now) lack logical extents. There is no need to 'vgexport' and 'vgimport'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2006 04:55 AM
07-25-2006 04:55 AM
Re: Importing a VG with Reduced Number of PVs
Means do not want to lvreduce and vgreduce.
Just export with 4pv and reimport with 2pv.
Regards
Narender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2006 05:02 AM
07-25-2006 05:02 AM
Re: Importing a VG with Reduced Number of PVs
Do you want to preserve one copy?
In this case you should have a look at the lvsplit command.
man lvsplit
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2006 06:37 AM
07-25-2006 06:37 AM
Re: Importing a VG with Reduced Number of PVs
So taht in case second copy is required the Vg can be imported with second copy.
Narender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2006 12:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2006 01:48 AM
08-27-2006 01:48 AM
Re: Importing a VG with Reduced Number of PVs
You can do that
No problem, do like above comments.
1. vgexport -v -p -m vgmap.map
2. vgimport -v -m vgmap.map vgname /dev/dsk/cXtYdZ /dev/dsk/cxtydz
Before you do 2nd step u have to create vg directory and mknod
Regards
nanan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2006 07:27 AM
08-27-2006 07:27 AM