Skip to contentSkip to conversation

trying to upgrade from mandrake 8.1 to cooker destroyed lvm

linux-lvm SI Reasoning 2 participants 6 messages Dec 30, 2001

lore
Share & tools
lore
#0 lore raw

I have had lvm running on a mandrake 8.1 system. When I upgraded it to cooker (pre 8.2) it did not read my lvm properly (I had /usr, /var and /home pv's in the "mandrake" vg. Now it still has the lvmconf file mandrake.conf but nothing in /etc/lvmtab.d and /etc/lvmtab is a 1 kb file. Since this is a home system, I have no backups...but it still has info I would like to keep.

Is there a way to rebuild this? I am pretty new to lvm.
I am running lvm-0.9-3mdk. I have lvm running on a fresh install of cooker on my laptop so I know this version works.

I still have /dev/hda3 showing as a lvm partion (8e) mandrake had set them up originally as /dev/mandrake/1
/dev/mandrake/2
/dev/mandrake/3

/etc/fstab
/dev/hda1 / reiserfs notail 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/mandrake/1 /home reiserfs defaults 1 2 /dev/hdg /mnt/cdrom auto user,iocharset=iso8859-1,exec,codepage=850,ro,noauto 0$
/dev/fd0 /mnt/floppy auto user,iocharset=iso8859-1,sync,exec,codepage=850,noaut$none /proc proc defaults 0 0
none /tmp tmpfs defaults 0 0
/dev/mandrake/2 /usr reiserfs defaults 1 2 /dev/mandrake/3 /var reiserfs defaults 1 2 /dev/hda2 swap swap defaults 0 0
/dev/hda5 swap swap defaults 0 0

I had to setup /dev/hda2 as swap to enable the cooker upgrade since it did not recognize /dev/hda5 during the install. It still does not recognize /dev/hda5

=====
SI Reasoning
[email protected]

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

#1 lore raw

while attempting
vgcfgrestore -n mandrake -ll
I got a seg fault. The core file reads:

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^$@#;��[��T -�T -�

&�������������������������
%d reads %d writes

--- Logical extents ---
LE PV PE reads
writes

Quoted 22 lines · --- SI Reasoning

I have had lvm running on a mandrake 8.1 system. When
I upgraded it to cooker (pre 8.2) it did not read my lvm properly (I had /usr, /var and /home pv's in the "mandrake" vg. Now it still has the lvmconf file mandrake.conf but nothing in /etc/lvmtab.d and /etc/lvmtab is a 1 kb file. Since this is a home system, I have no backups...but it still has info I would like to keep.

Is there a way to rebuild this? I am pretty new to lvm.
I am running lvm-0.9-3mdk. I have lvm running on a fresh install of cooker on my laptop so I know this version works.

I still have /dev/hda3 showing as a lvm partion (8e) mandrake had set them up originally as /dev/mandrake/1
/dev/mandrake/2
/dev/mandrake/3

Quoted 10 lines

/etc/fstab
/dev/hda1 / reiserfs notail 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0 /dev/mandrake/1 /home reiserfs defaults 1 2 /dev/hdg /mnt/cdrom auto user,iocharset=iso8859-1,exec,codepage=850,ro,noauto 0$
/dev/fd0 /mnt/floppy auto

user,iocharset=iso8859-1,sync,exec,codepage=850,noaut$none

Quoted 24 lines

/proc proc defaults 0 0
none /tmp tmpfs defaults 0 0
/dev/mandrake/2 /usr reiserfs defaults 1 2 /dev/mandrake/3 /var reiserfs defaults 1 2 /dev/hda2 swap swap defaults 0 0
/dev/hda5 swap swap defaults 0 0

I had to setup /dev/hda2 as swap to enable the cooker
upgrade since it did not recognize /dev/hda5 during the install. It still does not recognize /dev/hda5

=====
SI Reasoning
[email protected]

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
Benjamin Franklin

Quoted 5 lines

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

=====
SI Reasoning
[email protected]

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

#2 lore raw

The previous version I was running was identified in /var/log/messages as
0.9.1_beta7(ish)

The new version is identified as:
1.0.1-rc4(ish)(03/10/2001)

Quoted 5 lines · --- SI Reasoning

while attempting
vgcfgrestore -n mandrake -ll
I got a seg fault. The core file reads:

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^$@#;��[��T

Quoted 37 lines

-�T -�

&�������������������������
%d reads %d writes

--- Logical extents ---
LE PV PE reads
writes

Quoted 3 lines · --- SI Reasoning

I have had lvm running on a mandrake 8.1 system. When
I upgraded it to cooker (pre 8.2) it did not read

my

Quoted 1 line

lvm properly (I had /usr, /var and /home pv's in

the

Quoted 4 lines

"mandrake" vg. Now it still has the lvmconf file mandrake.conf but nothing in /etc/lvmtab.d and /etc/lvmtab is a 1 kb file. Since this is a home system, I have no backups...but it still has info

I

Quoted 6 lines

would like to keep.

Is there a way to rebuild this? I am pretty new to lvm.
I am running lvm-0.9-3mdk. I have lvm running on a fresh install of cooker on my laptop so I know

this

Quoted 3 lines

version works.

I still have /dev/hda3 showing as a lvm partion

(8e)

Quoted 5 lines

mandrake had set them up originally as /dev/mandrake/1
/dev/mandrake/2
/dev/mandrake/3

Quoted 12 lines
Quoted 7 lines

/etc/fstab
/dev/hda1 / reiserfs notail 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0 /dev/mandrake/1 /home reiserfs defaults 1 2 /dev/hdg /mnt/cdrom auto

user,iocharset=iso8859-1,exec,codepage=850,ro,noauto

Quoted 3 lines

0$
/dev/fd0 /mnt/floppy auto

user,iocharset=iso8859-1,sync,exec,codepage=850,noaut$none

Quoted 43 lines
Quoted 10 lines

/proc proc defaults 0 0
none /tmp tmpfs defaults 0 0 /dev/mandrake/2 /usr reiserfs defaults 1 2 /dev/mandrake/3 /var reiserfs defaults 1 2 /dev/hda2 swap swap defaults 0 0
/dev/hda5 swap swap defaults 0 0

I had to setup /dev/hda2 as swap to enable the cooker
upgrade since it did not recognize /dev/hda5

during

Quoted 10 lines

the install. It still does not recognize /dev/hda5

=====
SI Reasoning
[email protected]

"They that can give up essential liberty to obtain

a

Quoted 1 line

little temporary safety deserve neither liberty

nor

Quoted 8 lines

safety."
Benjamin Franklin

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

=====
SI Reasoning
[email protected]

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
Benjamin Franklin

Quoted 5 lines

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

=====
SI Reasoning
[email protected]

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

#3 lore raw

vgcfgrestore segfaults:

[root@sidereal lvmconf]# vgcfgrestore -tv -n /dev/mandrake /dev/hda3
vgcfgrestore -- locking logical volume manager vgcfgrestore -- restoring volume group "mandrake" from "/etc/lvmconf/mandrake.conf"
vgcfgrestore -- checking existence of "/etc/lvmconf/mandrake.conf"
vgcfgrestore -- reading volume group data for "mandrake" from "/etc/lvmconf/mandrake.conf" vgcfgrestore -- reading physical volume data for "mandrake" from "/etc/lvmconf/mandrake.conf" Segmentation fault

Quoted 4 lines · --- SI Reasoning

The previous version I was running was identified in /var/log/messages as
0.9.1_beta7(ish)

Quoted 10 lines

The new version is identified as:
1.0.1-rc4(ish)(03/10/2001)

Quoted 5 lines · --- SI Reasoning

while attempting
vgcfgrestore -n mandrake -ll
I got a seg fault. The core file reads:

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^$@#;��[��T

Quoted 51 lines
Quoted 5 lines

-�T -�

&�������������������������
%d reads %d writes

Quoted 10 lines

--- Logical extents ---
LE PV PE reads

writes

Quoted 4 lines · --- SI Reasoning

I have had lvm running on a mandrake 8.1 system.

When
I upgraded it to cooker (pre 8.2) it did not

read

Quoted 7 lines

my

Quoted 1 line

lvm properly (I had /usr, /var and /home pv's in

the

Quoted 4 lines

"mandrake" vg. Now it still has the lvmconf file
mandrake.conf but nothing in /etc/lvmtab.d and
/etc/lvmtab is a 1 kb file. Since this is a home
system, I have no backups...but it still has

info

Quoted 4 lines

I

Quoted 3 lines

would like to keep.

Is there a way to rebuild this? I am pretty new

to

Quoted 2 lines
Quoted 2 lines

lvm.
I am running lvm-0.9-3mdk. I have lvm running on

a

Quoted 19 lines
Quoted 1 line

fresh install of cooker on my laptop so I know

this

Quoted 3 lines

version works.

I still have /dev/hda3 showing as a lvm partion

(8e)

Quoted 12 lines

mandrake had set them up originally as
/dev/mandrake/1
/dev/mandrake/2
/dev/mandrake/3

/etc/fstab
/dev/hda1 / reiserfs notail 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/mandrake/1 /home reiserfs defaults 1 2
/dev/hdg /mnt/cdrom auto

Quoted 6 lines

user,iocharset=iso8859-1,exec,codepage=850,ro,noauto

Quoted 4 lines
Quoted 3 lines

0$
/dev/fd0 /mnt/floppy auto

user,iocharset=iso8859-1,sync,exec,codepage=850,noaut$none

Quoted 64 lines
Quoted 7 lines
Quoted 7 lines

/proc proc defaults 0 0
none /tmp tmpfs defaults 0 0
/dev/mandrake/2 /usr reiserfs defaults 1 2
/dev/mandrake/3 /var reiserfs defaults 1 2
/dev/hda2 swap swap defaults 0 0
/dev/hda5 swap swap defaults 0 0

Quoted 5 lines
Quoted 3 lines

I had to setup /dev/hda2 as swap to enable the
cooker
upgrade since it did not recognize /dev/hda5

during

Quoted 1 line

the install. It still does not recognize

/dev/hda5

Quoted 9 lines
Quoted 9 lines

=====
SI Reasoning
[email protected]

"They that can give up essential liberty to

obtain

Quoted 7 lines

a

Quoted 1 line

little temporary safety deserve neither liberty

nor

Quoted 4 lines

safety."
Benjamin Franklin

__________________________________________________

Quoted 11 lines
Quoted 4 lines

Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

=====
SI Reasoning
[email protected]

"They that can give up essential liberty to obtain

a

Quoted 1 line

little temporary safety deserve neither liberty

nor

Quoted 8 lines

safety."
Benjamin Franklin

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

=====
SI Reasoning
[email protected]

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
Benjamin Franklin

Quoted 5 lines

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

=====
SI Reasoning
[email protected]

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

#5 lore raw

:-}
that worked!
Now I have to undo the fact that cooker upgraded on /usr and/var that was not accessed because of their faulty lvm.

Quoted 7 lines · --- Luca Berra
Quoted 1 line · SI Reasoning

The previous version I was running was identified

in

Quoted 3 lines

/var/log/messages as
0.9.1_beta7(ish)

Quoted 20 lines
Quoted 3 lines

The new version is identified as:
1.0.1-rc4(ish)(03/10/2001)

try with my build of lvm

http://www.comedia.it/bluca/lvm/

Signature · 12 lines
Luca Berra -- [email protected]
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at

http://www.sistina.com/lvm/Pages/howto.html

=====
SI Reasoning
[email protected]

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com