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
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
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
тАО09-05-2007 05:17 PM
тАО09-05-2007 05:17 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2007 05:55 PM
тАО09-05-2007 05:55 PM
SolutionFirstly dd can only be used to dump data from one disk to another, mainly used in case of whole disk backups.
#dd if=/dev/rdsk/c?t?d? of=/dev/rdsk/c?t?d? bs=1024 (in multiples of 2)
In,the above command first you've to get two disks from two different vg's, but the only problem would be to find out any paricular filesets in this case. Else you can dump the whole disk to other disk, which should supposedly have enough space, and you are done.
Secondly using tar would be much feasible in case of selected filesets -
#tar -cvf myarchive `cat /tmp/aa`
or
#cat /tmp/aa | xargs tar -cvf aa.tar
Also,if there are many files to be archived, you can use 'pax', which can write tar-format but can read the files to be archived from stdin as well:
#pax -w -f myarchive.tar After this move the tar file to the desired location.
Try this syntax
# find . -print | cpio -pdmuv > /tmp/myarchive.cpio
Test it out, but this syntax should keep the ownerships and permissions intact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2007 05:56 PM
тАО09-05-2007 05:56 PM
Re: LVM
When you say across volume groups, you mean from one volume group to another?
You actually list many of my preferred choices.
I also for not totally huge moves use scp, to move across a network between machines.
If you want to migrate a whole volume group you can use vgexport followed by vgimport.
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
тАО09-05-2007 11:01 PM
тАО09-05-2007 11:01 PM
Re: LVM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2007 11:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 12:06 AM
тАО09-06-2007 12:06 AM
Re: LVM
If you want to create a new VG with the same configuration as the old VG, or modify a VG to give it the same configuration as the old VG, vgexport (with -p option !) and vgimport is your way to go.
If you want to copy the contents of a RAW LV to another RAW LV in another VG, then dd is the way to go, but then you are copying LV-contents, not VG's. (VG's in fact only contain configuration information, so that is all you can copy if you talk about VG's)
If you want to copy filesystems between LV's (and it doesn't matter if it is a different VG or not), use filesystem tools like cp -pr (if you can directly access both filesystems), or tar or cpio.
To give more detailed command explanations, a good starting point is to look at the man pages, or to specify here what type of data you want to copy.