Operating System - HP-UX
1832617 Members
3322 Online
110043 Solutions
New Discussion

System does not see new drive

 
Randy Daniel
Advisor

System does not see new drive

I have a HP9000/L1000 that had a hard drive go bad. The drive was mirrored so I am still up an running. I replaced the bad drive with a new drive but I can not get vgsync to resync the mirrors. What are the steps to correctly replace and resync a drive? Thanks.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: System does not see new drive

Shalom,

The most important step is to run pvcreate on it.

You may need this command as well.

ioscan
insf -C disk

This should get the drive recognized.

Then pvcreate, get it into the correct volume group and restore the lost structure.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Torsten.
Acclaimed Contributor

Re: System does not see new drive

Hi,

this document will guide you:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
A. Clay Stephenson
Acclaimed Contributor

Re: System does not see new drive

Do not run pvcreate. The procedure varies a bit on whether or not this is a boot disk mirror.

If it is not a boot disk then:

Let's assume the replacement disk is c1t5d0 and the VG is /dev/vg01.


vgcfgrestore -n /dev/vg01 /dev/rdsk/c1t5d0
vgchange -a y /dev/vg01
vgsync /dev/vg01


If it is a boot disk then:
vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t5d0
vgchange -a y /dev/vg00
mkboot /dev/rdsk/c1t5d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t5d0
lvlnboot -R
vgsync /dev/vg00
If it ain't broke, I can fix that.
Sp4admin
Trusted Contributor

Re: System does not see new drive

Hey Randy,

It looks like Steven and Clay answer your question.

Do the pvcreate on the drive then make sure its mirrored and a bootable disk. The commands are given above.

Good Luck,
sp,
Randy Daniel
Advisor

Re: System does not see new drive

I have taken 1 step forward and 2 back. Believe it or not I replaced a bad drive with a "new" drive that was bad, so that slowed me down a bit. Now I have "new" drive installed that appears to be good according to diskinfo. Now when I try to extend vg01 to include the "new" drive I get "No device file were found in /dev". How can that be possible if diskinfo can see the device and the device can be seen by sam. Thanks again.
A. Clay Stephenson
Acclaimed Contributor

Re: System does not see new drive

Why in the wide world of sports are you running vgextend? Do a "strings /etc/lvmtab". Is your disk included in vg01? If so then all you need to do is vgcfgrestore, vgchange, and vgsync.
If it ain't broke, I can fix that.