- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using dd to copy raw data
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-19-2007 02:21 AM
07-19-2007 02:21 AM
Using dd to copy raw data
I need to copy raw data from some lvols in a vg (eg vgA)to another vg (vgB) within the same server. The original data should still remain.
The source device is a SAN LUN consisting of only 1 vg, which has 7 lvols, each ontaining raw database for filenet.
Q1) Can I use the "dd" command to copy?
Q2) Which device name should I use in the dd command: the raw device path (/dev/rdsk/xxxxx), the vg name (/dev/vgX) or the lvol name?
Q3) Do I need to follow-up with other commands (eg vgimport) after the copy?
Q4) If can't use "dd", which command can I use?
Thanks for your responses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 02:27 AM
07-19-2007 02:27 AM
Re: Using dd to copy raw data
other command you can use is pvmove
pvmove diska diskb
regards
L-DERLYN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 02:36 AM
07-19-2007 02:36 AM
Re: Using dd to copy raw data
Does the pvmove command preserve the original source data? I need to maintain the original source data as a fallback, in case the copying goes wrong or something.
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 02:37 AM
07-19-2007 02:37 AM
Re: Using dd to copy raw data
no preservation, it's a physical move
regards
L-DERLYN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 02:42 AM
07-19-2007 02:42 AM
Re: Using dd to copy raw data
2) Use the /dev/vgX/rlvolXX devices nodes for both if= and of= devices and also specify a blocksize (e.g. bs=256k) otherwise the default blocksize of 512 bytes will be painfully slow.
3) No, because you have already created your new VG with corresponding LVOLS as your destination VG. The only requirement is that the destination LVOL's be at least as large as the source LVOL's.
4) n/a
The most important criterion is that you correctly specify the if=src_device and of=dest_device device nodes correctly because if you get those backwards even once, you have destroyed data. If this were me, I would write a small script, examione it carefully, and run it rather than doing the dd's interactively.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 02:51 AM
07-19-2007 02:51 AM
Re: Using dd to copy raw data
I have not created the destination lvol yet, only the vg. I thought that I might be able to copy the whole vg over & do a vgimport to get back the lvol structures.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 03:08 AM
07-19-2007 03:08 AM
Re: Using dd to copy raw data
for me, vgimport will not work because vg destination is different to source
vgexport and vgimport are used for import or export vg information for same vg on different servers , not for import on a different vg
regards
L-DERLYN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 03:09 AM
07-19-2007 03:09 AM
Re: Using dd to copy raw data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 03:50 AM
07-19-2007 03:50 AM
Re: Using dd to copy raw data
Thanks for your advice.
Clay, I will try it out on a test system when I get back to office in a day or two. I'm concern on how the filenet application reference those raw data.
After the copy, I plan to deactivate & rename the original VG so that the filenet application will reference only the new copy.
I'm not familar with raw partitions, so correct me if I'm wrong: Does most applications reference their data in the raw partition using the raw lvol name?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 04:10 AM
07-19-2007 04:10 AM
Re: Using dd to copy raw data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 04:27 AM
07-19-2007 04:27 AM
Re: Using dd to copy raw data
I tried this once with adabas raw disks. It did not work. There are preparation steps seem to be destroyed by the dd process.
So it will not work for all applications.
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
07-19-2007 09:23 PM
07-19-2007 09:23 PM
Re: Using dd to copy raw data
I am sorry to "interrupt" with my own questions.
It's about Clay Stephenson statement:
"You could do dd's at the /dev/rdsk/xxx level to copy LUN to LUN and that would create a copy of the VG. You could then run vgchgid to change the VGID of the VG copy and then vgimport the copy"
In this case you would have to diferent vg's with the same VGID in the same machine. Is this possible?
Regards,
STP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2007 03:48 AM
07-20-2007 03:48 AM
Re: Using dd to copy raw data
This is why I said he needs to run the vgchgid command on the copied LUN's. It changes the VGID so that otherwise identical copies of a VG can peacefully coexist on the same system. You should also note that I actually suggested that he do an LVOL to LVOL copy with both VG's already existing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2007 03:56 AM
07-20-2007 03:56 AM
Re: Using dd to copy raw data
Yes..indeed.
Sorry for the stupid question, I misunderstood.
Thanks,
STP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2007 08:22 PM
07-20-2007 08:22 PM
Re: Using dd to copy raw data
thanks for your suggestions.
I've managed to test the copying successfully using Clay's suggestions.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2007 04:41 AM
09-30-2007 04:41 AM