Skip to contentSkip to conversation

LVM One Harddisk died

linux-lvm Sascha Reetz 2 participants 2 messages Aug 20, 2003 – Aug 21, 2003

lore
Share & tools
lore
#0 lore raw

Hallo,

I am a lvm running with several hard disks. One of the hard disks died.

What can I do, to have access to left data?

Signature · 9 lines
  ... in diesem Sinne ...
      Sascha    Reetz            +---------------------------------+
  ------++-------++------        |  Website : http://www.reetz.de  |
        ||       ||              |  ICQ UNI : 20345264             |
  +-----++-------++--------------+  Tkom-Net: 0173 - 2643341       +--
  ====================================================================
  = Die letzten Worte ...   ...eines Chemikers                       =
  = ''Muß das warm werden?''                                         =
  ====================================================================
#1 lore raw
Quoted 6 lines · Sascha Reetz

Hallo,

I am a lvm running with several hard disks. One of the hard disks died.

What can I do, to have access to left data?

LVM1, I assume ?

Raplace the dead hard disk with one of the same size, pvcreate the new one and vgcfgrestore the data to it. Run "vgscan ; vgchange -ay" afterwards (which will probably run anyway in one of your boot scripts).

- Or -

Install device-mapper and LVM2 and use LVM2's partial activation feature (vgchange -ay -P). You must recreate the VG after you saved any data still accessible.

- Or -

if you want a quick hack taking the risk that accessing parts of logical volumes mapped to the dead disk (assuming your volume grous name is "VG" and that VG is the only one in the system):

# mkdir /etc/lvmtab.d
# cp /etc/lvmconf/VG.conf /etc/lvmtab.d/
# echo -ne "VG\0" > /etc/lvmtab
# vgchange -ay

That should get you temporary access to all data you still _can_ access. Save it and if you don't replace the failed disk, recreate your volume group, logical volumes and filesystems in order to restore your data.

Quoted 21 lines
Signature · 18 lines
-- 
  ... in diesem Sinne ...
      Sascha    Reetz            +---------------------------------+
  ------++-------++------        |  Website : http://www.reetz.de  |
        ||       ||              |  ICQ UNI : 20345264             |
  +-----++-------++--------------+  Tkom-Net: 0173 - 2643341       +--
  ====================================================================
  = Die letzten Worte ...   ...eines Chemikers                       =
  = ''Muß das warm werden?''                                         =
  ====================================================================



_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-