Operating System - HP-UX
1834165 Members
1915 Online
110064 Solutions
New Discussion

Is the hard disk failed ?

 
yc_2
Regular Advisor

Is the hard disk failed ?

Hi,

The following showed when I perform pvcreate, mediainit and dd respectively:

pvcreate /dev/rdsk/c3t5d0
pvcreate: writing LVM record: I/O error

mediainit -v /dev/rdsk/c3t5d0
mediainit: initialization process starting
mediainit: locking SCSI device
mediainit: initializing media
mediainit: initialize media command failed - I/O error

dd if=/dev/dsk/c3t5d0 of=/dev/null bs=1024k
17366+1 records in
17366+1 records out

There is no error message in syslog.log and dmesg.

Any advice is appreciated.

 

 




YC

 

P.S. This thread has been moved from Storage>General to HP-UX > LVM and VxVM. -HP Forum Moderator

3 REPLIES 3
Michael Tully
Honored Contributor

Re: Is the hard disk failed ?

Why would you use 'mediainit' at all?

Doing a 'pvcreate -f /dev/rdsk/c3t5d0'
will remove anything that is on the disk anyway.....

Seeing 'dd' works, there is probably nothing wrong with the disk. Try the force method as above. Let us know how you go.
You wouldn't see any errors in syslog, unless the disk is active via the operating system.

Anyone for a Mutiny ?
yc_2
Regular Advisor

Re: Is the hard disk failed ?

Hi,

Same message even with "-f" is included in pvcreate.

Status is claimed when ioscan -fnCdisk is performed.



YC
Michael Tully
Honored Contributor

Re: Is the hard disk failed ?

That looks really strange.....

The 'ioscan' will read a disks presence even if it is unusable.

Can you do this and see what it does.
# diskinfo /dev/rdsk/c3t5d0

The 'dd' that you did, indicates the disk is readable but not writeable, that's what 'pvcreate' will do, can you do a 'dd' where your writing to disk.

e.g
# dd if=/var/adm/syslog/syslog.log of=/dev/rdsk/c3t5d0 bs=1024k

I saw once a few years ago where a disk was installed that was write-protected, it looks a similar problem.
Anyone for a Mutiny ?