LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-16-2008, 09:58 PM   #1
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
dd comand takes so long


Hi,
My solairs10 box experienced loing disk clone by dd command.

My workstation is SB100 which have primary and slave ATA100 IDE 80GB seagete disks on the same bus. I used the following command to copy
c0t0d0 disk data to c0t2d0.

ok boot cdrom -s
# dd if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t2d0s2 bs=1024

But I was waiting for almost 5 hours but prompt still not returned to me. I Ctrl+C to cancell the operation and I checked c0t2d0s0, I seems that it has been sync with c0t0d0s0. I wonder why dd took so long to do the sync. Whether dd has some option can let me to monitor the data copy status.
Any idea?
 
Old 01-17-2008, 01:16 AM   #2
scoban
Member
 
Registered: Nov 2004
Location: Turkey
Distribution: Slackware
Posts: 145

Rep: Reputation: 16
In your command line dd is copying 1024 bytes blocks. Try bs=1024k
 
Old 01-17-2008, 01:58 PM   #3
Necronomicom
Member
 
Registered: Jun 2004
Distribution: Slackware, Solaris
Posts: 127

Rep: Reputation: 15
dd is a very terrible way to copy data between disks, it can lead to many problems and data inconsistence later...

best way to do this in solaris is to use ufsdump

something like

cd /yourdir
ufsdump 0f - /yourdir | (cd /dirbackup;ufsrestore rvf -)

you could optimize it to use fssnap as well if you want to backup a live FS that is being used.
 
Old 01-25-2008, 02:51 PM   #4
popowich
Member
 
Registered: Nov 2004
Location: Rochester, New York
Distribution: RHEL7
Posts: 53

Rep: Reputation: 15
Any particular reason not to mirror the disks?

-Raymond
 
Old 01-26-2008, 03:09 AM   #5
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
Just want to see what dd can do. Really, mirror the disk is best.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
long comand line script i think pigswillfly Programming 1 04-02-2006 08:05 AM
transcode takes too long xgreen Slackware 2 05-08-2005 08:54 AM
Booting up takes SO long! GreaseMonkey87 Linux - General 6 07-15-2004 02:28 AM
booting takes too long eye Red Hat 5 10-22-2003 01:26 PM
sendmail takes too long to come up ... t0dd Linux - Software 1 03-11-2002 02:59 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration