* [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) @ 2001-11-18 21:20 Lars Kellogg-Stedman 2001-11-19 2:04 ` Luca Berra 2001-11-19 2:46 ` Andreas Dilger 0 siblings, 2 replies; 12+ messages in thread From: Lars Kellogg-Stedman @ 2001-11-18 21:20 UTC (permalink / raw) To: linux-lvm I just upgraded a system to RedHat 7.2 (+ XFS from SGI) (lvm-1.0.1RC4), and I'm trying to mount a LVM-based logical volume created using LVM 0.9mumble. The volume group consisted of a single PV on opt of a software RAID5 device. pvscan says: pvscan -- reading all physical volumes (this may take a while...) pvscan -- WARNING: physical volume "/dev/sda" belongs to a meta device pvscan -- inactive PV "/dev/md0" is associated to an unknown VG (run vgscan) pvscan -- total: 2 [8.48 GB] / in use: 2 [8.48 GB] / in no VG: 0 [0] And pvdisplay says: --- Physical volume --- PV Name /dev/md0 VG Name vg0 PV Size 8.48 GB / NOT usable 2.75 MB [LVM: 129.00 KB] PV# 1 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 2169 Free PE 0 Allocated PE 2169 PV UUID HHv1Tm-79Hx-uk4m-caqb-QUA5-8WGF-0yUe4Q Which looks great. But I can't for the life of me figure out how to turn this back into a valid volume group. Vgscan doesn't pick up this device: vgscan -- reading all physical volumes (this may take a while...) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group How do I recover this volume? Thanks, -- Lars ===== lars@larsshack.org __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) 2001-11-18 21:20 [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) Lars Kellogg-Stedman @ 2001-11-19 2:04 ` Luca Berra 2001-11-19 9:52 ` Lars Kellogg-Stedman 2001-11-19 2:46 ` Andreas Dilger 1 sibling, 1 reply; 12+ messages in thread From: Luca Berra @ 2001-11-19 2:04 UTC (permalink / raw) To: linux-lvm On Sun, Nov 18, 2001 at 07:22:07PM -0800, Lars Kellogg-Stedman wrote: > I just upgraded a system to RedHat 7.2 (+ XFS from SGI) (lvm-1.0.1RC4), > and I'm trying to mount a LVM-based logical volume created using LVM > 0.9mumble. The volume group consisted of a single PV on opt of a > software RAID5 device. > can you please provide the output of lvmdiskscan? L. -- Luca Berra -- bluca@comedia.it Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) 2001-11-19 2:04 ` Luca Berra @ 2001-11-19 9:52 ` Lars Kellogg-Stedman 0 siblings, 0 replies; 12+ messages in thread From: Lars Kellogg-Stedman @ 2001-11-19 9:52 UTC (permalink / raw) To: linux-lvm > can you please provide the output of lvmdiskscan? Sure. lvmdiskscan says: # lvmdiskscan lvmdiskscan -- reading all disks / partitions (this may take a while...) lvmdiskscan -- /dev/sda [ 4.24 GB] free whole disk lvmdiskscan -- /dev/sdb [ 4.24 GB] free whole disk lvmdiskscan -- /dev/sdc [ 4.24 GB] free whole disk lvmdiskscan -- /dev/sdd [ 4.24 GB] free whole disk lvmdiskscan -- /dev/sde1 [ 47.03 MB] Primary LINUX native partition [0x83]lvmdiskscan -- /dev/sde2 [ 4.00 GB] Primary LINUX native partition [0x83]lvmdiskscan -- /dev/sde3 [ 698.14 MB] Primary LINUX swap partition [0x82] lvmdiskscan -- /dev/md0 [ 8.48 GB] free meta device lvmdiskscan -- 6 disks lvmdiskscan -- 4 whole disks lvmdiskscan -- 0 loop devices lvmdiskscan -- 1 multiple device lvmdiskscan -- 0 network block devices lvmdiskscan -- 3 partitions lvmdiskscan -- 0 LVM physical volume partitions So lvmdiskscan doesn't see the PV, despite the fact that pvscan does: pvscan -- reading all physical volumes (this may take a while...) pvscan -- WARNING: physical volume "/dev/sda" belongs to a meta device pvscan -- inactive PV "/dev/md0" is associated to an unknown VG (run vgscan) pvscan -- total: 2 [8.48 GB] / in use: 2 [8.48 GB] / in no VG: 0 [0] Cheers, -- Lars ===== lars@larsshack.org __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) 2001-11-18 21:20 [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) Lars Kellogg-Stedman 2001-11-19 2:04 ` Luca Berra @ 2001-11-19 2:46 ` Andreas Dilger 2001-11-19 9:56 ` Lars Kellogg-Stedman 1 sibling, 1 reply; 12+ messages in thread From: Andreas Dilger @ 2001-11-19 2:46 UTC (permalink / raw) To: Lars Kellogg-Stedman; +Cc: linux-lvm On Nov 18, 2001 19:22 -0800, Lars Kellogg-Stedman wrote: > I just upgraded a system to RedHat 7.2 (+ XFS from SGI) (lvm-1.0.1RC4), > and I'm trying to mount a LVM-based logical volume created using LVM > 0.9mumble. The volume group consisted of a single PV on opt of a > software RAID5 device. > > pvscan says: > > pvscan -- reading all physical volumes (this may take a while...) > pvscan -- WARNING: physical volume "/dev/sda" belongs to a meta > device > pvscan -- inactive PV "/dev/md0" is associated to an unknown VG (run > vgscan) > pvscan -- total: 2 [8.48 GB] / in use: 2 [8.48 GB] / in no VG: 0 [0] > > And pvdisplay says: > > --- Physical volume --- > PV Name /dev/md0 > VG Name vg0 > PV Size 8.48 GB / NOT usable 2.75 MB [LVM: 129.00 KB] > PV# 1 > PV Status NOT available > Allocatable yes (but full) > Cur LV 1 > PE Size (KByte) 4096 > Total PE 2169 > Free PE 0 > Allocated PE 2169 > PV UUID HHv1Tm-79Hx-uk4m-caqb-QUA5-8WGF-0yUe4Q > > Which looks great. But I can't for the life of me figure out how to > turn this back into a valid volume group. Vgscan doesn't pick up this > device: > > vgscan -- reading all physical volumes (this may take a while...) > vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created > vgscan -- WARNING: This program does not do a VGDA backup of your > volume group You may need to re-create your MD RAID device /dev/md0. Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) 2001-11-19 2:46 ` Andreas Dilger @ 2001-11-19 9:56 ` Lars Kellogg-Stedman 2001-11-19 10:49 ` Andreas Dilger 0 siblings, 1 reply; 12+ messages in thread From: Lars Kellogg-Stedman @ 2001-11-19 9:56 UTC (permalink / raw) To: linux-lvm > You may need to re-create your MD RAID device /dev/md0. The RAID device appears to be working just fine. With the MD driver, simply recreating /etc/raidtab and running raidstart worked without a problem. -- Lars ===== lars@larsshack.org __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) 2001-11-19 9:56 ` Lars Kellogg-Stedman @ 2001-11-19 10:49 ` Andreas Dilger 2001-11-19 11:07 ` Chad C. Walstrom ` (4 more replies) 0 siblings, 5 replies; 12+ messages in thread From: Andreas Dilger @ 2001-11-19 10:49 UTC (permalink / raw) To: Lars Kellogg-Stedman; +Cc: linux-lvm On Nov 19, 2001 07:57 -0800, Lars Kellogg-Stedman wrote: > The RAID device appears to be working just fine. With the MD driver, > simply recreating /etc/raidtab and running raidstart worked without a > problem. You saw the other posting about the MD devices fix? This is fixed in CVS, but not 1.0.1rc4. Maybe it is time for a new LVM release. Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) 2001-11-19 10:49 ` Andreas Dilger @ 2001-11-19 11:07 ` Chad C. Walstrom 2001-11-19 11:08 ` Lars Kellogg-Stedman ` (3 subsequent siblings) 4 siblings, 0 replies; 12+ messages in thread From: Chad C. Walstrom @ 2001-11-19 11:07 UTC (permalink / raw) To: linux-lvm [-- Attachment #1: Type: text/plain, Size: 470 bytes --] On Mon, Nov 19, 2001 at 09:51:05AM -0700, Andreas Dilger wrote: > You saw the other posting about the MD devices fix? This is fixed in > CVS, but not 1.0.1rc4. Maybe it is time for a new LVM release. <noise type="useless"> Yay! ;-) </noise> -- Chad Walstrom <chewie@wookimus.net> | a.k.a. ^chewie http://www.wookimus.net/ | s.k.a. gunnarr Key fingerprint = B4AB D627 9CBD 687E 7A31 1950 0CC7 0B18 206C 5AFD [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) 2001-11-19 10:49 ` Andreas Dilger 2001-11-19 11:07 ` Chad C. Walstrom @ 2001-11-19 11:08 ` Lars Kellogg-Stedman 2001-11-19 17:23 ` Lars Kellogg-Stedman ` (2 subsequent siblings) 4 siblings, 0 replies; 12+ messages in thread From: Lars Kellogg-Stedman @ 2001-11-19 11:08 UTC (permalink / raw) To: linux-lvm > You saw the other posting about the MD devices fix? This is fixed in > CVS, but not 1.0.1rc4. Maybe it is time for a new LVM release. Hmm, I missed the other post, but I'll try the latest from cvs and see if that helps. -- Lars ===== lars@larsshack.org __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) 2001-11-19 10:49 ` Andreas Dilger 2001-11-19 11:07 ` Chad C. Walstrom 2001-11-19 11:08 ` Lars Kellogg-Stedman @ 2001-11-19 17:23 ` Lars Kellogg-Stedman 2001-11-20 5:26 ` Heinz J . Mauelshagen 2001-11-20 8:09 ` Ed Tomlinson 4 siblings, 0 replies; 12+ messages in thread From: Lars Kellogg-Stedman @ 2001-11-19 17:23 UTC (permalink / raw) To: linux-lvm > You saw the other posting about the MD devices fix? This is fixed in > CVS, but not 1.0.1rc4. Maybe it is time for a new LVM release. That appears to have fixed the problem; vgscan now detects the older logical volume and I can mount it successfully. Now I've got a new problem, but it's going in a new thread :). -- Lars ===== lars@larsshack.org __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) 2001-11-19 10:49 ` Andreas Dilger ` (2 preceding siblings ...) 2001-11-19 17:23 ` Lars Kellogg-Stedman @ 2001-11-20 5:26 ` Heinz J . Mauelshagen 2001-11-20 8:09 ` Ed Tomlinson 4 siblings, 0 replies; 12+ messages in thread From: Heinz J . Mauelshagen @ 2001-11-20 5:26 UTC (permalink / raw) To: linux-lvm On Mon, Nov 19, 2001 at 09:51:05AM -0700, Andreas Dilger wrote: > On Nov 19, 2001 07:57 -0800, Lars Kellogg-Stedman wrote: > > The RAID device appears to be working just fine. With the MD driver, > > simply recreating /etc/raidtab and running raidstart worked without a > > problem. > > You saw the other posting about the MD devices fix? This is fixed in > CVS, but not 1.0.1rc4. Maybe it is time for a new LVM release. We are planning one for the end of the week. > > Cheers, Andreas > -- > Andreas Dilger > http://sourceforge.net/projects/ext2resize/ > http://www-mddsp.enel.ucalgary.ca/People/adilger/ > > > _______________________________________________ > linux-lvm mailing list > linux-lvm@sistina.com > http://lists.sistina.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html -- Regards, Heinz -- The LVM Guy -- *** Software bugs are stupid. Nevertheless it needs not so stupid people to solve them *** =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Heinz Mauelshagen Sistina Software Inc. Senior Consultant/Developer Am Sonnenhang 11 56242 Marienrachdorf Germany Mauelshagen@Sistina.com +49 2626 141200 FAX 924446 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) 2001-11-19 10:49 ` Andreas Dilger ` (3 preceding siblings ...) 2001-11-20 5:26 ` Heinz J . Mauelshagen @ 2001-11-20 8:09 ` Ed Tomlinson 2001-11-20 12:07 ` Andreas Dilger 4 siblings, 1 reply; 12+ messages in thread From: Ed Tomlinson @ 2001-11-20 8:09 UTC (permalink / raw) To: linux-lvm, Andreas Dilger, Lars Kellogg-Stedman On November 19, 2001 11:51 am, Andreas Dilger wrote: > On Nov 19, 2001 07:57 -0800, Lars Kellogg-Stedman wrote: > > The RAID device appears to be working just fine. With the MD driver, > > simply recreating /etc/raidtab and running raidstart worked without a > > problem. > > You saw the other posting about the MD devices fix? This is fixed in > CVS, but not 1.0.1rc4. Maybe it is time for a new LVM release. If so please push the chagnes into the kernel asap. Lets not end up months behind in the kernel again - please! When you release, send the patches to Linus or Marcelo at the same time. If it was up to me I would send the patches first, then release. Thanks Ed Tomlinson ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) 2001-11-20 8:09 ` Ed Tomlinson @ 2001-11-20 12:07 ` Andreas Dilger 0 siblings, 0 replies; 12+ messages in thread From: Andreas Dilger @ 2001-11-20 12:07 UTC (permalink / raw) To: Ed Tomlinson; +Cc: linux-lvm, Lars Kellogg-Stedman On Nov 20, 2001 08:16 -0500, Ed Tomlinson wrote: > On November 19, 2001 11:51 am, Andreas Dilger wrote: > > You saw the other posting about the MD devices fix? This is fixed in > > CVS, but not 1.0.1rc4. Maybe it is time for a new LVM release. > > If so please push the chagnes into the kernel asap. Lets not end up months > behind in the kernel again - please! When you release, send the patches to > Linus or Marcelo at the same time. If it was up to me I would send the > patches first, then release. The kernel and CVS are still different, so they need a bit of merging anyways. There is a _huge_ merge from Alan into the Linus tree right now, to get the kernel up to 1.0.1rc4 or so. I don't know if it is better to do more changes now, or to wait until those previous changes are in an official release, so there is less change all at the same time. Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/ ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2001-11-20 12:07 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2001-11-18 21:20 [linux-lvm] Recovering a volume after OS upgrade (lost /etc/lvm*) Lars Kellogg-Stedman 2001-11-19 2:04 ` Luca Berra 2001-11-19 9:52 ` Lars Kellogg-Stedman 2001-11-19 2:46 ` Andreas Dilger 2001-11-19 9:56 ` Lars Kellogg-Stedman 2001-11-19 10:49 ` Andreas Dilger 2001-11-19 11:07 ` Chad C. Walstrom 2001-11-19 11:08 ` Lars Kellogg-Stedman 2001-11-19 17:23 ` Lars Kellogg-Stedman 2001-11-20 5:26 ` Heinz J . Mauelshagen 2001-11-20 8:09 ` Ed Tomlinson 2001-11-20 12:07 ` Andreas Dilger
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).