Operating System - HP-UX
1748223 Members
4515 Online
108759 Solutions
New Discussion

Re: HP-UX 11.23 failed internal mirrored vg00 disk

 
SOLVED
Go to solution
ManuelRC
Advisor

Re: HP-UX 11.23 failed internal mirrored vg00 disk

I don't know what i am missing, but it's not working.

 

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

 

WARNING: This is a DESTRUCTIVE operation.

This might result in failure of current I/O requests.

Do you want to continue ?(y/n) [n]...

ERROR: Could not stat the file /dev/dsk/c1t1d0: No such file or directory

 

So, I should not have deleted the original DSFs /dev/(r)dsk/c1t1d0(sX), but I think I can recreate them.

 

#mknod /dev/dsk/c1t1d0 b 31 0x011000
#mknod /dev/rdsk/c1t1d0 c 188 0x011000

#chown bin:sys /dev/dsk/c1t1d0

#chown bin:sys /dev/rdsk/c1t1d0

#chmod 640 /dev/dsk/c1t1d0

#chmod 640 /dev/rdsk/c1t1d0

 

But sasmgr still fails, with a different error:

 

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

 

WARNING: This is a DESTRUCTIVE operation.

This might result in failure of current I/O requests.

Do you want to continue ?(y/n) [n]...

ERROR: Unable to replace target: No such device

 

By the way, I've seen in other posts that sasmgr is used with raw rdsk, instead of dsk, but it doesn't work neither.

 

Not sure about what I'm missing.

 

I'm using the correct /dev/sasd0:

#ioscan -fnkd sasd
Class        I  H/W Path  Driver S/W State   H/W Type     Description
====================================================================
escsi_ctlr   0  0/4/1/0   sasd CLAIMED     INTERFACE    HP  PCI/PCI-X SAS MPT Adapter
                         /dev/sasd0

 

Old disk (old_dev) was c1t1d0, and I've recreated the DSFs:

sapjr01#ll /dev/dsk/c1t1d0
brw-r-----   1 bin        sys         31 0x011000 Feb 18 15:08 /dev/dsk/c1t1d0
sapjr01#ll /dev/rdsk/c1t1d0
crw-r-----   1 bin        sys        188 0x011000 Feb 18 15:08 /dev/rdsk/c1t1d0

 

And the new path (new_tgt_hwpath) is 0/4/1/0.0.0.2.0:

#ioscan -funC disk

Class        I  H/W Path        Driver         S/W State   H/W Type     Description
====================================================================================
disk         0  0/0/2/1.0.16.0.0     sdisk          CLAIMED     DEVICE       TEAC    DV-28E-N
                               /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
disk         1  0/4/1/0.0.0.0.0      sdisk          CLAIMED     DEVICE       HP      DG146ABAB4
                               /dev/dsk/c1t0d0     /dev/dsk/c1t0d0s2   /dev/rdsk/c1t0d0    /dev/rdsk/c1t0d0s2
                               /dev/dsk/c1t0d0s1   /dev/dsk/c1t0d0s3   /dev/rdsk/c1t0d0s1  /dev/rdsk/c1t0d0s3
disk        87  0/4/1/0.0.0.2.0      sdisk          CLAIMED     DEVICE       HP      DG0146FAMWL
                               /dev/dsk/c1t2d0   /dev/rdsk/c1t2d0

...

 

What am I missing, what "No such device"?

 

Thanks

likid0
Honored Contributor

Re: HP-UX 11.23 failed internal mirrored vg00 disk

that's strange, can you run :

 

# saslist get_info lun sasd

# sasmgr get_info -D /dev/sasd0 -q lun=all -q lun_locate=all

# sasmgr get_info -D /dev/sasd0 -q raid
# ioscan -fn

Windows?, no thanks
ManuelRC
Advisor

Re: HP-UX 11.23 failed internal mirrored vg00 disk

I've attached the output from these commands.

 

 

Anyway, right now maybe I should focuse on solve the lvlnboot error, and try another option.

I'm thinking about reducing vg00, to remove all c1t1d0s2 references, and then add c1t2d0s2 (I'll have to partition the disk again), and then re-mirror the lvols.

 

What do you think about this?

 


Thanks.

Torsten.
Acclaimed Contributor

Re: HP-UX 11.23 failed internal mirrored vg00 disk

You obviously booted the system without the failed disks, so the old device files are gone and you cannot redirect.

 

>> I'm thinking about reducing vg00, to remove all c1t1d0s2 references, and then add c1t2d0s2 (I'll have to partition the disk again), and then re-mirror the lvols.

 

This is the way to go ...


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!   
likid0
Honored Contributor

Re: HP-UX 11.23 failed internal mirrored vg00 disk

As torsten points out, your old device isn't present anymore, that procedure is for online replacement only:

 

