* [linux-lvm] lost volume group
@ 2006-04-10 4:49 Petes Junk
2006-04-11 14:53 ` Jonathan E Brassow
0 siblings, 1 reply; 2+ messages in thread
From: Petes Junk @ 2006-04-10 4:49 UTC (permalink / raw)
To: linux-lvm
When i was extending a group to include another PV somehow the Group
disappeared from the devices list after a reboot.
The last entry in /dev/lvm/backup shows me executing
/usr/sbin/vgextend swampvg /dev/hdb2
to an already working /dev/swampvg/swamplv with a non striped /dev/hdb4
in it.
I then did a mkfs -t ext3 /dev/hdb2 (the new disk) which was probably
how i got into trouble. I really need the image from /dev/hdb4 and im
afraid to do anything with it without knowing exactly what im doing. Im
thinking all i need is to recreate the VG and LV with only /dev/hdb4. I
have several archives in the /dev/lvm/archive but docs are not clear how
to approach this. I backed up the partition to another with dd so i
could try work on it safely, but the LVM tools didnt like the fact that
it had two uuid labels the same and always picked /dev/hdb4 to work on.
Since then Ive been reading what little there is on LVM. Cant even find
a sysadmin book with more than 3 pages on the subject. Im very surprised
at the man page for vgcfgrestore where its options are not even
explained.
Any help is greatly appreciated.
Pete
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] lost volume group
2006-04-10 4:49 [linux-lvm] lost volume group Petes Junk
@ 2006-04-11 14:53 ` Jonathan E Brassow
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan E Brassow @ 2006-04-11 14:53 UTC (permalink / raw)
To: crap.central, LVM general discussion and development
I'll assume you had one disk (hdb4) to start with, and you wanted to
extend the VG by adding (hdb2).
When you did the mkfs, you destroyed the LVM label on the newly added
disk. You are probably now getting something like:
Couldn't find device with uuid...
Couldn't find all physical volumes...
You need to do the vgcfgrestore, as you said, but doing:
prompt> vgcfgrestore swampvg
will give you:
Couldn't find device with uuid '<your uuid>'
...
You can easily recreate that uuid on that device and restore by doing:
prompt> pvcreate -u <your uuid> /dev/hdb4
prompt> vgcfgrestore swampvg
You should be good to go now.
brassow
On Apr 9, 2006, at 11:49 PM, Petes Junk wrote:
> When i was extending a group to include another PV somehow the Group
> disappeared from the devices list after a reboot.
>
> The last entry in /dev/lvm/backup shows me executing
> /usr/sbin/vgextend swampvg /dev/hdb2
> to an already working /dev/swampvg/swamplv with a non striped /dev/hdb4
> in it.
>
> I then did a mkfs -t ext3 /dev/hdb2 (the new disk) which was probably
> how i got into trouble. I really need the image from /dev/hdb4 and im
> afraid to do anything with it without knowing exactly what im doing. Im
> thinking all i need is to recreate the VG and LV with only /dev/hdb4. I
> have several archives in the /dev/lvm/archive but docs are not clear
> how
> to approach this. I backed up the partition to another with dd so i
> could try work on it safely, but the LVM tools didnt like the fact that
> it had two uuid labels the same and always picked /dev/hdb4 to work on.
>
> Since then Ive been reading what little there is on LVM. Cant even find
> a sysadmin book with more than 3 pages on the subject. Im very
> surprised
> at the man page for vgcfgrestore where its options are not even
> explained.
>
> Any help is greatly appreciated.
>
> Pete
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-11 14:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-10 4:49 [linux-lvm] lost volume group Petes Junk
2006-04-11 14:53 ` Jonathan E Brassow
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).