- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LVM issue with SAN attached storage
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
10-04-2005 07:35 AM
10-04-2005 07:35 AM
LVM issue with SAN attached storage
I have another issue see the example with vg12 below. It gives the "Cross-device link" error on a vgdisplay. The vg is up and running, I am hesitant to reboot or restart the vg due to this error. See errors from lvm.11 program (tool I got from HP supprot) as well.
BUBBA:/:# vgchange -a y vg12
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c11t2d3":
Cross-device link
vgchange: Cross-device link
Volume group "vg12" has been successfully changed.
BUBBA:/:# ./lvm.11 -d /dev/rdsk/c11t2d3
Primary lvmrec has a bad magic trying secondary
Both lvmrecs of /dev/rdsk/c11t2d3 have bad magics. Failure!
BUBBA:/:# vgdisplay -v vg14
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c11t2d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c12t2d1":
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/vg14
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 65535
VGDA 2
PE Size (Mbytes) 16
Total PE 1279
Alloc PE 1279
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c11t2d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c12t2d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg14/lvol1
LV Status available/syncd
LV Size (Mbytes) 20464
Current LE 1279
Allocated PE 1279
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c5t2d1
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c11t2d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c12t2d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
PV Name /dev/dsk/c6t2d1 Alternate Link
PV Status available
Total PE 1279
Free PE 0
Autoswitch On
Bubba:/:# vgchange -a y vg14
Volume group "vg14" has been successfully changed.
BUBBA:/:# vgdisplay -v vg14
--- Volume groups ---
VG Name /dev/vg14
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 65535
VGDA 2
PE Size (Mbytes) 16
Total PE 1279
Alloc PE 1279
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg14/lvol1
LV Status available/syncd
LV Size (Mbytes) 20464
Current LE 1279
Allocated PE 1279
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c5t2d1
PV Name /dev/dsk/c11t2d1 Alternate Link
PV Name /dev/dsk/c6t2d1 Alternate Link
PV Name /dev/dsk/c12t2d1 Alternate Link
PV Status available
Total PE 1279
Free PE 0
Autoswitch On
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2005 11:35 AM
10-04-2005 11:35 AM
Re: LVM issue with SAN attached storage
Looks to me like it was more of a problem with your SAN.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2005 01:12 PM
10-04-2005 01:12 PM
Re: LVM issue with SAN attached storage
Still, I don't think it explains the particular problem with vg12. What is a "Cross-device link"? Leads me to believe there is some problem with the data (although it is mounted and functioning...) or the LVM header..
BUBBA:/:# vgchange -a y vg12
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c11t2d3":
Cross-device link
vgchange: Cross-device link
Volume group "vg12" has been successfully changed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2005 03:30 PM
10-04-2005 03:30 PM
Re: LVM issue with SAN attached storage
All the those VGs were mounted and working you are running vgdisply on them and getting all those errors .
I would advise cross check everything before doing any changes or running comamands as it maybe disasterous.
Cross-Device link means the device is being owned by more than one VG. The cause of this crossing is the mismatch between lvmtab and LVM headers on the disk.
check if the disk belogs to more than one VG in the lvmtab. If it does, then lvmtab ncould be recreated using vgscan.
I guess there won't be such mismatch in your case since you already used lvm tool and if we go as per the errors given for VG12, the LVMREC ( both records ) of PVRA or PVRA itself of c11t2d3 are corrupted.
In this case , the LVM headers need to be restored from /etc/lvmconf/vg12.conf
Check if has the disk entry in it using # vgcfgrestore -l -n vg12
If it does then the LVM header could be restored on the disk using
#vgcfgrestore -n vg12 /dev/dsk/c11t2d3
#vgchange -a y /dev/vg12
Note there maybe misleading case as the VG maybe pointing to wrong PV itself ( because of issues with SAN storage ) and hence the lvm tool is couldn't find the lvmrec. You need to cross check all using all previous configuration information which you might have noted like VGs , their PVs , LVs etc..
I suspect the corruption could be caused by problems at SAN storage side. Which SAN Storage is being used?
For VG14 issue , I suspect the cause as connection throught HBA to the LUN which is getting down ( may be intermittenty ) causing those alternate link failures.
Once again verify all before doing any actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2005 06:44 PM
10-04-2005 06:44 PM
Re: LVM issue with SAN attached storage
#vgcfgrestore -l -n vg12
Volume Group Configuration information in "/etc/lvmconf/vg12.conf"
VG Name /dev/vg12
---- Physical volumes : 2 ----
/dev/rdsk/c11t2d3 (Non-bootable)
/dev/rdsk/c12t2d3 (Non-bootable)
I am really curious as to how I got into this state, however. I know a pvcreate can blow away headers, but I'm pretty sure that isn't what happened here. Can some event on the SAN side cause this (it's Hitachi by the way)? If so, I wonder if there is something in syslog I can monitor..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 03:37 PM
10-05-2005 03:37 PM
Re: LVM issue with SAN attached storage
vgcfgrestore on vg12 gave "Invalid LVMREC on Physical Volume "
so i decided to:
pvcreate /dev/rdsk/c11t2d3
at this point vgcfgrestore complains about no vg12 in existence...so I run:
vgscan -av
vgchange -a y vg12
now finally vgcfgrestore works and vg12 is happy again.
I am still curious...could the something on the SAN side cause this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 02:18 PM
10-06-2005 02:18 PM