#saslist get_info lun sasd
HBA device file: /dev/sasd0
-----------------------------


LUN dsf              Hardware Path                  SAS Address
------------------------------------------------------------------
/dev/rdsk/c1t0d0     0/4/1/0.0.0.0.0                0x5000c5000409d105
/dev/rdsk/c1t2d0     0/4/1/0.0.0.2.0                0x5000c5001695193d


#sasmgr get_info -D /dev/sasd0 -q lun=all -q lun_locate=all
/dev/rdsk/c1t0d0          0/4/1/0.0.0.0.0           1     7     OFF
/dev/rdsk/c1t2d0          0/4/1/0.0.0.2.0           1     8     OFF
Windows?, no thanks
ManuelRC
Advisor

Re: HP-UX 11.23 failed internal mirrored vg00 disk

Hi, thanks both of you.

 

I saw this other post (http://h30499.www3.hp.com/t5/System-Administration/MPT-SAS-Problem-with-disk-ID/td-p/5592209#.UwSMaOKDNMs) and I thought I could try to recover the old DSFs with mknod or mksf.

 

If it's not the case, I will do the other option.

 

But before attempting to reduce the vg00, there is one thing I'd like to solve.

Right now lvlnboot shows no information, only an error:

 

#lvlnboot -v

lvlnboot: Couldn't query physical volume "/dev/dsk/c1t1d0s2":

The specified path does not correspond to physical volume attached to

this volume group

 

#lvlnboot -v /dev/vg00

lvlnboot: Couldn't query physical volume "/dev/dsk/c1t1d0s2":

The specified path does not correspond to physical volume attached to

this volume group

 

It shows no info about the remaining disk in vg00.

 

In this situation I don't feel comfortable about reducing vg00. How can I solve this error?

 

I'm thinking about doing:

lvlnboot -r /dev/vg00/lvol3
lvlnboot -s /dev/vg00/lvol2
lvlnboot -b /dev/vg00/lvol1

 

And see if this solves the error.

 

¿What do you think?

 

Thanks

Torsten.
Acclaimed Contributor

Re: HP-UX 11.23 failed internal mirrored vg00 disk

Whoever wrote the post you found thinks it is worth to try ... ;-)

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!   
ManuelRC
Advisor

Re: HP-UX 11.23 failed internal mirrored vg00 disk

As I posted above, I tried to recreate the DSFs with mknod (and mksf), but no luck.

 

It still shows the "No such device" error.

 

 

Forgetting the sasmgr option, and focusing on the other option, right now I'm scared about the lvlnboot error.

 

#lvlnboot -v
lvlnboot: Couldn't query physical volume "/dev/dsk/c1t1d0s2":
The specified path does not correspond to physical volume attached to
this volume group

 

I now it's normal that it complains about the missing disk, but what I don't think it's normal is that it doesn't show anything else, no information about the root, swap or boot devices.

 

 

ManuelRC
Advisor

Re: HP-UX 11.23 failed internal mirrored vg00 disk

This is what I'm planning to do:

 

vgreduce -f /dev/vg00


mv /etc/lvmtab /etc/lvmtab.bck.20140219

vgscan -v

# CHECK VG00 AND THE OTHER VGs
vgdisplay -v
strings /etc/lvmtab

 

# IF VG00 IS MISSING, RECOVER ORIGINAL LVMTAB
mv /etc/lvmtab.bck.20140219 /etc/lvmtab

# IF VG00 IS CORRECT
vgfcgbackup /dev/vg00

 

 

After that, I will continue with the new mirror, and I'll try to solve the lvlnboot error.

 

 

What do you think, do you see any mistake, or is there something I should or should not do?

 

Thanks.

likid0
Honored Contributor
Solution

Re: HP-UX 11.23 failed internal mirrored vg00 disk

Hi,

 

You can try first with vgreduce -f /dev/vg00.

 

If it tells you that you still have PEs in use, you need to lvreduce the bad disk PEs from each lvol using the missing disk key(-k).

 

For example:

 

Get the key of the missing disk:

lvdisplay -k -v /dev/vg00/lvol1

lvreduce -k -m 0 /dev/vg00/lvol1 0      ---> the last number is the missing disk key

 

You also have and lvol without mirror, that you will have to remove.

 

Once you have reduced all your lvols you can do the:

 

#vgreduce -f /dev/vg00

 

Check if /etc/lvmtab only has the good disk in vg00, if it does:

 

#vgchange -a y /dev/vg00

 

If it still has both disks, you will have to use vgscan as you metioned and then vgchange -a y /dev/vg00:

 

#mv /etc/lvmtab /etc/lvmtab.old

#vgscan -v

#strings /etc/lvmtab

#vgchange -a y /dev/vg00

Windows?, no thanks