- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disk copy
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-2002 09:02 AM
12-06-2002 09:02 AM
What is the best way to do a disk copy? I am wanting to clone a disk and I'm looking for the quickest way to do this (and I do not want to use ignite).
Thx,
Tim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2002 09:09 AM
12-06-2002 09:09 AM
Re: Disk copy
Not quite sure what you would like to do but,
dd if=/dev/rdsk/c?t?d? of=/dev/rdsk/c?t?d? bs=1024k
will copy the disk.
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2002 09:11 AM
12-06-2002 09:11 AM
Re: Disk copy
dd if=/dev/rdsk/??? of=/dev/rdsk/??? bs=64k
Make sure you have the correct output disk though ;-)
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2002 09:18 AM
12-06-2002 09:18 AM
Re: Disk copy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2002 09:24 AM
12-06-2002 09:24 AM
Re: Disk copy
in case you have EMC then there are ltos of time finder option to do the same.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2002 09:25 AM
12-06-2002 09:25 AM
Re: Disk copy
Thx,
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2002 09:28 AM
12-06-2002 09:28 AM
Re: Disk copy
I have a cron job that copies disks every night here's the code:
#!/bin/ksh
echo "starting mirror_cathm208 at `date`" > /tmp/mirror_208data 2>&1
echo "dd the disks..." >> /tmp/mirror_208data 2>&1
/usr/bin/dd if=/dev/vg01/rlvol1 of=/dev/vg03/rlvol1 bs=64k >> /tmp/mirror_208dat
a 2>&1
/usr/bin/dd if=/dev/vg01/rlvol2 of=/dev/vg03/rlvol2 bs=64k >> /tmp/mirror_208dat
a 2>&1
/usr/bin/dd if=/dev/vg01/rlvol3 of=/dev/vg03/rlvol3 bs=64k >> /tmp/mirror_208dat
a 2>&1
echo "fsck the disks..." >> /tmp/mirror_208data 2>&1
/usr/sbin/fsck -F vxfs -y /dev/vg03/rlvol1 >> /tmp/mirror_208data 2>&1
/usr/sbin/fsck -F vxfs -y /dev/vg03/rlvol2 >> /tmp/mirror_208data 2>&1
/usr/sbin/fsck -F vxfs -y /dev/vg03/rlvol3 >> /tmp/mirror_208data 2>&1
echo "done at `date`" >> /tmp/mirror_208data 2>&1
The above code is for data disks. I have another script for my system disk. The system disk requires some additional steps. Let me know if you're interested.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2002 09:39 AM
12-06-2002 09:39 AM
Re: Disk copy
If you default it, dd uses 512 bytes which is slooooooow. From experiment, anything above 8k appears to give optimal performance.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2002 09:40 AM
12-06-2002 09:40 AM
Solutionhttp://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x464d5c7609e9d61190050090279cd0f9,00.html
discussion about blocksize.
Kind regards.
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2002 09:50 AM
12-06-2002 09:50 AM
Re: Disk copy
To add to John's suggestions, just make sure to use the character disk device (/dev/rdsk). You don't want to impose needless overhead through LVM.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2002 10:48 AM
12-06-2002 10:48 AM
Re: Disk copy
applying dd to rdsk is also much faster.
This is also true for rlvols.
Hope this helps.
0leg