LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 10-22-2010, 03:40 AM   #16
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31

Quote:
Originally Posted by Mikoman View Post
try bigger block size. bs=128k or 256k that should speed up the process.
2048 is bigger and what i'm currently using, still wasn't finished this morning, it enters a weird state when running this over an annex, seems to just stop responding to stdin. Gonna mount the drive today and see whats actually been copied.
 
Old 10-22-2010, 03:45 AM   #17
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,482

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by genderbender View Post
2048 is bigger
What makes you think 2048, i.e. 2k is bigger than 128k or 256k ??
 
Old 10-22-2010, 04:15 AM   #18
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jlliagre View Post
What makes you think 2048, i.e. 2k is bigger than 128k or 256k ??
Right you are, some confusion between dd's interperatation of bytes and kilobytes. Will try a larger bs.
 
Old 10-22-2010, 04:38 AM   #19
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,482

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
and please, do provide some iostat metrics.
 
Old 10-22-2010, 04:55 AM   #20
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jlliagre View Post
and please, do provide some iostat metrics.
This is keeping my original command (it's been running for some time now...) Original command being: "dd if=/dev/dsk/c0t0d0s2 of=/dev/dsk/c0t1d0s2 bs=2048 conv=noerror,notrunc"

Code:
# iostat -xntc 5 5
   tty         cpu
 tin tout  us sy wt id
   0    1   0  1 15 83
                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 fd0
    1.4    0.0  177.7    0.0  0.0  0.0    0.0   31.3   0   4 c0t0d0
   22.2   31.9  177.5    0.0  2.4  0.2   43.7    3.7   1  13 c0t1d0
    0.7    0.0    8.2    0.0  0.0  0.0    0.2   73.1   0   3 c0t6d0
   tty         cpu
 tin tout  us sy wt id
   0   94   1  9 90  0
                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 fd0
    8.6    0.0 1100.1    0.0  0.0  0.3    0.0   31.3   0  27 c0t0d0
  134.9  448.5 1079.3    0.0 92.3  1.8  158.2    3.0  24  98 c0t1d0
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t6d0
   tty         cpu
 tin tout  us sy wt id
   0   94   0  9 90  0
                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 fd0
    7.4    0.0  947.2    0.0  0.0  0.2    0.0   31.9   0  24 c0t0d0
  120.8  543.8  966.4    0.0 111.8  1.9  168.3    2.9  32  98 c0t1d0
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t6d0
   tty         cpu
 tin tout  us sy wt id
   0   95   1  8 91  0
                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 fd0
   10.4    0.0 1331.2    0.0  0.0  0.3    0.0   31.9   0  33 c0t0d0
  167.0  250.0 1336.0    0.0 12.9  1.5   30.9    3.6   7  97 c0t1d0
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t6d0
   tty         cpu
 tin tout  us sy wt id
   0   94   1  7 92  0
                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 fd0
   11.2    0.0 1433.6    0.0  0.0  0.3    0.0   30.8   0  35 c0t0d0
  177.2  177.4 1417.6    0.0  0.0  1.4    0.0    4.0   0  96 c0t1d0
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t6d0
 
Old 10-22-2010, 05:03 AM   #21
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,482

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Hmm, these values are odd. Nothing is reported to be ever written on the target disk despite write operations going on .
Try a again without the conv=noerror,notrunc options (which I never use) and with reduced sample tests instead, eg:

Code:
time dd if=/dev/dsk/c0t0d0s2 of=/dev/dsk/c0t1d0s2 bs=128k count=100
Are there any related system messages or errors
Code:
dmesg
iostat -En
?
 
1 members found this post helpful.
Old 10-22-2010, 05:06 AM   #22
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jlliagre View Post
Hmm, these values are odd. Nothing is reported to be ever written on the target disk despite write operations going on .
Try a again without the conv=noerror,notrunc options (which I never use) and with reduced sample tests instead, eg:

Code:
time dd if=/dev/dsk/c0t0d0s2 of=/dev/dsk/c0t1d0s2 bs=128k count=100
Are there any related system messages or errors
Code:
dmesg
iostat -En
?
Woooow - thanks for your help! Now the following:

Code:
# dmesg

Fri Oct 22 02:53:28 PDT 2010
# time dd if=/dev/dsk/c0t0d0s2 of=/dev/dsk/c0t1d0s2 bs=128k count=100
100+0 records in
100+0 records out

real        4.4
user        0.0
sys         0.3
147 Terminated
# iostat -En
c0t0d0          Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE  Product: ST336607LC       Revision: 0003 Serial No:
Size: 9.06GB <9055065600 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
c0t1d0          Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE  Product: ST39103LCSUN9.0G Revision: 034A Serial No: 9941520569
Size: 9.06GB <9055065600 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c0t6d0          Soft Errors: 3 Hard Errors: 0 Transport Errors: 0
Vendor: TOSHIBA  Product: DVD-ROM SD-M1401 Revision: 1009 Serial No:
Size: 0.58GB <576679936 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 3 Predictive Failure Analysis: 0
dmesg was empty.
 
Old 10-22-2010, 05:10 AM   #23
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,482

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Okay, so copying the whole disk should take around 50 minutes according to this test.

Just remove the "count=100" option.
 
Old 10-22-2010, 05:24 AM   #24
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
OK, will report back in an hour with some iostats (if it's not complete).

There is one small thing I was unaware of regarding the source disk, not that it should matter but it was a 32gb drive, dd was used to duplicate a 9gb drive (simply because we were out of 9gb disks) and then a reinstall took place on the same drive. I dont think this should effect anything as dd is a byte for byte copy of the original disk and thus the old geometry will not remain, just if i pull the disk out it says 32gb and when I asked some questions I got an explanation.

Cheers chaps.
 
Old 10-22-2010, 06:43 AM   #25
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
This aint looking too good - no longer getting any putput at all...

# ps -ef

has been hung for around 30 mins
 
Old 10-22-2010, 08:14 AM   #26
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
Think the disks broken. When running format>analyze>test I get errors such as
"Write protect error during write
ASC: 0x27 ASCQ: 0x0
Warning: unable to restore original data."

I'm gonna try a new disk.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Not merely a bad idea...a dangerous one... jiml8 General 8 06-04-2010 06:59 AM
Good idea/bad idea: interface colors introuble General 5 10-30-2006 01:33 PM
Bad Idea dudeman41465 Linux - Software 1 10-10-2005 02:37 AM
is this a bad idea ? fileserver/firewall... epoo Linux - Security 8 05-07-2005 02:44 PM
Is this a good or bad idea? kemplej Linux - Software 2 10-26-2004 09:34 AM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration