- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Broken primary mirror
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
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
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
09-09-2002 05:48 AM
09-09-2002 05:48 AM
Broken primary mirror
Another curly one.
Two disks in vg00. At some stage (before I was contracted) the secondary mirror went stale and wasn't maintained. THe system was rebooted last week and didn't boot with a LIF area problem. I attempted a lif recovery with the recovery cd (10.20) and failed with bad magic number. Tried this with a number of different super blocks without joy. Found the old mirror, changed the boot path and booted using the old mirror. So I tried pvcreate -B the old primary hoping to re-add it as the mirror.
Here's my status...
two disks... c0t5d0 and its original mirror c1t5d0
I've booted from c1t5d0
pvcreate -B c0t5d0
dd'd c0t5d0 without error.
vg00 looks bad with Cur PV = 2 and Act PV =1 All LV's are available stale and only c1t5d0 appears in PV's section..
vgdisplay -v /dev/vg00
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 2
Act PV 1
Max PE per PV 2000
VGDA 2
PE Size (Mbytes) 4
Total PE 1023
Alloc PE 714
Free PE 309
Total PVG 0
LV's are all available/stale
--- Physical volumes ---
PV Name /dev/dsk/c1t5d0
PV Status available
Total PE 1023
Free PE 309
strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t5d0
/dev/dsk/c1t5d0
/dev/vg01
/dev/dsk/c0t3d0
/dev/dsk/c0t4d0
/dev/dsk/c1t3d0
/dev/dsk/c1t4d0
/dev/dsk/c1t2d0
/dev/dsk/c0t2d0
lvdisplay -v /dev/vg00/lvol1 | more
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 100
Current LE 25
Allocated PE 50
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t5d0 25 25
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
0000 ??? 0000 stale /dev/dsk/c1t5d0 0000 current
0001 ??? 0001 stale /dev/dsk/c1t5d0 0001 current
: :
The -k flag in lvreduce was designed specifically for this reason but fails also as follows...
lvreduce -m 0 -k /dev/vg00/lvol1 1
Physical extents on remaining physical volumes are stale or
Remaining physical volumes are not responding.
lvreduce: The LVM device driver failed to reduce mirrors on
the logical volume "/dev/vg00/lvol1".
Please help.
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 06:08 AM
09-09-2002 06:08 AM
Re: Broken primary mirror
vgcfgrestore /dev/vg00 /dev/rdsk/c0t5d0
You should then be able to sync the LV's.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 06:29 AM
09-09-2002 06:29 AM
Re: Broken primary mirror
vgcfgrestore: Couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
Volume Group configuration has been restored to /dev/rdsk/c0t5d0
and vgdisplay -v still reports as above with 2cur pv's, 1 act pv and only c1t5d0 showing in the PV's section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 06:34 AM
09-09-2002 06:34 AM
Re: Broken primary mirror
Is there a way I can clean the vg and the lv's so that they no longer think there is a mirror?
That way I would be able to recreate the mirror pv from scratch.
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 06:49 AM
09-09-2002 06:49 AM
Re: Broken primary mirror
I think you need to remove the disk from the volume group with a vgreduce -f
http://support4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063208748
I know your not replacing the disk but have a look at
http://support4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062910934
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 06:52 AM
09-09-2002 06:52 AM
Re: Broken primary mirror
# lvdisplay -v -k /dev/vg00/lvol1 | more
.. so that the "PV1" and "PV2" column display the key value instead of the "???" or "disk-path". So far the 1st PV (ie PV1) usually has key value of 0 (zero) meaning you should ..
# lvreduce -m 0 -k /dev/vg00/lvol1 0
instead of using value "1". Again run the "lvdisplay" above to confirm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 06:53 AM
09-09-2002 06:53 AM
Re: Broken primary mirror
Identify the missing extents looking for "stale" extents by logical volume:
# vgdisplay -v vgXY | grep stale
Now look for the "disk key" in the PV column of every logical volume involved, in this output:
# lvdisplay -v -k /dev/vgXX/lvolX
Now, remove that mirror:
# lvreduce -m 0 -k /dev/vgXX/lvolX [diskkey]
Finally, recreate your 'etc/lvmtab':
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -av
# vgchange -a y vgXX
# lvlnboot -R
Then, remove the missing physical device:
# vgreduce -f vgXX
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 06:57 AM
09-09-2002 06:57 AM
Re: Broken primary mirror
You should not be doing a vgextend of c0t5d0. All you would do was to "vgcfgrestore c0t5d0;vgchange -a y vg00" and a vgsync to restore your mirrors.
Try a "vgreduce -f vg00" and see if there is any luck.
Post your latest status.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 06:59 AM
09-09-2002 06:59 AM
Re: Broken primary mirror
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 07:14 AM
09-09-2002 07:14 AM
Re: Broken primary mirror
Unfortunately...
vgreduce -f /dev/vg00
vgreduce: Couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
I removed lvmtab and recreated (vgscan -v), and it still contains c0t5d0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 07:19 AM
09-09-2002 07:19 AM
Re: Broken primary mirror
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 07:29 AM
09-09-2002 07:29 AM
Re: Broken primary mirror
# vgexport -m /mapfile /dev/vg00
# mkdir /dev/vg00
# mknod /dev/vg00/group c 64 0x0#0000
=> Use the same minor number that you have noted down earlier.
# vgimport -m /mapfile /dev/vg00 /dev/dsk/c1t5d0
# vgchange -a y /dev/vg00
Now check vg00 to make sure the offending PV is gone for good.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 12:26 AM
09-10-2002 12:26 AM
Re: Broken primary mirror
Thanks..
ian