- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX 11.23 failed internal mirrored vg00 disk
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2014 06:53 AM
02-18-2014 06:53 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2014 10:25 AM
02-18-2014 10:25 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2014 01:41 AM
02-19-2014 01:41 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2014 02:35 AM
02-19-2014 02:35 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2014 02:48 AM
02-19-2014 02:48 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2014 02:58 AM
02-19-2014 02:58 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2014 03:07 AM
02-19-2014 03:07 AM
Re: HP-UX 11.23 failed internal mirrored vg00 disk
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2014 03:13 AM
02-19-2014 03:13 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2014 05:28 AM
02-19-2014 05:28 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2014 06:34 AM - edited 02-19-2014 07:02 AM
02-19-2014 06:34 AM - edited 02-19-2014 07:02 AM
SolutionHi,
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