- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Replacing a Broken Mirror 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
Forums
Discussions
Discussions
Forums
Discussions
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
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
07-02-2002 05:10 AM
07-02-2002 05:10 AM
I have a disk configuration problem. I found that one of the mirror disks in my vg00 group had failed, and the mirror had become stale.
I removed the disk and replace with a spare. However, I am unable to use the vgcfgretsore command with success. The process I am using is as follows:
root : /# pvcreate -f /dev/rdsk/c1t2d0
Physical volume "/dev/rdsk/c1t2d0" has been successfully created.
root : /# vgcfgrestore -n /dev/vg00 /dev/dsk/c1t2d0
vgcfgrestore: Couldn't query physical volume "/dev/dsk/c1t2d0":
The specified path does not correspond to physical volume attached to
this volume group
Configuration info for Physical Volume "/dev/dsk/c1t2d0" not found
in "/etc/lvmconf/vg00.conf" :
Character-special file for PV not supplied on command line, OR
PV did not belong to Volume Group /dev/vg00 when configuration file was created.
Has anyone got any ideas?
Thanks,
Ian.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 05:19 AM
07-02-2002 05:19 AM
Re: Replacing a Broken Mirror Disk
Couple of things.
First if this is vg00 you'll need to
pvcreate -f -B /dev/rdsk/c1t2d0 as the -B reserves the boot space.
As to the vgcfgrestore, my guess would be that the .conf file was not accurate or up to date OR you have to use /dev/rdsk/c1t2d0 - the raw device.
If inaccurate .conf, that's not a problem though, just create the PV/VG/LVs & remirror them.
Don't forget the lvlnboot commands to set the disk for root, boot,primary swap & dump.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 05:21 AM
07-02-2002 05:21 AM
Re: Replacing a Broken Mirror Disk
Just a thought :
1. you chould have run the vgcfgbackup command after the mirror harddisk was created earlier or after any changes were made to the root vg.
2. the old mirror disk which failed had the same device file name /dev/dsk/c1t2d0 ??
If not then try to set the SCSI ID of the harddisk as that of the old harddisk and you will be able to run the vgcfgrestore command.
Check the contents of the /etc/lvmtab by
strings /etc/lvmtab and see the device files in the /dev/vg00 and set the new harddisk with the same ID.
What is the output of lvlnboot -v
Or else you will have to create a new mirror.
Try using the pvcreate -B for making the disk as a boot disk.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 05:24 AM
07-02-2002 05:24 AM
SolutionTo Create a new mirror disk,
1) pvcreate -B /dev/rdsk/c1t2d0
2)vgextend /dev/vg00 /dev/dsk/c1t2d0
3)mkboot /dev/rdsk/c1t2d0
4)mkboot -a "hpux -lq(;0)/stand/vmunix" /dev/rdsk/c1t2d0
5)lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t2d0
6)lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t2d0
7) lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t2d0
8)lvlnboot -b /dev/vg00/lvol1
9)lvlnboot -s /dev/vg00/lvol2
10)lvlnboot -r /dev/vg00/lvol3
11)lvlnboot -d /dev/vg00/lvol2
12)lvlnboot -R /dev/vg00
13)lvlnboot -v
Will show you both the disk. Reboot the system.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 05:26 AM
07-02-2002 05:26 AM
Re: Replacing a Broken Mirror Disk
ioscan -fnC disk
then vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t2d0
vgchange -a y /dev/vg00
mkboot /dev/rdsk/c1t2d0
mkboot -a "hpux" /dev/rdsk/c1t2d0
lvlnboot -R
vgsync vg00
This is the procedure I use.
check using "strings /etc/lvmtab" to see if c1t2d0 is actually a member of vg00.
Be sure you are using the right device file and the charcater not blcok device
Good luck
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 05:33 AM
07-02-2002 05:33 AM
Re: Replacing a Broken Mirror Disk
To do what Piyush is saying you need to reduce the mirrors to 0 before removing the disks. It works but is very long.
Use vgsync to re-sync stale lvols.
One last thing, I see no reason why to reboot. I've done it many times, never rebooted, what is the use to replace a mirror disks hot plug and STILL reboot..
I do not agree
Good luck
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 06:09 AM
07-02-2002 06:09 AM
Re: Replacing a Broken Mirror Disk
root : /# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 0/0/1/1.0.0 sdisk CLAIMED DEVICE IBM DMVS18D
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 1 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 18.2GMAN3184MC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0....
root : /# pvcreate -f -B /dev/rdsk/c1t2d0
Physical volume "/dev/rdsk/c1t2d0" has been successfully created.
root : /# vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t2d0
vgcfgrestore: Couldn't query physical volume "/dev/dsk/c1t2d0":
The specified path does not correspond to physical volume attached to
this volume group
Volume Group configuration has been restored to /dev/rdsk/c1t2d0
However, even at this point a vgdisplay on the group does not show the new PV. I am thinking that it will be necessary to re-create the whole mirror configuration as per Piyush's suggestion.
issuing a strings on the /etc/lvmtab displays the following:
/dev/vg00
/dev/dsk/c2t2d0
So the new disk is not part of the VG.
I am a little nervous about issuing the vgchange -a y /dev/vg00 command as the system is online and very critcal. However, would it work with the new disk not showing in the VG?
Trending carefully,
Ian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 06:15 AM
07-02-2002 06:15 AM
Re: Replacing a Broken Mirror Disk
What does /etc/lvmtab show for the vg00 VG?
If not c1t2d0 but another that's now gone.
Then vgreduce the nonexistent one & vgextend vg00 to include c1t2d0.
Then you can vgcfgrestore I believe.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 06:24 AM
07-02-2002 06:24 AM
Re: Replacing a Broken Mirror Disk
don't worry, go in for creating the new mirror disk for vg00.
If you have Ignite loaded on your system then take the Ignite tape backup using make_tape_recovery.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 06:41 AM
07-02-2002 06:41 AM
Re: Replacing a Broken Mirror Disk
root : /# strings /etc/lvmtab
/dev/vg01
/dev/dsk/c1t0d0
/dev/dsk/c2t0d0
/dev/vg00
/dev/dsk/c2t2d0
/dev/vg02
/dev/dsk/....
Only the active disk is in VG00. I do have the original /etc/lvmtab, with both disks. When this is in place I am unable to use the pvcreate command.
If I go about re-creating the mirror from scratch, do I need to remove anything first (e.g. vgreduce or lvremove)?
Also, as this is VG00 can I do this work in multi-user with the file systems mounted?
Thanks,
Ian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 07:00 AM
07-02-2002 07:00 AM
Re: Replacing a Broken Mirror Disk
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 07:31 AM
07-02-2002 07:31 AM
Re: Replacing a Broken Mirror Disk
Since the new disk is not in your lvmtab, you need not worry. Also execute the lvlnboot -v and check whether it shows only one disk.
Also check vgdisplay -v /dev/vg00 and check whether there is only one harddisk in this vg.
I recommend to do it after going to the single user mode.
After all the steps for mirroring are over and you see both the disks by command lvlnboot -v
Give the command
#lvsync /dev/vg00 ( to sysncronize the mirror )
and then # shutdown -r
All the best,
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 07:31 AM
07-02-2002 07:31 AM
Re: Replacing a Broken Mirror Disk
Cheers,
Ian