- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc/lvmtab file has wrong info. How to fix?
Operating System - HP-UX
1753925
Members
8451
Online
108810
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
06-23-2010 11:03 AM
06-23-2010 11:03 AM
Re: /etc/lvmtab file has wrong info. How to fix?
Here you go. Thanks.
# vgdisplay -v /dev/vg12
--- Volume groups ---
VG Name /dev/vg12
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 32
Cur PV 2
Act PV 1
Max PE per PV 12800
VGDA 2
PE Size (Mbytes) 8
Total PE 127
Alloc PE 127
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg12/lvol1
LV Status available/syncd
LV Size (Mbytes) 1016
Current LE 127
Allocated PE 127
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c17t0d5
PV Status available
Total PE 127
Free PE 0
Autoswitch On
Proactive Polling On
---------------
# lvdisplay -v /dev/vg12/lvol1
--- Logical volumes ---
LV Name /dev/vg12/lvol1
VG Name /dev/vg12
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1016
Current LE 127
Allocated PE 127
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c17t0d5 127 127
--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c17t0d5 00000 current
00001 /dev/dsk/c17t0d5 00001 current
00002 /dev/dsk/c17t0d5 00002 current
00003 /dev/dsk/c17t0d5 00003 current
00004 /dev/dsk/c17t0d5 00004 current
00005 /dev/dsk/c17t0d5 00005 current
00006 /dev/dsk/c17t0d5 00006 current
00007 /dev/dsk/c17t0d5 00007 current . . .
---------
:# strings /etc/lvmtab
/dev/vg00
ST5DE
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
/dev/vg12
hD|e
/dev/dsk/c17t0d5
/dev/vg11
/dev/dsk/c17t1d4
/dev/vg06
/dev/dsk/c17t0d1
/dev/vg07
/dev/dsk/c17t1d1
/dev/dsk/c17t1d3
/dev/dsk/c17t0d2
/dev/dsk/c17t1d2
/dev/dsk/c17t1d0
/dev/vg08
hBtZ
/dev/dsk/c17t0d3
/dev/vg05
ST5D
/dev/dsk/c17t0d0
/dev/vg13
ST5E58
/dev/dsk/c17t0d7
/dev/vg09
ST5J
/dev/dsk/c17t0d4
-----------
This is the one to check:
# strings vg12.conf
CONFIG01
/dev/vg12
/dev/rdsk/c12t0d1
/dev/rdsk/c17t0d6
LVMREC01E
hD|e7E
hD|e
LVMREC01
ST5L
hD|e
hD|e
hD|e7
ST5L
VGDA0001
k>c<
VGSA0001L
# vgdisplay -v /dev/vg12
--- Volume groups ---
VG Name /dev/vg12
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 32
Cur PV 2
Act PV 1
Max PE per PV 12800
VGDA 2
PE Size (Mbytes) 8
Total PE 127
Alloc PE 127
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg12/lvol1
LV Status available/syncd
LV Size (Mbytes) 1016
Current LE 127
Allocated PE 127
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c17t0d5
PV Status available
Total PE 127
Free PE 0
Autoswitch On
Proactive Polling On
---------------
# lvdisplay -v /dev/vg12/lvol1
--- Logical volumes ---
LV Name /dev/vg12/lvol1
VG Name /dev/vg12
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1016
Current LE 127
Allocated PE 127
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c17t0d5 127 127
--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c17t0d5 00000 current
00001 /dev/dsk/c17t0d5 00001 current
00002 /dev/dsk/c17t0d5 00002 current
00003 /dev/dsk/c17t0d5 00003 current
00004 /dev/dsk/c17t0d5 00004 current
00005 /dev/dsk/c17t0d5 00005 current
00006 /dev/dsk/c17t0d5 00006 current
00007 /dev/dsk/c17t0d5 00007 current . . .
---------
:# strings /etc/lvmtab
/dev/vg00
ST5DE
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
/dev/vg12
hD|e
/dev/dsk/c17t0d5
/dev/vg11
/dev/dsk/c17t1d4
/dev/vg06
/dev/dsk/c17t0d1
/dev/vg07
/dev/dsk/c17t1d1
/dev/dsk/c17t1d3
/dev/dsk/c17t0d2
/dev/dsk/c17t1d2
/dev/dsk/c17t1d0
/dev/vg08
hBtZ
/dev/dsk/c17t0d3
/dev/vg05
ST5D
/dev/dsk/c17t0d0
/dev/vg13
ST5E58
/dev/dsk/c17t0d7
/dev/vg09
ST5J
/dev/dsk/c17t0d4
-----------
This is the one to check:
# strings vg12.conf
CONFIG01
/dev/vg12
/dev/rdsk/c12t0d1
/dev/rdsk/c17t0d6
LVMREC01E
hD|e7E
hD|e
LVMREC01
ST5L
hD|e
hD|e
hD|e7
ST5L
VGDA0001
k>c<
VGSA0001L
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2010 11:10 AM
06-23-2010 11:10 AM
Re: /etc/lvmtab file has wrong info. How to fix?
hi, Johns Manville.
i find a way to resolve your problem which
i had met many days ago.
1) vgrecuce -f vg12
to reduce ghost pv
2)vgcfgbackup /dev/vg12
if /etc/lvmtab file is ok, i think no need
to do the command vgscan.
hope this could help you.
By the way,this command is no harm to your
product server.
--------------------------------------------
oot@L2000:/etc/lvmconf#lvreduce -k -m 0 /dev/vg00/mirror 1
Logical volume "/dev/vg00/mirror" has been successfully reduced.
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 2 disks for "/dev/vg00"; /etc/lvmtab has 1 disks.
Cannot proceed with backup.
root@L2000:/etc/lvmconf#lvdisplay /dev/vg00/mirror
--- Logical volumes ---
LV Name /dev/vg00/mirror
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 160
Current LE 10
Allocated PE 10
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
root@L2000:/etc/lvmconf#vgreduce -f vg00
PV with key 1 sucessfully deleted from vg vg00
Repair done, please do the following steps.....:
1. save /etc/lvmtab to another file
2. remove /etc/lvmtab
3. use vgscan(1m) -v to re-create /etc/lvmtab
4. NOW use vgcfgbackup(1m) to save the LVM setup
root@L2000:/etc/lvmconf#
root@L2000:/etc/lvmconf#vgcfgbackup vg00
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
i find a way to resolve your problem which
i had met many days ago.
1) vgrecuce -f vg12
to reduce ghost pv
2)vgcfgbackup /dev/vg12
if /etc/lvmtab file is ok, i think no need
to do the command vgscan.
hope this could help you.
By the way,this command is no harm to your
product server.
--------------------------------------------
oot@L2000:/etc/lvmconf#lvreduce -k -m 0 /dev/vg00/mirror 1
Logical volume "/dev/vg00/mirror" has been successfully reduced.
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 2 disks for "/dev/vg00"; /etc/lvmtab has 1 disks.
Cannot proceed with backup.
root@L2000:/etc/lvmconf#lvdisplay /dev/vg00/mirror
--- Logical volumes ---
LV Name /dev/vg00/mirror
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 160
Current LE 10
Allocated PE 10
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
root@L2000:/etc/lvmconf#vgreduce -f vg00
PV with key 1 sucessfully deleted from vg vg00
Repair done, please do the following steps.....:
1. save /etc/lvmtab to another file
2. remove /etc/lvmtab
3. use vgscan(1m) -v to re-create /etc/lvmtab
4. NOW use vgcfgbackup(1m) to save the LVM setup
root@L2000:/etc/lvmconf#
root@L2000:/etc/lvmconf#vgcfgbackup vg00
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
- « Previous
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP