dd command failing


 
Thread Tools Search this Thread
Operating Systems HP-UX dd command failing
# 1  
Old 05-12-2005
dd command failing

I am new to HP-UX.

I have an 8GB drive that is my root drive, contained in a Volume Group.

I would like to clone that drive to another drive, which is 18.4GB. The other drive is not in a volume group.

I am using this simple command:
Code:
# dd if=/dev/dsk/c0t6d0 of=/dev/dsk/c0t5d0

The command fails with this error:
Code:
I/O error
387097+0 records in
387096+1 records out

I have been able to successfully run this command on another HP-UX machine that is running the identical OS level. The root drive is only 4GB on the other host, half the size of the problem host.

I am running HP-UX 10.20.

Thanks in advance for any help.

-Eric

Last edited by rbatte1; 06-16-2015 at 07:01 AM.. Reason: Added CODE tags
# 2  
Old 05-12-2005
Post the output of the following commands:
Code:
diskinfo -v /dev/rdsk/c0t6d0
diskinfo -v /dev/rdsk/c0t5d0

Also run "lssf /dev/dsk/c0t5d0" to get the hardware path of the device. this will be something like 10/0.4.0. Run cstm. At the cstm prompt, type "map". Look at the map and find the line for the disk. Look in column one to get the device number. Let's say the device number is 7. Then run
Code:
sel dev 7
info
infolog
quit

And post the results of that.

Last edited by rbatte1; 06-16-2015 at 07:02 AM..
# 3  
Old 05-13-2005
Thank you for your reply. Here is the info you requested:

