Operating System - HP-UX
1833004 Members
3005 Online
110048 Solutions
New Discussion

replace bad disk in lvm (surestore e hvd10)

 
golfnut
Frequent Advisor

replace bad disk in lvm (surestore e hvd10)

Hi

I have a bad disk which is part of lvm. VG vg01. Its not mirrored/raid.
I just want to replace it.

I tried to use dd to identify the bad disk and the good disks around it but was not successful. The lights did not blink on any disks with dd if=diskname of=/dev/null. Dont know why?

I was very confident which the bad disk was so I pulled it out and replaced it.

Now I can see the new disk with ioscan (after runing insf) but cant dd to it.
/dev/dsk/c1t9d0: No such device or address
dd: cannot open /dev/dsk/c1t9d0.

Once I see the disk, I would also like to know how to incorporate it back into the vg vg01.


Please advise?

thanks
8 REPLIES 8
Robert-Jan Goossens
Honored Contributor

Re: replace bad disk in lvm (surestore e hvd10)

Hi,

Could you post a
# ioscan -fnCdisk

Regards,
Robert-Jan
golfnut
Frequent Advisor

Re: replace bad disk in lvm (surestore e hvd10)

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 0 10/0.3.0 sdisk CLAIMED DEVICE SEAGATE ST34371W
/dev/dsk/c0t3d0 /dev/rdsk/c0t3d0
disk 1 10/0.4.0 sdisk CLAIMED DEVICE SEAGATE ST34371W
/dev/dsk/c0t4d0 /dev/rdsk/c0t4d0
disk 2 10/0.5.0 sdisk CLAIMED DEVICE SEAGATE ST34371W
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 3 10/0.6.0 sdisk CLAIMED DEVICE SEAGATE ST34371W
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
disk 4 10/4/4.8.0 disc3 CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t8d0 /dev/rdsk/c1t8d0
/dev/floppy/c1t8d0 /dev/rfloppy/c1t8d0
disk 5 10/4/4.9.0 disc3 CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t9d0 /dev/rdsk/c1t9d0
/dev/floppy/c1t9d0 /dev/rfloppy/c1t9d0
disk 6 10/4/4.10.0 disc3 CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t10d0 /dev/rdsk/c1t10d0
/dev/floppy/c1t10d0 /dev/rfloppy/c1t10d0
disk 7 10/4/4.11.0 disc3 CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t11d0 /dev/rdsk/c1t11d0
/dev/floppy/c1t11d0 /dev/rfloppy/c1t11d0
disk 12 10/12/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5401TA
/dev/dsk/c4t2d0 /dev/rdsk/c4t2d0
A. Clay Stephenson
Acclaimed Contributor

Re: replace bad disk in lvm (surestore e hvd10)

Yours is an interesting approach:
1) Do something
2) Next determine the correct procedure.

Please post the output of ioscan -fn and vgdisplay -v /dev/vg01.

The LED's should have been blinking but especially if you use /dev/rdsk/cXtYd0.

It's possible that the replacement disk is bad or you replaced the wrong one. Until you can dd, LVM doesn't stand a chance.

In any event, here's your procedure after you can talk to the raw disk via dd.

vgcfgrestore -n /dev/vg01 /dev/rdsk/c1t9d0
vgchange -a y /dev/vg01
Next do a pvdisplay -v /dev/dsk/c1t9d0 and see which LVOL's (or parts thereof) are housed on the replacement disk.

For each of those:
newfs -F vxfs /dev/vg01/rlvol1 (or whatever LVOL)
mount each filesystem
restore from backup
If it ain't broke, I can fix that.
Stephen Keane
Honored Contributor

Re: replace bad disk in lvm (surestore e hvd10)

The dd command is complaining because it thinks you don't have a device called /dev/dsk/c1t9d0

According to ioscan you do appear to have is

/dev/dsk/c1t9d0 /dev/rdsk/c1t9d0
/dev/floppy/c1t9d0 /dev/rfloppy/c1t9d0

Why you have 2 floppy disk devices associated with your FDD is interesting in itself.

Can you do and ll of /dev/rdsk and /dev/dsk
and post the result?

golfnut
Frequent Advisor

Re: replace bad disk in lvm (surestore e hvd10)

Yours is an interesting approach:
1) Do something
2) Next determine the correct procedure.

>I got help from the forum discussion while >i was trouble shooting this.

Please post the output of ioscan -fn and vgdisplay -v /dev/vg01.

>attached.


