- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvmtab problems when removing 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
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
01-12-2008 10:57 AM
01-12-2008 10:57 AM
un-mirrored the one lvol that was on the disk, but even with vgreduce -f it said there were PE's still in use... even though i really didn't think there were other lvols on there.
used vgreduce -l vg02 /dev/dsk/c1t0d0
to get bad disk out of there. Seemed to work.
BUT:
the VG is active, however i cannot do a vgcfgbkcp on it cause it says lvmtab is out of date with the running kernel, kernel sees two disks.
vgdisplay -v vg02 shows only one.
file system in one lvol is up and running fine.
I'm confused. On one hand, my system is functional, on the other, there's a weird error and i could have a problem lurking.
Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2008 11:19 AM
01-12-2008 11:19 AM
Re: lvmtab problems when removing disk
did you see any pe in the output of
pvdisplay -v /dev/rdsk/c1t0d0
if you cannot see try to recreate lvmtab by
mv /etc/lvmtab /etc/lvmtab.11012008
vgscan -a
hasan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2008 11:22 AM
01-12-2008 11:22 AM
Re: lvmtab problems when removing disk
pvdisplay -v /dev/rdsk/c1t0d0
pvdisplay: Physical volume "/dev/rdsk/c1t0d0" is not a block special file.
then when i ran vgscan -a, YIKES, it looks bad:
r:/etc> vgscan -a
Creating "/etc/lvmtab".
Couldn't stat physical volume "/dev/dsk/c3t2d0":
Invalid argument
vgscan: has no correspoding valid raw device file under /dev/rdsk.
Verification of unique LVM disk id on each disk in the volume group
/dev/vg02 failed.
*** LVMTAB has been created successfully.
*** If PV links are configured in the system.
*** Do the following to resync information on disk.
*** #1. vgchange -a y
*** #2. lvlnboot -R
Now vgdisplay -v vg02 says it's not there!
I'm putting the old lvmtab back :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2008 11:37 AM
01-12-2008 11:37 AM
Re: lvmtab problems when removing disk
pvdisplay -v /dev/dsk/c1t0d0
and
pvdisplay -v other_disk_in vg02
Hasan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2008 11:41 AM
01-12-2008 11:41 AM
Re: lvmtab problems when removing disk
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c1t0d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c1t0d0"
r:/etc> pvdisplay -v /dev/dsk/c2t0d0 | more
--- Physical volumes ---
PV Name /dev/dsk/c2t0d0
VG Name /dev/vg02
PV Status available
Allocatable yes
VGDA 2
Cur LV 1
PE Size (Mbytes) 4
Total PE 4340
Free PE 1340
Allocated PE 3000
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg02/loralogs 3000 3000
--- Physical extents ---
PE Status LV LE
00000 current /dev/vg02/loralogs 00000
00001 current /dev/vg02/loralogs 00001
00002 current /dev/vg02/loralogs 00002
00003 current /dev/vg02/loralogs 00003
00004 current /dev/vg02/loralogs 00004
00005 current /dev/vg02/loralogs 00005
00006 current /dev/vg02/loralogs 00006
00007 current /dev/vg02/loralogs 00007
00008 current /dev/vg02/loralogs 00008
00009 current /dev/vg02/loralogs 00009
(lots more)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2008 11:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2008 11:50 AM
01-12-2008 11:50 AM
Re: lvmtab problems when removing disk
(university, students moving back, had database down a long time already :( )
I'm going to try that EARLY monday AM.
I'm thinking that is the absolute right answer, and that i can limp along till a better time.
Thank you thank you. I will post a followup as soon as i'm comfortable running our little experiment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2008 04:48 PM
01-12-2008 04:48 PM
Re: lvmtab problems when removing disk
so it will detach the PV from VG and then after replacement execute pvchange -a y
however since u have already removed the disk from the VG and however kernel information is not updated then vgreduce -f vg02 will remove the disk information from the kernel for the disk which are not present in lvmtab.
So as suggested vgreduce -f should resolve the issue. Please post the outcome after Monday task.