- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Move lvol from one vg to another?
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
12-06-2001 09:52 AM
12-06-2001 09:52 AM
We are going a vg export on one of our vg's.
We wist to add a lvol from another vg into this vgexport.
Has anyone ever done this?
We are looking at the possability of editing the map file to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 09:57 AM
12-06-2001 09:57 AM
Re: Move lvol from one vg to another?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 09:58 AM
12-06-2001 09:58 AM
Re: Move lvol from one vg to another?
vgexport is limited to only the volume group that is being exported. You cannot manipulate the graph files to achieve this.
One way is to create a file system in this volume group, copy the data from the other file system and then export.
If your volume group to be exported is vg01 and the file system lvolx is in vg02 mounted as /fs
then you can do like this
#lvcreate -n lvolx -L some_size vg01
#newfs -F vxfs /dev/vg01/lvolx
#mount /dev/vg01/lvolx /fs.new
Copy the data. It is suggested to stop the processes that are accessing /fs before doing a copy
#cp -Rp /fs/* /fs.new
Now unmount all the logical volumes in vg01
#vgchange -a n vg01
#vgexport -v -s -m /tmp/vg01.map vg01
When you vgimport vg01, it will have this new logical volume that has the data of vg02's lvolx.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 10:10 AM
12-06-2001 10:10 AM
Re: Move lvol from one vg to another?
Editing the map will only create the LV device file on a vgimport . But what about the LV space itself?? That won't work. So, the way to go is , as pointed by others,
create lv, copy stuff and vgexport it.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 11:13 AM
12-06-2001 11:13 AM
Re: Move lvol from one vg to another?
You will not be able to get rid of one vg and one lv from another VG in single command.
Export the vg with vgexport and remove the other lv with lvremove command.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 11:38 AM
12-06-2001 11:38 AM
Re: Move lvol from one vg to another?
you cannot add a lv from another VG to the vgexport of a particular VG. to move an lv from another Vg to this VG, you have to back up the data on the other Vg, remove that LV and copy the data to the new LV on this VG.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 11:59 AM
12-06-2001 11:59 AM
Re: Move lvol from one vg to another?
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 03:18 AM
12-07-2001 03:18 AM
Re: Move lvol from one vg to another?
the lvol's in question contain raw data, so there are no filesystems.
What we plan on doing, is to create a new lvol in the desired cg with the same name, and copy the data using "dd"
Then do the vgexport.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 06:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 01:15 PM
12-07-2001 01:15 PM
Re: Move lvol from one vg to another?
We are upgrading our Hardware, so need to move our EMC array to a new server.
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 02:27 PM
12-07-2001 02:27 PM
Re: Move lvol from one vg to another?
Good luck,
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2001 06:17 AM
12-08-2001 06:17 AM
Re: Move lvol from one vg to another?
I appreciate the points but actually, the other guys answered your question. I expected N/A points assigned to my comments :-))
Hopefully you'll assign points to the other answers so that later readers will see what really applied to your question.
Thanks,
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2001 06:59 PM
12-08-2001 06:59 PM
Re: Move lvol from one vg to another?
What's your idea being "rude" to the people who spent sometime for you?
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2001 02:55 AM
12-18-2001 02:55 AM
Re: Move lvol from one vg to another?
How dare you call me rude!
I'd thank you to mind your own business in the future and please keep your nasty comments to yourself!
Alan