The LED's should have been blinking but especially if you use /dev/rdsk/cXtYd0.

>They only blink for 2 disk and not for the >other 7. Ofcourse one is bad.

>The led in the top right corner (green) is lit.

It's possible that the replacement disk is bad or you replaced the wrong one. Until you can dd, LVM doesn't stand a chance.

>It is possible that the replacement disk could be bad. I have a new one and i will try that.

thanks

golfnut
Frequent Advisor

Re: replace bad disk in lvm (surestore e hvd10)

I found that interesting myself. I dont understand where the floppy comes in from.

Here is the output of /dev/dsk and /dev/rdsk.

thanks


# ls
c0t3d0 c0t5d0 c1t10d0 c1t8d0 c2t10d0 c2t8d0 c4t2d0
c0t4d0 c0t6d0 c1t11d0 c1t9d0 c2t11d0 c2t9d0
# ls -la
total 10
drwxr-xr-x 2 bin bin 1024 Jan 18 11:12 .
dr-xr-xr-x 18 bin bin 4096 Jan 18 11:06 ..
brw-r----- 1 bin sys 31 0x003000 Jun 29 2001 c0t3d0
brw-r----- 1 bin sys 31 0x004000 Jun 29 2001 c0t4d0
brw-r----- 1 bin sys 31 0x005000 Jun 29 2001 c0t5d0
brw-r----- 1 bin sys 31 0x006000 Jun 29 2001 c0t6d0
brw-r----- 1 bin sys 28 0x01a000 Jun 29 2001 c1t10d0
brw-r----- 1 bin sys 28 0x01b000 Jun 29 2001 c1t11d0
brw-r----- 1 bin sys 28 0x018000 Jun 29 2001 c1t8d0
brw-r----- 1 bin sys 28 0x019000 Jan 18 11:12 c1t9d0
brw-r----- 1 bin sys 28 0x02a000 Jun 29 2001 c2t10d0
brw-r----- 1 bin sys 28 0x02b000 Jun 29 2001 c2t11d0
brw-r----- 1 bin sys 28 0x028000 Jun 29 2001 c2t8d0
brw-r----- 1 bin sys 28 0x029000 Jun 29 2001 c2t9d0
brw-r----- 1 bin sys 31 0x042000 Jun 29 2001 c4t2d0
# cd ..
# cd rdsk
# ls -la
total 10
drwxr-xr-x 2 bin bin 1024 Jan 18 11:12 .
dr-xr-xr-x 18 bin bin 4096 Jan 18 11:06 ..
crw-r----- 1 bin sys 188 0x003000 Jun 29 2001 c0t3d0
crw-r----- 1 bin sys 188 0x004000 Jun 29 2001 c0t4d0
crw-r----- 1 bin sys 188 0x005000 Jun 29 2001 c0t5d0
crw-r----- 1 bin sys 188 0x006000 Dec 30 09:18 c0t6d0
crw-r----- 1 bin sys 177 0x01a000 Jun 29 2001 c1t10d0
crw-r----- 1 bin sys 177 0x01b000 Jun 29 2001 c1t11d0
crw-r----- 1 bin sys 177 0x018000 Jun 29 2001 c1t8d0
crw-r----- 1 bin sys 177 0x019000 Jan 18 11:12 c1t9d0
crw-r----- 1 bin sys 177 0x02a000 Jun 29 2001 c2t10d0
crw-r----- 1 bin sys 177 0x02b000 Jun 29 2001 c2t11d0
crw-r----- 1 bin sys 177 0x028000 Jun 29 2001 c2t8d0
crw-r----- 1 bin sys 177 0x029000 Jun 29 2001 c2t9d0
crw-r----- 1 bin sys 188 0x042000 Jun 29 2001 c4t2d0



Stephen Keane
Honored Contributor

Re: replace bad disk in lvm (surestore e hvd10)

I would remove/rename /dev/dsk/c1t9d0 and /dev/rdsk/c1t9d0 and then run

insf -Cdisk

to see what (if any) device files are created. Then run ioscan -Cdisk -fn again.
A. Clay Stephenson
Acclaimed Contributor

Re: replace bad disk in lvm (surestore e hvd10)

I suggest you review the Troubleshooting section of this manual. You just might have a Bus Control Card Problem especially when you report 7 disk LED's show nothing. It might be something as simple as bad DIP switch settings or termination.

http://h200001.www2.hp.com/bc/docs/support/SupportManual/lpg28482/lpg28482.pdf
If it ain't broke, I can fix that.