- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- copy a scsi hard disk to a target with dd command
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
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
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
тАО08-12-2004 02:43 AM
тАО08-12-2004 02:43 AM
copy a scsi hard disk to a target with dd command
Is the command:
dd if=/dev/rdsk/c0t0d0 of=/dev/rdsk/cxtxdx bs=32K
How can I find the device name of the target?
Do I have to mount the target? How?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2004 02:49 AM
тАО08-12-2004 02:49 AM
Re: copy a scsi hard disk to a target with dd command
If the other disk is connected to your system, you could use
# ioscan -fnCdisk
to find the target disk.
dd command is correct, you could use a larger blocksize like 1024k to turn up the speed of the copy.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2004 02:51 AM
тАО08-12-2004 02:51 AM
Re: copy a scsi hard disk to a target with dd command
Is the target a new disk that you've had installed?
If so, to determine which disk it is (assuming that you don't know from the ioscan output), for each one reported by ioscan, run
cat /dev/dsk/cXtXdX > /dev/null
Then look at the disks in the cabinet, to see which one has the solid activity light showing.
Then use CTRL+C to abort the cat command.
From memory, your dd command looks OK.
There should be no need to mount the target disk to carry out the copy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2004 02:51 AM
тАО08-12-2004 02:51 AM
Re: copy a scsi hard disk to a target with dd command
ioscan -fnCdisk
You do need to mount anything. Are the sizes of the disks same?? It is good if they are. Even if they are not, do not worry about it.
The bs option is block size and should be the multiple of sector size. 32k would be too less. 5000K. man dd for details.
What exactly you are trying to do??
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2004 02:58 AM
тАО08-12-2004 02:58 AM
Re: copy a scsi hard disk to a target with dd command
If you are trying to clone the disk, the source and target disks should be identical (or at the very least, the target must be at least as large as the source). If you are going to be copying mounted filesystems, you will need to run a fsck on them before they can be mounted after the copy.
I would bump your blocksize up to 256K (above that the gains are typically very small) for a faster copy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2004 03:34 AM
тАО08-12-2004 03:34 AM
Re: copy a scsi hard disk to a target with dd command
Do I have to do each of the partitions manually, right?
Thanks,
Nancy L.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2004 03:40 AM
тАО08-12-2004 03:40 AM
Re: copy a scsi hard disk to a target with dd command
No, if you have more Logical Volumes on the disk they will be copied automatically to the target disk.
You are copying on disk level not on logical volume level.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2004 03:44 AM
тАО08-12-2004 03:44 AM