Skip to contentSkip to conversation

Whats happens? -> remove first phy disk from lvm

linux-lvm Denny Schierz 3 participants 6 messages Jul 12, 2006

lore
Share & tools
lore
#0 lore raw

hi,

i created a lvm volume over two partitions, hda8 and hdc8. Now hda8 is broken and have to replace the disk.

on the lvm where several files. My questions, if i create a volume over more than one partition, is that a stipe? Or does lvm use the first partition, than the second?

cu denny

Signature · 3 lines
Sicherheit verständlich http://www.sides.de
GnuPG Key
http://pgpkeys.pca.dfn.de:11371/pks/lookup?op=get&search=0x2A5CE192AB7D3FE0
#1 lore raw
Quoted 9 lines · Denny Schierz

hi,

i created a lvm volume over two partitions, hda8 and hdc8. Now hda8 is broken and have to replace the disk.

on the lvm where several files. My questions, if i create a volume over more than one partition, is that a stipe? Or does lvm use the first partition, than the second?

By default LVM will use the first PV, then the next. Striping has to be specified when you create the LV.

Depending on the filesystem (and luck) you might get some files back off the remaining disk :)

Signature · 1 line
patrick
#2 lore raw

hi,

Am Mittwoch, den 12.07.2006, 10:47 +0100 schrieb Patrick Caulfield:

Quoted 2 lines

Depending on the filesystem (and luck) you might get some files back off the remaining disk :)

hmm, thanks. It seems, that the files lost, cause i don't expecting, that these files are on the second disk.

But, keep in mind, is there a way, to reactivate the lvm without loosing data on hdc8, if i adding hda8 to the lvm?

cu denny

Signature · 3 lines
Sicherheit verständlich http://www.sides.de
GnuPG Key
http://pgpkeys.pca.dfn.de:11371/pks/lookup?op=get&search=0x2A5CE192AB7D3FE0
#3 lore raw
Quoted 2 lines · Denny Schierz

But, keep in mind, is there a way, to reactivate the lvm without loosing data on hdc8, if i adding hda8 to the lvm?

adding hda8? you mean replacing hda8?

Dieter.

#4 lore raw

hi,

Am Mittwoch, den 12.07.2006, 14:08 +0200 schrieb Dieter Stüken:

Quoted 5 lines
Quoted 2 lines · Denny Schierz

But, keep in mind, is there a way, to reactivate the lvm without loosing data on hdc8, if i adding hda8 to the lvm?

adding hda8? you mean replacing hda8?

thanks all for the reply. I replaced hda with a new disk. The System was on raid, but some data are not, cause of insufficient space.

I deleted the references for the old /dev/daten and recreated the logical volumes.

i expected first, that lvm create a stripe, but that is an extra option, to do that.

Signature · 3 lines
Sicherheit verständlich http://www.sides.de
GnuPG Key
http://pgpkeys.pca.dfn.de:11371/pks/lookup?op=get&search=0x2A5CE192AB7D3FE0
#5 lore raw
In reply to Denny Schierz
Quoted 6 lines · Denny Schierz

i created a lvm volume over two partitions, hda8 and hdc8. Now hda8 is broken and have to replace the disk.

on the lvm where several files. My questions, if i create a volume over more than one partition, is that a stipe? Or does lvm use the first partition, than the second?

have a look into /etc/lvm/backup/ to see how your VG was organized.

Quoted 1 line

on the lvm where several files.

You mean several "LVs"? If you have one big LV spread over both disks it will be difficult to restore any files from the broke file system within that LV.

Consider using smartmontools to monitor disk errors before it fails completely.

http://smartmontools.sourceforge.net/

Dieter.