All of lore.kernel.org
 help / color / mirror / Atom feed
From: Melinda Taylor <melinda@phys.unsw.edu.au>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] LVM recovery
Date: Wed Jul 16 23:25:02 2003	[thread overview]
Message-ID: <1058415647.1257.107.camel@neko> (raw)
In-Reply-To: <1058402110.1257.21.camel@neko>

Ok I am now getting somewhere with this:


I reinstalled LVM (but I am not sure what version I was running I think
it was 1.0.5 - will this make a difference?)

"pvscan" told me remaining LV and the VG they belong to:

pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/sdc1" of VG "vg02" [9.85 GB / 0 free]
pvscan -- inactive PV "/dev/sdc2"  is associated to unknown VG "vg01"
(run vgscan)
pvscan -- inactive PV "/dev/sdd1" of VG "vg02" [19.54 GB / 0 free]
pvscan -- inactive PV "/dev/sdd2"  is associated to unknown VG "vg01"
(run vgscan)
pvscan -- total: 4 [64.35 GB] / in use: 4 [64.35 GB] / in no VG: 0 [0]

vg02 was comprised of /dev/sdc1 and /dev/sdd1 which was /sw and /tmp so
it can be rebuilt as sdc and sdd both still exist

I tried to rebuild it: vgimport vg02 /dev/sdc1 /dev/sdd1

and recieved the error:

vgimport -- error: physical volume "dev/sdc1" doesn't belong to exported
volume group

So I tried: 

vgimport -f vg02 /dev/sdc1 /dev/sdd1
vgimport -- physical volumes "/dev/sdd1" and "/dev/sdc1" are in
different volume groups

Run vgscan:

[root@astro melinda]# /sbin/vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found inactive volume group "vg02"
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of
volume group "vg01" from physical volume(s)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume
groups

Obviously vg01 is going to be the biggest problem but as both lv's from
vg02 still exist - how do I make it active?

I then tried to mount it but it creates an error: /dev/vg02/lv02 is not
a valid block device but it is there. So I am getting somewhere now at
least but I presume I need to make everything active.

Thanks,

melinda



On Thu, 2003-07-17 at 10:35, Melinda Taylor wrote:
> Hi All,
> 
> I haven't yet recieved any advice on how to recover any of the data on
> my remaining 2 of 4 disks but i think I know what to do.....think.....
> 
> I originally setup the system with the following steps:
> 
> - vgscan
> 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
> - pvcreate /dev/sda2 ; pvcreate /dev/sdb1; pvcreate /dev/sdc2; pvcreate
> /dev/sdd2
> - vgcreate vg01 /dev/sda2 /dev/sdb1 /dev/sdc2 /dev/sdd2
> - check no of LE pvdata -E /dev/sdc2 (5710 LE)
>  lvcreate -l 5711 -n lv03 vg01 /dev/sdc2
> - Make ext3 fs on each LV
>  mkfs.ext3 /dev/vg01/lv01
> 
> /dev/sda2 and /dev/sdb1 are kaput (both drives died within days of
> eachother).
> 
> I believe I had 4 logical volumes.
> 
> /dev/vg01/lv01
> /dev/vg01/lv02
> /dev/vg01/lv03
> /dev/vg01/lv04
> 
> in my volume group.
> 
> So I presume this means each LV resided on a separate drive and probably
> lv01 and lv02 were the 2 on the 2 dead disk drives.
> 
>     * PVs on four SCSI devices
>     * A VG called "vg01" comprised of said PVs
> 
> If I reinstall lvm on my newly installed system can I recover lv03 and
> lv04?
> 
> I have had a search and see something called importvg which I think may
> be what I need.
> 
> Had anyone ever had any experience recovering a volume group with
> missing disks?
> 
> I have backups of my lvm config but it seems like lvmtab etc are all
> binary files, are they of any use to me?
> 
> Many Thanks,
> 
> melinda
> 
> 
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

  reply	other threads:[~2003-07-16 23:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-12 22:19 [linux-lvm] LVM disk died Melinda Taylor
2003-07-13  3:04 ` Gert van der Knokke
2003-07-13  6:06   ` Melinda Taylor
2003-07-13 12:24 ` [linux-lvm] Enough rope to hang self (was: LVM disk died) William Blunn
2003-07-16 19:39   ` [linux-lvm] LVM recovery Melinda Taylor
2003-07-16 23:25     ` Melinda Taylor [this message]
2003-07-16 23:37       ` Melinda Taylor
2003-07-17  2:05     ` Emmanuel Varagnat
2003-07-20 21:00       ` Melinda Taylor
2003-07-21 12:25         ` Alasdair G Kergon
2003-07-30  5:27 ` [linux-lvm] LVM disk died Emmanuel Varagnat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1058415647.1257.107.camel@neko \
    --to=melinda@phys.unsw.edu.au \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.