- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- old LVM data structures exist
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
02-19-2002 07:48 AM
02-19-2002 07:48 AM
I was about to add a disk to a VG when a msg popped up telling me there was old LVM data structures on the disk. How can I check what data in on this disk?
John
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 07:53 AM
02-19-2002 07:53 AM
Re: old LVM data structures exist
Man pvdisplay for details. This is fairly typical if you are reuseing a disk. In that case, you specify the -f option when using pvcreate to force it yo reuse the disk BUT be sure that you don't need the existing data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 07:56 AM
02-19-2002 07:56 AM
Re: old LVM data structures exist
First of all try a 'pvdisplay -v /dev/dsk/cxtydz'
If it gives error, then you can try 'vgscan' on the disk and if it reports any LVM structure, then use 'vgimport' command.
# mkdir /dev/vg_new
# mknod /dev/vg_new/group c 64 0x0?0000
# vgimport /dev/vg_new /dev/dsk/cxtydz
# vgchange -a y /dev/vg_new
# vgdisplay -v /dev/vg_new
Then make mount points and mount the LVs if needed.
If you don't require any data from the disk, use '-f' option with 'pvcreate' ( forcefully creating pv)
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 07:59 AM
02-19-2002 07:59 AM
SolutionIf the wrong disk:
verify via leds:
dd if=/dev/dsk/cXtYd0 of=/dev/null
for a read to null
(careful of the if,of!)
Then look for leds.
If you're sure it's the disk you want, verify it's not in any other vg via
strings /etc/lvmtab
If not there,
pvcreate -f /dev/dsk/cXtYd0
to reinit it for lvm use.
If it is there and you're sure you want to use it,
vgreduce vgXYZ /dev/dsk/cXtYd0
and hopefully it'll work if there's no lv data on the disk. If there is, use pvmove to move the data to another disk before reducing.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 08:10 AM
02-19-2002 08:10 AM
Re: old LVM data structures exist
When I run vgscan I get the following msg:
Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c2t9d0
I don't want to lose the data on the disk if this disk is supposed to belong to an existing VG, I just want to know what it is. If it is not needed, I'll just overwrite it.
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 08:15 AM
02-19-2002 08:15 AM
Re: old LVM data structures exist
You can do 'vgimport' on this disk and see what it has. Follow the steps I have given before. Give a new VG name ( vg05 ? ) by checking your current vg information.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 08:28 AM
02-19-2002 08:28 AM
Re: old LVM data structures exist
As per your instructions, when I do vgimport, I get:
Volume group "/dev/vg99" is still active
Then, when I do vgchange:
vgchange: Volume group "/dev/vg99" does not exist in the "/etc/lvmtab" file.
Then, when I do vgdisplay:
vgdisplay: Volume group "/dev/vg99" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "/dev/vg99".
Am I doing something wrong????
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 08:35 AM
02-19-2002 08:35 AM
Re: old LVM data structures exist
As an eg: I will assume your HDD is /dev/dsk/c6t1d0 and the new vg name is - vg09. Then:
# mkdir /dev/vg09
# cd /dev/vg09
# mknod group c 64 0x090000
# vgimport /dev/vg09 /dev/dsk/c6t1d0
# vgchange -a y /dev/vg09
# vgdisplay -v /dev/vg09
# mkdir /test1
# mount /dev/vg09/lvol1 /test1 (repeat these steps for all lvols )
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 09:36 AM
02-19-2002 09:36 AM
Re: old LVM data structures exist
I still get the same results. I'm just going to use it in an existing VG. If there was important data on there, someone would have complaimed about it by now. Thanks for your help.
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 09:42 AM
02-19-2002 09:42 AM
Re: old LVM data structures exist
R u sure that you are using a new name for the VG ? Can you post the output of 'strings /etc/lvmtab' ? Does 'pvdisplay' gave some error ?
If the LVM data area is currupted on the disk, then you may experience difficulties importing it.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 09:45 AM
02-19-2002 09:45 AM
Re: old LVM data structures exist
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 03:54 AM
02-20-2002 03:54 AM
Re: old LVM data structures exist
I think the only way to repair it is to bootin into lvm maintenance mode and recreate the lvmtab.
What is happening is that the disk is out of whack with the os config.
I'd call your RCE to work this one out.
It's usually caused after doing a vgscan after a dd of one disk to another...
PVRA, VGRA is duplicated, ie host sees 2 disks that lvm thinks is one. (or something like that!)
Later,
Bill