- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- dd command to copy rlvol (source) rlvol (target)
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
10-10-2001 11:52 AM
10-10-2001 11:52 AM
dd command to copy rlvol (source) rlvol (target)
dd if=/dev/vgdvl/rlvol2 of=/dev/vgdvl2/rlvol1 bs=2048&
Do the filesytems need to be dismounted? If not, when will I start seeing files on the target volume?
How can I gather statistics on transfer rates?
Please consult.
Thanks,
..Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 12:00 PM
10-10-2001 12:00 PM
Re: dd command to copy rlvol (source) rlvol (target)
You can use this command. Only disadvantage is that you need to dd entire logical volume irrespective of the data.Also, you need to have both the logical volumes of same size.
Coming to the question. You don't need the file system /dev/vgdv1/lvol2 unmounted. But the other one (target) should be unmounted.
Once the dd is over, you need to do an fsck on the logical volume and then mount it. You will see the contents then.
Gathering stats - Write a small script like this
date >> log
dd if=/dev/vgdvl/rlvol2 of=/dev/vgdv2/rlovl2 bs=2048 >> log 2>&1
date >> log
Check the log files for time diffs.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 12:01 PM
10-10-2001 12:01 PM
Re: dd command to copy rlvol (source) rlvol (target)
The short answer is that you won't. Dd is used to copy raw data from one device or file to another. If your source rlvol contains a filesystem then you could create a mountpoint and mount the dest block device (lvolxx) not rlvolxx and then the files will appear. If you are transferring a filesystem this way (and this is a really nutty way to do it), then yes the filesystem should be unmouted. Normally, this technique is only used to more raw database datafiles which you will not see as files.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 12:02 PM
10-10-2001 12:02 PM
Re: dd command to copy rlvol (source) rlvol (target)
You can preface the 'dd' with the 'time' command, and run the operation in the foreground:
# time dd if=/dev/vgdvl/rlvol2 of= ...
If you are going to copy data this way, I'd make sure that the source data isn't changing during the copy.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 12:31 PM
10-10-2001 12:31 PM
Re: dd command to copy rlvol (source) rlvol (target)
Just thoughts... Do you have mirror-ux?
If so why not mirror then split your copies and use the second?
You will in this case not have to deal with being sure nothing on the volume is changing while copying... (almost...)
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 01:02 PM
10-10-2001 01:02 PM
Re: dd command to copy rlvol (source) rlvol (target)
cd source dir
find . -depth -print |cpio -pd /dest/dir
obviously in this case, both FS are mounted.