Operating System - HP-UX
1752567 Members
5057 Online
108788 Solutions
New Discussion

Re: LVM - pvcreate Error - "No such device or address"

 
SOLVED
Go to solution
Torsten.
Acclaimed Contributor
Solution

Re: LVM - pvcreate Error - "No such device or address"

This is was happened:

 

A non-RAID disk has gone bad.

 

disk    8  0/4/1/0.0.0.5.0      sdisk          NO_HW       DEVICE       HP      DG146BB976

 

You replace it and you get a new device file on a new hardware path:

 

disk        18  0/4/1/0.0.0.7.0        sdisk          CLAIMED     DEVICE       HP      EH0146FARWD

 

Now you say "please use the new device as a replacement for the old device":

 

# sasmgr replace_tgt -D /dev/sasd0 -q old_dev=/dev/dsk/c1t5d0 -q new_tgt_hwpath=0/4/1/0.0.0.7.0

 

and you see

 

disk         8  0/4/1/0.0.0.5.0        sdisk          CLAIMED     DEVICE       HP      EH0146FARWD

 

 

but the system remembers the "new" device, now as "NO_HW", because it became the replacement for the "old" device.

 

disk        18  0/4/1/0.0.0.7.0        sdisk          NO_HW       DEVICE       HP      EH0146FARWD

 

 

 

 

 

This will become a bit more complicated if you use 11.31 ;-)

 

 

So better use a hardware RAID (like your vg00), if possible.


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!   
PHSC
Frequent Advisor

Re: LVM - pvcreate Error - "No such device or address"

Many thanks for the assistance Torsten, the disk is now claimed and back in the VG.  All OK now.