From: Marc MERLIN <marc_lvm@merlins.org>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] vgchange -a y /dev/System fails
Date: Wed Jan 30 21:04:02 2002 [thread overview]
Message-ID: <20020131030417.GN8651@merlins.org> (raw)
In-Reply-To: <20020130131205.A3769@sistina.com>
On Wed, Jan 30, 2002 at 01:12:05PM +0100, Heinz J . Mauelshagen wrote:
> > Unfortunately, that doesn't work because I had a cron job that was creating
> > daily snapshots (in an attempt to emulate ONTAP's snapshot's feature), so my
> > 10 backups contain snapshot LVs
>
> Well, in this case you might still have a consistent backup with snapshots
> which you can use like mentioned above.
I tried a few and none seemed to work, but I restored one from before I made
snapshots and recovered from this.
I now have my system back (/usr, /var)
As for /home, as soon as I tried to access it (e2fsck, tune2fs -O
^has_journal, or whatever), the process hung in "wait_o" according to ps.
I tried to restore the VG to its state before I added snapshots, but that
only made it go away :-(
mechastreisand:/etc/lvmconf# vgchange -a n /dev/BigAssLVMRaid
vgchange -- volume group "BigAssLVMRaid" successfully deactivated
mechastreisand:/etc/lvmconf# vgcfgrestore -f /etc/lvmconf/GoodBigAssLVMRaid.conf -n BigAssLVMRaid -ll
--- Volume group ---
VG Name BigAssLVMRaid
VG Access read/write
VG Status NOT available/resizable
VG # 1
MAX LV 255
Cur LV 1
Open LV 0
MAX LV Size 1.00 TB
Max PV 255
Cur PV 9
Act PV 9
VG Size 868.69 GB
PE Size 64.00 MB
Total PE 13899
Alloc PE / Size 13120 / 820.00 GB
Free PE / Size 779 / 48.69 GB
VG UUID VgCZzh-ldUN-Ix1n-mZL3-EWsj-ATke-7Y4RQj
--- Logical volume ---
LV Name /dev/BigAssLVMRaid/BigAssLVMPartition
VG Name BigAssLVMRaid
LV Write Access read/write
LV Status NOT available
LV # 1
# open 0
LV Size 820.00 GB
Current LE 13120
Allocated LE 13120
Allocation next free
Read ahead sectors 32
Block device 58:0
--- Physical volume ---
PV Name /dev/rd/disc0/part7
VG Name BigAssLVMRaid
PV Size 72.31 GB / NOT usable 121.73 MB [LVM: 128.00 KB]
PV# 1
PV Status NOT available
Allocatable yes (but full)
Cur LV 1
PE Size (KByte) 65536
Total PE 1155
Free PE 0
Allocated PE 1155
PV UUID Eriv40-q8V1-jgaS-ZXKh-8xwm-Wq7V-H9tVrl
(...)
mechastreisand:/etc/lvmconf# vgcfgrestore -f /etc/lvmconf/GoodBigAssLVMRaid.conf -n BigAssLVMRaid -ll | grep PV | grep rd | sed "s/.*\/dev/\/dev/"
/dev/rd/disc0/part7
/dev/rd/disc1/part1
/dev/rd/disc2/part1
/dev/rd/c1d0p1
/dev/rd/c1d1p1
/dev/rd/c2d0p1
/dev/rd/c2d1p1
/dev/rd/c3d0p1
/dev/rd/c3d1p1
mechastreisand:/etc/lvmconf# vgcfgrestore -f /etc/lvmconf/GoodBigAssLVMRaid.conf -n BigAssLVMRaid -ll | grep PV | grep rd | sed "s/.*\/dev/\/dev/" > /tmp/partlist
mechastreisand:/etc/lvmconf# pvcreate -yff `cat /tmp/partlist `
pvcreate -- WARNING: forcing physical volume creation on "/dev/rd/disc0/part7" of volume group "BigAssLVMRaid"
pvcreate -- removing lvmtab entry
pvcreate -- physical volume "/dev/rd/disc0/part7" successfully created
pvcreate -- WARNING: forcing physical volume creation on "/dev/rd/disc1/part1" of volume group "BigAssLVMRaid"
pvcreate -- physical volume "/dev/rd/disc1/part1" successfully created
pvcreate -- WARNING: forcing physical volume creation on "/dev/rd/disc2/part1" of volume group "BigAssLVMRaid"
pvcreate -- physical volume "/dev/rd/disc2/part1" successfully created
pvcreate -- WARNING: forcing physical volume creation on "/dev/rd/c1d0p1" of volume group "BigAssLVMRaid"
pvcreate -- physical volume "/dev/rd/c1d0p1" successfully created
pvcreate -- WARNING: forcing physical volume creation on "/dev/rd/c1d1p1" of volume group "BigAssLVMRaid"
pvcreate -- physical volume "/dev/rd/c1d1p1" successfully created
pvcreate -- WARNING: forcing physical volume creation on "/dev/rd/c2d0p1" of volume group "BigAssLVMRaid"
pvcreate -- physical volume "/dev/rd/c2d0p1" successfully created
pvcreate -- WARNING: forcing physical volume creation on "/dev/rd/c2d1p1" of volume group "BigAssLVMRaid"
pvcreate -- physical volume "/dev/rd/c2d1p1" successfully created
pvcreate -- WARNING: forcing physical volume creation on "/dev/rd/c3d0p1" of volume group "BigAssLVMRaid"
pvcreate -- physical volume "/dev/rd/c3d0p1" successfully created
pvcreate -- WARNING: forcing physical volume creation on "/dev/rd/c3d1p1" of volume group "BigAssLVMRaid"
pvcreate -- physical volume "/dev/rd/c3d1p1" successfully created
mechastreisand:/etc/lvmconf# for pv in `cat /tmp/partlist `
> do
> vgcfgrestore -f /etc/lvmconf/GoodBigAssLVMRaid.conf -n BigAssLVMRaid $pv
> done
vgcfgrestore -- VGDA for "BigAssLVMRaid" successfully restored to physical volume "/dev/rd/disc0/part7"
vgcfgrestore -- you may not have an actual backup of restored volume group "BigAssLVMRaid"
vgcfgrestore -- VGDA for "BigAssLVMRaid" successfully restored to physical volume "/dev/rd/disc1/part1"
vgcfgrestore -- you may not have an actual backup of restored volume group "BigAssLVMRaid"
vgcfgrestore -- VGDA for "BigAssLVMRaid" successfully restored to physical volume "/dev/rd/disc2/part1"
vgcfgrestore -- you may not have an actual backup of restored volume group "BigAssLVMRaid"
vgcfgrestore -- VGDA for "BigAssLVMRaid" successfully restored to physical volume "/dev/rd/c1d0p1"
vgcfgrestore -- you may not have an actual backup of restored volume group "BigAssLVMRaid"
vgcfgrestore -- VGDA for "BigAssLVMRaid" successfully restored to physical volume "/dev/rd/c1d1p1"
vgcfgrestore -- you may not have an actual backup of restored volume group "BigAssLVMRaid"
vgcfgrestore -- VGDA for "BigAssLVMRaid" successfully restored to physical volume "/dev/rd/c2d0p1"
vgcfgrestore -- you may not have an actual backup of restored volume group "BigAssLVMRaid"
vgcfgrestore -- VGDA for "BigAssLVMRaid" successfully restored to physical volume "/dev/rd/c2d1p1"
vgcfgrestore -- you may not have an actual backup of restored volume group "BigAssLVMRaid"
vgcfgrestore -- VGDA for "BigAssLVMRaid" successfully restored to physical volume "/dev/rd/c3d0p1"
vgcfgrestore -- you may not have an actual backup of restored volume group "BigAssLVMRaid"
vgcfgrestore -- VGDA for "BigAssLVMRaid" successfully restored to physical volume "/dev/rd/c3d1p1"
vgcfgrestore -- you may not have an actual backup of restored volume group "BigAssLVMRaid"
mechastreisand:/etc/lvmconf# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "System"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group
-> My BigAssLVMRaid VG is gone :-(
Did I just lose my data?
Marc
--
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key
next prev parent reply other threads:[~2002-01-30 21:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-25 17:36 [linux-lvm] vgchange -a y /dev/System fails Marc MERLIN
2002-01-28 3:47 ` Heinz J . Mauelshagen
2002-01-29 15:58 ` Marc MERLIN
2002-01-30 6:17 ` Heinz J . Mauelshagen
2002-01-30 21:04 ` Marc MERLIN [this message]
2002-01-31 5:19 ` Heinz J . Mauelshagen
2002-02-01 15:10 ` Marc MERLIN
2002-02-11 13:01 ` Marc MERLIN
2002-01-29 18:25 ` Adrian Head
2002-01-30 6:20 ` Heinz J . Mauelshagen
-- strict thread matches above, loose matches on Subject: below --
2002-01-29 16:02 Marc MERLIN
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=20020131030417.GN8651@merlins.org \
--to=marc_lvm@merlins.org \
--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.