Code:
# diskinfo -v /dev/rdsk/c0t6d0
SCSI describe of /dev/rdsk/c0t6d0:
             vendor: SEAGATE
         product id: ST39216N
               type: direct access
               size: 8971292 Kbytes
   bytes per sector: 512
          rev level: 0010
    blocks per disk: 17942584
        ISO version: 0
       ECMA version: 0
       ANSI version: 3
    removable media: no
    response format: 2
   (Additional inquiry bytes: (32)42 (33)4e (34)30 (35)52 (36)31 (37)5a (38)43 (39)0 (40)0 (41)0 (42)0 (43)0 (44)0 (45)0 (46)0 (47)0 (48)0 (49)0 (50)0 (51)0 (52)0 (53)0 (54)0 (55)0 (56)0 (57)0 (58)0 (59)0 (60)0 (61)0 (62)0 (63)0 (64)0 (65)0 (66)0 (67)0 (68)0 (69)0 (70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (77)0 (78)0 (79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0 (87)0 (88)0 (89)0 (90)0 (91)0 (92)43 (93)6f (94)70 (95)79 (96)72 (97)69 (98)67 (99)68 (100)74 (101)20 (102)28 (103)63 (104)29 (105)20 (106)32 (107)30 (108)30 (109)30 (110)20 (111)53 (112)65 (113)61 (114)67 (115)61 (116)74 (117)65 (118)20 (119)41 (120)6c (121)6c (122)20 (123)1 (124)11 (125)c8 (126)38 (127)0 (128)0 (129)2 (130)0 (131)0 (132)0 (133)0 (134)0 (135)0 (136)0 (137)0 (138)0 )

# diskinfo -v /dev/rdsk/c0t5d0
SCSI describe of /dev/rdsk/c0t5d0:
             vendor: SEAGATE
         product id: ST318418N
               type: direct access
               size: 19457024 Kbytes
   bytes per sector: 512
          rev level: 0003
    blocks per disk: 38914049
        ISO version: 0
       ECMA version: 0
       ANSI version: 3
    removable media: no
    response format: 2
   (Additional inquiry bytes: (32)4a (33)4a (34)30 (35)38 (36)30 (37)54 (38)4c (39)0 (40)0 (41)0 (42)0 (43)0 (44)0 (45)0 (46)0 (47)0 (48)0 (49)0 (50)0 (51)0 (52)0 (53)0 (54)0 (55)0 (56)0 (57)0 (58)0 (59)0 (60)0 (61)0 (62)0 (63)0 (64)0 (65)0 (66)0 (67)0 (68)0 (69)0 (70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (77)0 (78)0 (79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0 (87)0 (88)0 (89)0 (90)0 (91)0 (92)43 (93)6f (94)70 (95)79 (96)72 (97)69 (98)67 (99)68 (100)74 (101)20 (102)28 (103)63 (104)29 (105)20 (106)32 (107)30 (108)30 (109)32 (110)20 (111)53 (112)65 (113)61 (114)67 (115)61 (116)74 (117)65 (118)20 (119)41 (120)6c (121)6c (122)20 (123)2 (124)51 (125)c8 (126)1 (127)0 (128)0 (129)2 (130)0 (131)0 (132)0 (133)0 (134)0 (135)0 (136)0 (137)0 (138)0 )

# lssf /dev/dsk/c0t5d0
sdisk card instance 0 SCSI target 5 SCSI LUN 0 section 0 at address 2/0/1.5.0 /dev/dsk/c0t5d0

cstm>map
                                     e9800-2

  Dev                                                 Last        Last Op
  Num  Path                 Product                   Active Tool Status
  ===  ==================== ========================= =========== =============
    1  1                    Graphics Interface (Artis
    2  2                    Core I/O Adapter (1b)
    3  2/0/1                SCSI Interface (1b)
    4  2/0/1.2.0            SCSI Disk (PLEXTORCD-ROM)
    5  2/0/1.3.0            SCSI Tape (SEAGATEDAT)
    6  2/0/1.4.0            SCSI Floppy Disk (TEACFC-
    7  2/0/1.5.0            SCSI Disk (SEAGATEST31841
    8  2/0/1.6.0            SCSI Disk (SEAGATEST39216
    9  2/0/2                LAN Interface (1b)
   10  2/0/4                RS-232 Interface (1b)
   11  2/0/6                Centronics Interface (1b)
   12  2/0/8                Audio Interface (1b)
   13  2/0/11               Built-in Keyboard/Mouse (
   14  7                    Core I/O Adapter (1b)
   15  7/0/2                RS-232 Interface (21)
   16  8                    CPU (604)
   17  9                    MEMORY (0)
   18  15                   VME Adapter (1b)
   19  15/0/2               Unknown ()
   20  15/0/3               Unknown ()
   21  15/0/4               Unknown ()
   22  15/0/5               Unknown ()
cstm>
cstm>sel dev 7
cstm>info
-- Updating Map --
Updating Map...
cstm>infolog
-- Converting a (784) byte raw log file to text. --
Preparing the Information Tool Log for SCSI Disk on path 2/0/1.5.0 File ...

.... e9800-2  :  192.168.1.100 ....

-- Information Tool Log for SCSI Disk on path 2/0/1.5.0 --

Log creation time: Fri May 13 10:41:41 2005

Hardware path: 2/0/1.5.0


Product Id:       ST318418N         Vendor:           SEAGATE
Device Type:      SCSI Disk         Firmware Rev:     0003
Device Qualifier: SEAGATEST318418N  Logical Unit:     0
Serial Number:    3JJ080TL00007328LSY3
Capacity (M Byte):          19001.00
   Block Size:              512
   Max Block Address:       38914048
Error Logs
   Read Errors:                1    Buffer Overruns:        N/A
   Read Reverse Errors:      N/A    Buffer Underruns:       N/A
   Write Errors:               0    Non-Medium Errors:        1
   Verify Errors:              0


Last edited by rbatte1; 06-16-2015 at 07:02 AM..
# 4  
Old 05-13-2005
The only reason that I can imagine for the result that you got is to take "I/O error" literally. That is the disk actually failed. I don't believe that I have seen a non-medium error before. I think that means the electronics in the drive rather than the actual disk. I suspect that your destination disk is bad.
# 5  
Old 05-13-2005
Thank you. I am going to have the drive replaced and give it another try. I will post the results.

Thanks,
Eric
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Sorting failing cause not known

Hi All, Below is the message I am getting and the process is failing after the child process. The exit status is 11 and the job it is doing is sorting. Is it the status 11 is because of space unavailability. I am sure about the status 11. Below is the success message I got last on... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies

2. Shell Programming and Scripting

How to auto correct a failing command?

If a command is not found, e.g. nawk, this is how I fix the problem ] && NAWK=/usr/bin/gawk ] && NAWK=/usr/bin/nawk ] && NAWK=/usr/bin/awkI use $NAWK an the set the appropriate value based on the system it runs. How can I implement a similar fix for a command found but illegal argument.... (6 Replies)
Discussion started by: mohtashims
6 Replies

3. UNIX for Advanced & Expert Users

While trying to load .so file manually using command its failing

Hi all, I am newbie to linux environment. I was trying to run an .so file manually which in turn call a method in bin folder. Command given, XXX_MODULES=libxxx.so /opt/servicename/bin/methodname -Le -c /opt/servicename/etc/methodname/methodname.conf -n -C -t -m "" When i tried to execute... (1 Reply)
Discussion started by: sharathpadman
1 Replies

4. UNIX for Dummies Questions & Answers

While trying to load .so file manually using command its failing

Hi all, I am newbie to linux environment. I was trying to run an .so file manually which in turn call a method in bin folder. Command given, XXX_MODULES=libxxx.so /opt/servicename/bin/methodname -Le -c /opt/servicename/etc/methodname/methodname.conf -n -C -t -m "" When i tried to... (1 Reply)
Discussion started by: sharathpadman
1 Replies

5. Shell Programming and Scripting

Connect (SSH) to Windows server via Linux server through a script and passing command.. but failing

I am trying to connect to Windows server via Linux server through a script and run two commands " cd and ls " But its giving me error saying " could not start the program" followed by the command name i specify e g : "cd" i am trying in this manner " ssh username@servername "cd... (5 Replies)
Discussion started by: sunil seelam
5 Replies

6. AIX

Backupios Failing

Hi Team, Please help me to resolve the below backup (backupios) issue on my VIO. My VIO is a SAN booted from EMC and powerpath has been installed on this. We already run pprootdev fix and linked the /dev/ipldevice to rootvg hdisk. ... (2 Replies)
Discussion started by: Nazar_KA
2 Replies

7. Shell Programming and Scripting

For loop failing cd command

Hi guys, i've wrote the following loop; for i in `ls` do cd $i/host cat "xxxx.txt" |grep "yyyy" >> zzzz.txt done I have a set of folder with different name and i need to extract a value from a file contained in the host subfolder ( that is present in each folder). When i run... (4 Replies)
Discussion started by: cecco16
4 Replies

8. Shell Programming and Scripting

ps -ef failing sometimes

Hi Everyone, we have a shell script "DLP_recv.sh" that has below command which is supposed to return the number of active instances of itself, which means of there is no other instance then commad would return 1 (for the current instance). The problem is that it sometimes it returns 0 which is... (3 Replies)
Discussion started by: guycool
3 Replies

9. Shell Programming and Scripting

tty command failing

We have script like this in the .bash_profile.. #-# determine if session is interactive or in background if ]; then while true; do read -p "Do you wish to load profile yes or no?" yn case $yn in * ) source /opt/oracle/.profile; break;; * ) break;; *... (2 Replies)
Discussion started by: talashil
2 Replies

10. Solaris

umount is failing

I am trying to umount a NFS share. When I do the following: # umount syrupg21 umount: /oebs/syrupg21: device is busy device bussy so I like to check what is working on the system.... # fuser -muv /oebs/syrupg21/ # So no locks should be there... any clue? Regards, Johan... (3 Replies)
Discussion started by: suntac
3 Replies
Login or Register to Ask a Question