* [linux-lvm] Recovery of data in LVM from a corrupt disk
@ 2005-12-20 22:03 mymail mymail
2005-12-20 22:38 ` Michael Loftis
0 siblings, 1 reply; 18+ messages in thread
From: mymail mymail @ 2005-12-20 22:03 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]
I have a FC3 system with two disks. The first (/dev/hda) is a new disk on which I have a rebuilt system which has a new LVM installed. The other disk (/dev/hdc) is the system disk that failed. As I couldn't get hdc to boot, my intention is to access hdc by mounting it on the hda system to copy data around, or try other ways to recover what's on there. However whenever I try
# mount /dev/hdc2 /mnt
FAT: invalid media value (0x8e)
mount: you must specify the filesystem type
I get filesystem not found errors. The filesystem type according to fdisk is 8e (LVM), but can I get at the data that's on there and then copy that?
Any hints on how to recover this would be appreciated. I can find loads of info on LVM and how it works, which is great when you have a working system, but not so good when it's corrupt!
Any help on how to do backups and the best procedure to follow in the event of another disaster will also be useful -- there is nothing in the FAQs, etc I've seen on this.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[-- Attachment #2: Type: text/html, Size: 1444 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-20 22:03 [linux-lvm] Recovery of data in LVM from a corrupt disk mymail mymail
@ 2005-12-20 22:38 ` Michael Loftis
2005-12-21 1:12 ` mymail mymail
0 siblings, 1 reply; 18+ messages in thread
From: Michael Loftis @ 2005-12-20 22:38 UTC (permalink / raw)
To: LVM general discussion and development
--On December 20, 2005 2:03:01 PM -0800 mymail mymail
<internetbizmail@yahoo.com> wrote:
>
> I have a FC3 system with two disks. The first (/dev/hda) is a new disk on
> which I have a rebuilt system which has a new LVM installed. The other
> disk (/dev/hdc) is the system disk that failed. As I couldn't get hdc to
> boot, my intention is to access hdc by mounting it on the hda system to
> copy data around, or try other ways to recover what's on there. However
> whenever I try
>
> # mount /dev/hdc2 /mnt
> FAT: invalid media value (0x8e)
> mount: you must specify the filesystem type
>
> I get filesystem not found errors. The filesystem type according to fdisk
> is 8e (LVM), but can I get at the data that's on there and then copy that?
>
> Any hints on how to recover this would be appreciated. I can find loads
> of info on LVM a! nd how it works, which is great when you have a working
> system, but not so good when it's corrupt!
>
> Any help on how to do backups and the best procedure to follow in the
> event of another disaster will also be useful -- there is nothing in the
> FAQs, etc I've seen on this.
LVM is not a filesystem, it's a block device layer. If you're
running/using LVM on the existing system it's vgscan and vgchange on
startup should have activated all the old LVs/VGs and mapped them to
/dev/VGNAME/LVNAME -- those are the devices you mount.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-20 22:38 ` Michael Loftis
@ 2005-12-21 1:12 ` mymail mymail
2005-12-21 1:29 ` Mr Jimmy Au-Yeung
` (2 more replies)
0 siblings, 3 replies; 18+ messages in thread
From: mymail mymail @ 2005-12-21 1:12 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 1076 bytes --]
Michael Loftis <mloftis@wgops.com> wrote:
LVM is not a filesystem, it's a block device layer. If you're
running/using LVM on the existing system it's vgscan and vgchange on
startup should have activated all the old LVs/VGs and mapped them to
/dev/VGNAME/LVNAME -- those are the devices you mount.
Thanks.
I realise this. But the disk I'm trying to mount is built the same way as the new disk I've built. So the both have a VolGroup00. What I would like to do is to either understand how I can change the volume group info so it will become a distinct volume group, and then I can 'import' this into my new environment, or how I can get into the block system so I can access the filesystem structure it embeds.
This is where I'm struggling. I would like to create a VolGroup01 device file, rename the volume group within the physical volume, and then mount that. Is it possible to 'hack' the old drive like this?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[-- Attachment #2: Type: text/html, Size: 1353 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-21 1:12 ` mymail mymail
@ 2005-12-21 1:29 ` Mr Jimmy Au-Yeung
2005-12-21 7:30 ` Hale India
2005-12-21 11:36 ` Andy Smith
2 siblings, 0 replies; 18+ messages in thread
From: Mr Jimmy Au-Yeung @ 2005-12-21 1:29 UTC (permalink / raw)
To: LVM general discussion and development
I guessed what you needed (in AIX terminology) is
shrinkvg and then release disk space to create another
new volume group(VG).
It is much better than doing those (migratevg or
migrate fs) from one vg to another vg.
Michael is right that LVM is a software raid. VG is
the grouping of all the disk drives together. Where
File System is not dependent on the VG.
Whilst it is even back up the impacted file system to
tapes, destroy the file system, logical volume and
volume group. Then restore the file system after the
VG, LV and FS been created. It will maximumize the
disk throughput and reduce the seek time.
--- mymail mymail <internetbizmail@yahoo.com> wrote:
>
>
> Michael Loftis <mloftis@wgops.com> wrote:
> LVM is not a filesystem, it's a block device layer.
> If you're
> running/using LVM on the existing system it's vgscan
> and vgchange on
> startup should have activated all the old LVs/VGs
> and mapped them to
> /dev/VGNAME/LVNAME -- those are the devices you
> mount.
> Thanks.
>
> I realise this. But the disk I'm trying to mount is
> built the same way as the new disk I've built. So
> the both have a VolGroup00. What I would like to do
> is to either understand how I can change the volume
> group info so it will become a distinct volume
> group, and then I can 'import' this into my new
> environment, or how I can get into the block system
> so I can access the filesystem structure it embeds.
>
> This is where I'm struggling. I would like to create
> a VolGroup01 device file, rename the volume group
> within the physical volume, and then mount that. Is
> it possible to 'hack' the old drive like this?
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com >
_______________________________________________
> 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] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-21 1:12 ` mymail mymail
2005-12-21 1:29 ` Mr Jimmy Au-Yeung
@ 2005-12-21 7:30 ` Hale India
2005-12-21 18:41 ` Dan Stromberg
2005-12-21 11:36 ` Andy Smith
2 siblings, 1 reply; 18+ messages in thread
From: Hale India @ 2005-12-21 7:30 UTC (permalink / raw)
To: LVM general discussion and development
Hi
I had a recovery problem with LVM before : I failed. I
got no real help from this mailing list.
I finaly succeed to start the disk for a short term on
another machine and I will never use LVM before to see
succeful recovery process.
Nobody at redhat take care about such problem........
In the future take ext2, ext3, reiserfs and you will
have plenty good recovcery solutions.
Sorry to not be able to help you more.
Good luke.
Best regards
Andre Legendre
--- mymail mymail <internetbizmail@yahoo.com> wrote:
>
>
> Michael Loftis <mloftis@wgops.com> wrote:
> LVM is not a filesystem, it's a block device layer.
> If you're
> running/using LVM on the existing system it's vgscan
> and vgchange on
> startup should have activated all the old LVs/VGs
> and mapped them to
> /dev/VGNAME/LVNAME -- those are the devices you
> mount.
> Thanks.
>
> I realise this. But the disk I'm trying to mount is
> built the same way as the new disk I've built. So
> the both have a VolGroup00. What I would like to do
> is to either understand how I can change the volume
> group info so it will become a distinct volume
> group, and then I can 'import' this into my new
> environment, or how I can get into the block system
> so I can access the filesystem structure it embeds.
>
> This is where I'm struggling. I would like to create
> a VolGroup01 device file, rename the volume group
> within the physical volume, and then mount that. Is
> it possible to 'hack' the old drive like this?
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com >
_______________________________________________
> 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] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-21 1:12 ` mymail mymail
2005-12-21 1:29 ` Mr Jimmy Au-Yeung
2005-12-21 7:30 ` Hale India
@ 2005-12-21 11:36 ` Andy Smith
2005-12-21 14:09 ` Alasdair G Kergon
2 siblings, 1 reply; 18+ messages in thread
From: Andy Smith @ 2005-12-21 11:36 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 905 bytes --]
On Tue, Dec 20, 2005 at 05:12:36PM -0800, mymail mymail wrote:
> Thanks.
> I realise this. But the disk I'm trying to mount is built the same way
> as the new disk I've built. So the both have a VolGroup00. What I
> would like to do is to either understand how I can change the volume
> group info so it will become a distinct volume group, and then I can
> 'import' this into my new environment, or how I can get into the block
> system so I can access the filesystem structure it embeds.
Perhaps you could boot off a rescue cd or knoppix or something, edit
the lvm.conf to tell it to only consider /dev/hdc or wherever you
have the old disk connected, do the vgscan to pick up the old vg,
and then vgrename to try and rename it.
If the disk is damaged enough not to boot then you might find that
you can't recover from this however.
LVM is not for redundancy, use RAID for that.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-21 11:36 ` Andy Smith
@ 2005-12-21 14:09 ` Alasdair G Kergon
0 siblings, 0 replies; 18+ messages in thread
From: Alasdair G Kergon @ 2005-12-21 14:09 UTC (permalink / raw)
To: LVM general discussion and development
On Wed, Dec 21, 2005 at 11:36:10AM +0000, Andy Smith wrote:
> Perhaps you could boot off a rescue cd or knoppix or something, edit
> the lvm.conf to tell it to only consider /dev/hdc or wherever you
> have the old disk connected, do the vgscan to pick up the old vg,
> and then vgrename to try and rename it.
And you can set the LVM_SYSTEM_DIR environment variable to tell
lvm2 to read its lvm.conf file from a different directory to
avoid editing the system one.
Alasdair
--
agk@redhat.com
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-21 7:30 ` Hale India
@ 2005-12-21 18:41 ` Dan Stromberg
2005-12-22 7:27 ` Hale India
0 siblings, 1 reply; 18+ messages in thread
From: Dan Stromberg @ 2005-12-21 18:41 UTC (permalink / raw)
To: LVM general discussion and development
Please see http://dcs.nac.uci.edu/~strombrg/data-recovery.html -
especially the link about ext3 and LVM2.
On Tue, 2005-12-20 at 23:30 -0800, Hale India wrote:
> Hi
>
> I had a recovery problem with LVM before : I failed. I
> got no real help from this mailing list.
> I finaly succeed to start the disk for a short term on
> another machine and I will never use LVM before to see
> succeful recovery process.
> Nobody at redhat take care about such problem........
> In the future take ext2, ext3, reiserfs and you will
> have plenty good recovcery solutions.
>
> Sorry to not be able to help you more.
> Good luke.
>
> Best regards
>
> Andre Legendre
>
> --- mymail mymail <internetbizmail@yahoo.com> wrote:
>
> >
> >
> > Michael Loftis <mloftis@wgops.com> wrote:
> > LVM is not a filesystem, it's a block device layer.
> > If you're
> > running/using LVM on the existing system it's vgscan
> > and vgchange on
> > startup should have activated all the old LVs/VGs
> > and mapped them to
> > /dev/VGNAME/LVNAME -- those are the devices you
> > mount.
> > Thanks.
> >
> > I realise this. But the disk I'm trying to mount is
> > built the same way as the new disk I've built. So
> > the both have a VolGroup00. What I would like to do
> > is to either understand how I can change the volume
> > group info so it will become a distinct volume
> > group, and then I can 'import' this into my new
> > environment, or how I can get into the block system
> > so I can access the filesystem structure it embeds.
> >
> > This is where I'm struggling. I would like to create
> > a VolGroup01 device file, rename the volume group
> > within the physical volume, and then mount that. Is
> > it possible to 'hack' the old drive like this?
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com >
> _______________________________________________
> > 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/
>
> _______________________________________________
> 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] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-21 18:41 ` Dan Stromberg
@ 2005-12-22 7:27 ` Hale India
2005-12-22 10:36 ` Andy Smith
2005-12-22 18:07 ` Dan Stromberg
0 siblings, 2 replies; 18+ messages in thread
From: Hale India @ 2005-12-22 7:27 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 3907 bytes --]
Hi Dan
Very nice to you to give us this link.
What I was talking about is a problem for recovery specific to LVM :
If you machine crash, (not your disk) with ext2, ext3, reiserfs, JFS you can put your disk in any other machine as second or third disk etc.. and access your data's.
If you have a LVM : you are in the trap. With reiserfs you have many good way to recover. With JFS you can even take advantage of the situation to switch to a raid mode.
For my concern I have now my solution : I start Linux in an USB key using ext3 (using SLAX) and if the machine crash I can start in very short term using any else machine. I loose less than 30 mn and no data's and for my job 30mn is already a lot.
LVM is suppose to give better function than ext2 or ext3 etc.
Sucurity ofd data's is the first priority of disk system and should be the very first one for LVM.
I have personaly daily backup. But many people have not what must we say ?
For me I just advice them to not use LVM, because they would not have a good exit way. (even if you loose only one day it can be a problem).
I consider that a good disk system should allow to get back data if disk is good working. Not only if the whole machine is good working.
If any people has a good solution they are welcome and I would appologize.
Best regards
Andre
Dan Stromberg <strombrg@dcs.nac.uci.edu> wrote:
Please see http://dcs.nac.uci.edu/~strombrg/data-recovery.html -
especially the link about ext3 and LVM2.
On Tue, 2005-12-20 at 23:30 -0800, Hale India wrote:
> Hi
>
> I had a recovery problem with LVM before : I failed. I
> got no real help from this mailing list.
> I finaly succeed to start the disk for a short term on
> another machine and I will never use LVM before to see
> succeful recovery process.
> Nobody at redhat take care about such problem........
> In the future take ext2, ext3, reiserfs and you will
> have plenty good recovcery solutions.
>
> Sorry to not be able to help you more.
> Good luke.
>
> Best regards
>
> Andre Legendre
>
> --- mymail mymail wrote:
>
> >
> >
> > Michael Loftis wrote:
> > LVM is not a filesystem, it's a block device layer.
> > If you're
> > running/using LVM on the existing system it's vgscan
> > and vgchange on
> > startup should have activated all the old LVs/VGs
> > and mapped them to
> > /dev/VGNAME/LVNAME -- those are the devices you
> > mount.
> > Thanks.
> >
> > I realise this. But the disk I'm trying to mount is
> > built the same way as the new disk I've built. So
> > the both have a VolGroup00. What I would like to do
> > is to either understand how I can change the volume
> > group info so it will become a distinct volume
> > group, and then I can 'import' this into my new
> > environment, or how I can get into the block system
> > so I can access the filesystem structure it embeds.
> >
> > This is where I'm struggling. I would like to create
> > a VolGroup01 device file, rename the volume group
> > within the physical volume, and then mount that. Is
> > it possible to 'hack' the old drive like this?
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com >
> _______________________________________________
> > 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/
>
> _______________________________________________
> 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/
>
_______________________________________________
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/
[-- Attachment #2: Type: text/html, Size: 4797 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-22 7:27 ` Hale India
@ 2005-12-22 10:36 ` Andy Smith
2005-12-22 11:09 ` Hale India
2005-12-22 18:07 ` Dan Stromberg
1 sibling, 1 reply; 18+ messages in thread
From: Andy Smith @ 2005-12-22 10:36 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 1068 bytes --]
On Wed, Dec 21, 2005 at 11:27:35PM -0800, Hale India wrote:
> What I was talking about is a problem for recovery specific to LVM :
> If you machine crash, (not your disk) with ext2, ext3, reiserfs, JFS
> you can put your disk in any other machine as second or third disk
> etc.. and access your data's.
If my machines crash often enough that I am regularly juggling disks
I consider this a problem beyond the scope of LVM (unless they're
crashing in LVM).
Anytime I *have* had to move LVM setups to other machines I have had
no issues.
I'm confused why you continually compare LVM to various filesystems
when it isn't a filesystem. It has different challenges and use
cases.
> I consider that a good disk system should allow to get back data if
> disk is good working. Not only if the whole machine is good working.
> If any people has a good solution they are welcome and I would
> appologize.
If you could go into more detail regarding incidents where you have
lost data on otherwise working disks then perhaps you could get more
help.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-22 10:36 ` Andy Smith
@ 2005-12-22 11:09 ` Hale India
2005-12-22 11:26 ` Andy Smith
0 siblings, 1 reply; 18+ messages in thread
From: Hale India @ 2005-12-22 11:09 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 1951 bytes --]
Hi Andy
Nice news. Last time when I post my problems I got no answers.
If you can describe how to proceed when you need to move your hardisks to another machine (In my case the cause when hardware failure of mother board) and when boot disk doesnot accept to boot on the new machine (in my case it was fedora 4 and probably some difference of hardware. The only way I solved was to install disks in the exactly same machine)
If you can give to us some guideline it would probably save some situations.
If you can point us to documentation in LVM project usefull for such case it would even be better.
Best regards
Andre Legendre
Andy Smith <andy@strugglers.net> wrote: On Wed, Dec 21, 2005 at 11:27:35PM -0800, Hale India wrote:
> What I was talking about is a problem for recovery specific to LVM :
> If you machine crash, (not your disk) with ext2, ext3, reiserfs, JFS
> you can put your disk in any other machine as second or third disk
> etc.. and access your data's.
If my machines crash often enough that I am regularly juggling disks
I consider this a problem beyond the scope of LVM (unless they're
crashing in LVM).
Anytime I *have* had to move LVM setups to other machines I have had
no issues.
I'm confused why you continually compare LVM to various filesystems
when it isn't a filesystem. It has different challenges and use
cases.
> I consider that a good disk system should allow to get back data if
> disk is good working. Not only if the whole machine is good working.
> If any people has a good solution they are welcome and I would
> appologize.
If you could go into more detail regarding incidents where you have
lost data on otherwise working disks then perhaps you could get more
help.
_______________________________________________
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/
[-- Attachment #2: Type: text/html, Size: 2279 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-22 11:09 ` Hale India
@ 2005-12-22 11:26 ` Andy Smith
2005-12-22 11:42 ` Hale India
0 siblings, 1 reply; 18+ messages in thread
From: Andy Smith @ 2005-12-22 11:26 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 1177 bytes --]
On Thu, Dec 22, 2005 at 03:09:43AM -0800, Hale India wrote:
> If you can describe how to proceed when you need to move your hardisks
> to another machine (In my case the cause when hardware failure of
> mother board) and when boot disk doesnot accept to boot on the new
> machine (in my case it was fedora 4 and probably some difference of
> hardware.
I already did give you some hints and so did Alasdair Kergon. It
should just work, your other problem being that you have the disks in
a machine that already has a VG named the same as the one you want
to find on the disk(s) you put in.
Like I said, depending on how broken the disk is (and it sounds like
it is since it no longer boots, but you didn't specify what messages
it gives exactly so we have no idea if that is hardware, bootloader,
kernel or what) you may not be able to recover anything. Which is
really no different from the situation you'd be in with a
filesystem.
> If you can give to us some guideline it would probably save some
> situations.
> If you can point us to documentation in LVM project usefull for such
> case it would even be better.
Try the LVM2 HOWTO (google)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-22 11:26 ` Andy Smith
@ 2005-12-22 11:42 ` Hale India
2005-12-22 12:25 ` Andy Smith
0 siblings, 1 reply; 18+ messages in thread
From: Hale India @ 2005-12-22 11:42 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 1865 bytes --]
Hi Andy :
Disks was not broken. Mother board was.
I don't remember any hints.
If you can give me how to proceed when you need to move your hardisks to another machine when you use LVM it would be very usefull for me and probably for other people facing a machine failure(Other than hardisk failure).
If you can point mle to any LVM documentation capable to help in a such situation it can also help me.
Best regards.
Andre Legendre
Andy Smith <andy@strugglers.net> wrote: On Thu, Dec 22, 2005 at 03:09:43AM -0800, Hale India wrote:
> If you can describe how to proceed when you need to move your hardisks
> to another machine (In my case the cause when hardware failure of
> mother board) and when boot disk doesnot accept to boot on the new
> machine (in my case it was fedora 4 and probably some difference of
> hardware.
I already did give you some hints and so did Alasdair Kergon. It
should just work, your other problem being that you have the disks in
a machine that already has a VG named the same as the one you want
to find on the disk(s) you put in.
Like I said, depending on how broken the disk is (and it sounds like
it is since it no longer boots, but you didn't specify what messages
it gives exactly so we have no idea if that is hardware, bootloader,
kernel or what) you may not be able to recover anything. Which is
really no different from the situation you'd be in with a
filesystem.
> If you can give to us some guideline it would probably save some
> situations.
> If you can point us to documentation in LVM project usefull for such
> case it would even be better.
Try the LVM2 HOWTO (google)
_______________________________________________
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/
[-- Attachment #2: Type: text/html, Size: 2197 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-22 11:42 ` Hale India
@ 2005-12-22 12:25 ` Andy Smith
2005-12-22 12:43 ` Hale India
0 siblings, 1 reply; 18+ messages in thread
From: Andy Smith @ 2005-12-22 12:25 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 475 bytes --]
On Thu, Dec 22, 2005 at 03:42:39AM -0800, Hale India wrote:
>
> Hi Andy :
> Disks was not broken. Mother board was.
> I don't remember any hints.
https://www.redhat.com/archives/linux-lvm/2005-December/msg00107.html
https://www.redhat.com/archives/linux-lvm/2005-December/msg00108.html
https://www.redhat.com/archives/linux-lvm/2005-December/msg00111.html
What exact problems do you face once you boot a machine with your
disks in it and do a vgscan?
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-22 12:25 ` Andy Smith
@ 2005-12-22 12:43 ` Hale India
2005-12-22 13:06 ` Andy Smith
0 siblings, 1 reply; 18+ messages in thread
From: Hale India @ 2005-12-22 12:43 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 1294 bytes --]
Hi
I tried to see my data from knoppix, but for what I remember knoppiux does not support LVM.
From your links I found
http://dcs.nac.uci.edu/~strombrg/EXT3-filesystem-recovery-in-LVM2.html
Which seems to give some tricks. I don't know if this is capable to work.
But it seems that LVM project does not take care about that and I find very bad for such a project to give no exit way for such a problem.
It should have some recovery guide documentation in the project.
Thank's to Andy. I hope that your links can be usefull for some people.
Best regards
Andre Legendre
Andy Smith <andy@strugglers.net> wrote: On Thu, Dec 22, 2005 at 03:42:39AM -0800, Hale India wrote:
>
> Hi Andy :
> Disks was not broken. Mother board was.
> I don't remember any hints.
https://www.redhat.com/archives/linux-lvm/2005-December/msg00107.html
https://www.redhat.com/archives/linux-lvm/2005-December/msg00108.html
https://www.redhat.com/archives/linux-lvm/2005-December/msg00111.html
What exact problems do you face once you boot a machine with your
disks in it and do a vgscan?
_______________________________________________
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/
[-- Attachment #2: Type: text/html, Size: 1586 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-22 12:43 ` Hale India
@ 2005-12-22 13:06 ` Andy Smith
2005-12-22 13:47 ` Hale India
0 siblings, 1 reply; 18+ messages in thread
From: Andy Smith @ 2005-12-22 13:06 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]
On Thu, Dec 22, 2005 at 04:43:46AM -0800, Hale India wrote:
>
> Hi
> I tried to see my data from knoppix, but for what I remember knoppiux
> does not support LVM.
It does as I have used knoppix LVM support several times.
http://www.justfuckinggoogleit.com/search?q=knoppix+lvm
> From your links I found
> http://dcs.nac.uci.edu/~strombrg/EXT3-filesystem-recovery-in-LVM2.html
> Which seems to give some tricks. I don't know if this is capable to
> work.
There is plenty of good information there.
> But it seems that LVM project does not take care about that and I find
> very bad for such a project to give no exit way for such a problem.
I agree that people who aren't willing to do any research or
diagnostic work when they have a failure caused by their broken
hardware should not use LVM or Linux, or computers.
> It should have some recovery guide documentation in the project.
I would rather they continued developing the software as opposed to
paying people to write documentation covering every possible outcome
of hardware problems which users still will not read.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-22 13:06 ` Andy Smith
@ 2005-12-22 13:47 ` Hale India
0 siblings, 0 replies; 18+ messages in thread
From: Hale India @ 2005-12-22 13:47 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 1842 bytes --]
Andy
As I told you knopix has not natiuve support to LVM.
Links you gave to me demonstarte that to recover LVM you need complexes steps not required for other filesystem or logical volume managers.
I use now filesystems usable by stupid people like me and I live LVM for more clever people.
Why not for example use Knoppix if to recover fedora you need it ?
At least Knoppix arrive with many good recovery tools. (But not LVM native support).
Best regards
Andre Legendre
Andy Smith <andy@strugglers.net> wrote: On Thu, Dec 22, 2005 at 04:43:46AM -0800, Hale India wrote:
>
> Hi
> I tried to see my data from knoppix, but for what I remember knoppiux
> does not support LVM.
It does as I have used knoppix LVM support several times.
http://www.justfuckinggoogleit.com/search?q=knoppix+lvm
> From your links I found
> http://dcs.nac.uci.edu/~strombrg/EXT3-filesystem-recovery-in-LVM2.html
> Which seems to give some tricks. I don't know if this is capable to
> work.
There is plenty of good information there.
> But it seems that LVM project does not take care about that and I find
> very bad for such a project to give no exit way for such a problem.
I agree that people who aren't willing to do any research or
diagnostic work when they have a failure caused by their broken
hardware should not use LVM or Linux, or computers.
> It should have some recovery guide documentation in the project.
I would rather they continued developing the software as opposed to
paying people to write documentation covering every possible outcome
of hardware problems which users still will not read.
_______________________________________________
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/
[-- Attachment #2: Type: text/html, Size: 2193 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [linux-lvm] Recovery of data in LVM from a corrupt disk
2005-12-22 7:27 ` Hale India
2005-12-22 10:36 ` Andy Smith
@ 2005-12-22 18:07 ` Dan Stromberg
1 sibling, 0 replies; 18+ messages in thread
From: Dan Stromberg @ 2005-12-22 18:07 UTC (permalink / raw)
To: LVM general discussion and development
Please allow me to restate what I believe you've just said, in my own
words, to be sure we're understanding each other?
You were finding that because your data was inside of LVM, when your
machine died, you could not just move your disk to another machine that
didn't have LVM to get your data back.
You got past this problem by putting a mini/recovery distribution on a
USB key that does have LVM support, making your data easy to access.
True?
Thanks!
On Wed, 2005-12-21 at 23:27 -0800, Hale India wrote:
> Hi Dan
>
> Very nice to you to give us this link.
>
> What I was talking about is a problem for recovery specific to LVM :
> If you machine crash, (not your disk) with ext2, ext3, reiserfs, JFS
> you can put your disk in any other machine as second or third disk
> etc.. and access your data's.
> If you have a LVM : you are in the trap. With reiserfs you have many
> good way to recover. With JFS you can even take advantage of the
> situation to switch to a raid mode.
>
> For my concern I have now my solution : I start Linux in an USB key
> using ext3 (using SLAX) and if the machine crash I can start in very
> short term using any else machine. I loose less than 30 mn and no
> data's and for my job 30mn is already a lot.
>
> LVM is suppose to give better function than ext2 or ext3 etc.
> Sucurity ofd data's is the first priority of disk system and should be
> the very first one for LVM.
>
> I have personaly daily backup. But many peopl! e have not what must we
> say ?
> For me I just advice them to not use LVM, because they would not have
> a good exit way. (even if you loose only one day it can be a problem).
> I consider that a good disk system should allow to get back data if
> disk is good working. Not only if the whole machine is good working.
>
> If any people has a good solution they are welcome and I would
> appologize.
>
> Best regards
>
> Andre
>
>
>
> Dan Stromberg <strombrg@dcs.nac.uci.edu> wrote:
>
> Please see http://dcs.nac.uci.edu/~strombrg/data-recovery.html
> -
> especially the link about ext3 and LVM2.
>
> On Tue, 2005-12-20 at 23:30 -0800, Hale India wrote:
> > Hi
> >
> > I had a recovery problem with LVM before : I failed. I
> > got no real help from this mailing list.
> > I finaly succeed to start the disk for a short! term on
> > another machine and I will never use LVM before to see
> > succeful recovery process.
> > Nobody at redhat take care about such problem........
> > In the future take ext2, ext3, reiserfs and you will
> > have plenty good recovcery solutions.
> >
> > Sorry to not be able to help you more.
> > Good luke.
> >
> > Best regards
> >
> > Andre Legendre
> >
> > --- mymail mymail wrote:
> >
> > >
> > >
> > > Michael Loftis wrote:
> > > LVM is not a filesystem, it's a block device layer.
> > > If you're
> > > running/using LVM on the existing system it's vgscan
> > > and vgchange on
> > > startup should have activated all the old LVs/VGs
> > > and mapped them to
> > > /dev/VGNAME/LVNAME -- those are the devices you
> > > mount.
> > > Thanks.
> > >
> > >! I realise this. But the disk I'm trying to mount is
> > > built the same way as the new disk I've built. So
> > > the both have a VolGroup00. What I would like to do
> > > is to either understand how I can change the volume
> > > group info so it will become a distinct volume
> > > group, and then I can 'import' this into my new
> > > environment, or how I can get into the block system
> > > so I can access the filesystem structure it embeds.
> > >
> > > This is where I'm struggling. I would like to create
> > > a VolGroup01 device file, rename the volume group
> > > within the physical volume, and then mount that. Is
> > > it possible to 'hack' the old drive like this?
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam
> > > protection around
> > > http://mail.yahoo.com >
> > _______________________________________________
> > > 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/
> >
> > _______________________________________________
> > 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/
> >
>
> _______________________________________________
> 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/
>
>
> _______________________________________________
> 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] 18+ messages in thread
end of thread, other threads:[~2005-12-22 18:07 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-20 22:03 [linux-lvm] Recovery of data in LVM from a corrupt disk mymail mymail
2005-12-20 22:38 ` Michael Loftis
2005-12-21 1:12 ` mymail mymail
2005-12-21 1:29 ` Mr Jimmy Au-Yeung
2005-12-21 7:30 ` Hale India
2005-12-21 18:41 ` Dan Stromberg
2005-12-22 7:27 ` Hale India
2005-12-22 10:36 ` Andy Smith
2005-12-22 11:09 ` Hale India
2005-12-22 11:26 ` Andy Smith
2005-12-22 11:42 ` Hale India
2005-12-22 12:25 ` Andy Smith
2005-12-22 12:43 ` Hale India
2005-12-22 13:06 ` Andy Smith
2005-12-22 13:47 ` Hale India
2005-12-22 18:07 ` Dan Stromberg
2005-12-21 11:36 ` Andy Smith
2005-12-21 14:09 ` Alasdair G Kergon
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).