From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lBB2h6Ki016877 for ; Mon, 10 Dec 2007 21:43:06 -0500 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.238]) by mx3.redhat.com (8.13.1/8.13.1) with ESMTP id lBB2gjuR016624 for ; Mon, 10 Dec 2007 21:42:45 -0500 Received: by wr-out-0506.google.com with SMTP id c57so1576970wra for ; Mon, 10 Dec 2007 18:42:45 -0800 (PST) Message-ID: <1f31f75c0712101842q4d71c03bu75926f1deb026a26@mail.gmail.com> Date: Mon, 10 Dec 2007 21:42:45 -0500 From: "Null EXE" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1740_31803181.1197340965176" Subject: [linux-lvm] lvm raid failure Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: linux-lvm@redhat.com ------=_Part_1740_31803181.1197340965176 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi everyone, I have been running an Edgy fileserver for about 6 months now. When I came home from work last week I found my files all inaccessible. After investigation I found issues with my PV. I would like to recover my data and replace the drives if possible any help is greatly appreciated! I have one system drive and 6 storage drive, all raid1. The storage layout is 2x160GB /dev/md0 2x250GB /dev/md1 2x250GB /dev/md2 After investigation I found problems with my lvm. pvdisplay showed: Couldn't find device with uuid 'xjWU5M-G3WB-tZjB-Tyrk-Q7rN-Yide-1FEVh3'. I ran the command: sudo pvcreate --uuid "xjWU5M-G3WB-tZjB-Tyrk-Q7rN-Yide-1FEVh3" --restorefile /etc/lvm/archive/fileserver_00006.vg /dev/md2 This seemed to recover /dev/md2. I re-ran pvdisplay and got Couldn't find device with uuid '1ATm8s-oxKG-nz0p-z1QA-a0s4-od9T-AMZRoo'. I figured I could run the same command on md1, sudo pvcreate --uuid "1ATm8s-oxKG-nz0p-z1QA-a0s4-od9T-AMZRoo" --restorefile /etc/lvm/archive/fileserver_00006.vg /dev/md1 and got the message: Couldn't find device with uuid '1ATm8s-oxKG-nz0p-z1QA-a0s4-od9T-AMZRoo'. Device /dev/md1 not found (or ignored by filtering). After re-executing the above command with -vvv at the bottom of the output I get the following message: #device/dev-io.c:439 Opened /dev/md1 RO #device/dev-io.c:264 /dev/md1: size is 0 sectors #filters/filter.c:106 /dev/md1: Skipping: Too small to hold a PV #device/dev-io.c:485 Closed /dev/md1 #pvcreate.c:81 Device /dev/md1 not found (or ignored by filtering). Here is my pvdisplay. Again, any help is Greatly appreciated ***START*** Couldn't find device with uuid '1ATm8s-oxKG-nz0p-z1QA-a0s4-od9T-AMZRoo'. Couldn't find device with uuid '1ATm8s-oxKG-nz0p-z1QA-a0s4-od9T-AMZRoo'. --- Physical volume --- PV Name /dev/md0 VG Name fileserver PV Size 149.05 GB / not usable 0 Allocatable yes PE Size (KByte) 4096 Total PE 38156 Free PE 9996 Allocated PE 28160 PV UUID pZV1Ff-Y7fu-S8m1-tVFn-fOMJ-VRls-fLFEov --- Physical volume --- PV Name unknown device VG Name fileserver PV Size 232.88 GB / not usable 0 Allocatable yes (but full) PE Size (KByte) 4096 Total PE 59618 Free PE 0 Allocated PE 59618 PV UUID 1ATm8s-oxKG-nz0p-z1QA-a0s4-od9T-AMZRoo --- Physical volume --- PV Name /dev/md2 VG Name fileserver PV Size 232.88 GB / not usable 0 Allocatable yes PE Size (KByte) 4096 Total PE 59618 Free PE 9156 Allocated PE 50462 PV UUID xjWU5M-G3WB-tZjB-Tyrk-Q7rN-Yide-1FEVh3 ------=_Part_1740_31803181.1197340965176 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi everyone,


I have been running an Edgy fileserver for about 6 months now. When I came home from work last week I found my files all inaccessible. After investigation I found issues with my PV. I would like to recover my data and replace the drives if possible any help is greatly appreciated!

I have one system drive and 6 storage drive, all raid1. The storage layout is
2x160GB /dev/md0
2x250GB /dev/md1
2x250GB /dev/md2
After investigation I found problems with my lvm. pvdisplay showed:
Couldn't find device with uuid 'xjWU5M-G3WB-tZjB-Tyrk-Q7rN-Yide-1FEVh3'.

I ran the command:
sudo pvcreate --uuid "xjWU5M-G3WB-tZjB-Tyrk-Q7rN-Yide-1FEVh3" --restorefile /etc/lvm/archive/fileserver_00006.vg /dev/md2

This seemed to recover /dev/md2. I re-ran pvdisplay and got
Couldn't find device with uuid '1ATm8s-oxKG-nz0p-z1QA-a0s4-od9T-AMZRoo'.

I figured I could run the same command on md1,
sudo pvcreate --uuid "1ATm8s-oxKG-nz0p-z1QA-a0s4-od9T-AMZRoo" --restorefile /etc/lvm/archive/fileserver_00006.vg /dev/md1

and got the message:
Couldn't find device with uuid '1ATm8s-oxKG-nz0p-z1QA-a0s4-od9T-AMZRoo'.
Device /dev/md1 not found (or ignored by filtering).

After re-executing the above command with -vvv at the bottom of the output I get the following message:
#device/dev-io.c:439         Opened /dev/md1 RO
#device/dev-io.c:264       /dev/md1: size is 0 sectors
#filters/filter.c:106         /dev/md1: Skipping: Too small to hold a PV
#device/dev-io.c:485         Closed /dev/md1
#pvcreate.c:81   Device /dev/md1 not found (or ignored by filtering).

Here is my pvdisplay. Again, any help is Greatly appreciated
***START***

Couldn't find device with uuid '1ATm8s-oxKG-nz0p-z1QA-a0s4-od9T-AMZRoo'.
Couldn't find device with uuid '1ATm8s-oxKG-nz0p-z1QA-a0s4-od9T-AMZRoo'.
--- Physical volume ---
PV Name /dev/md0
VG Name fileserver
PV Size 149.05 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 38156
Free PE 9996
Allocated PE 28160
PV UUID pZV1Ff-Y7fu-S8m1-tVFn-fOMJ-VRls-fLFEov

--- Physical volume ---
PV Name unknown device
VG Name fileserver
PV Size 232.88 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 59618
Free PE 0
Allocated PE 59618
PV UUID 1ATm8s-oxKG-nz0p-z1QA-a0s4-od9T-AMZRoo

--- Physical volume ---
PV Name /dev/md2
VG Name fileserver
PV Size 232.88 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 59618
Free PE 9156
Allocated PE 50462
PV UUID xjWU5M-G3WB-tZjB-Tyrk-Q7rN-Yide-1FEVh3 ------=_Part_1740_31803181.1197340965176--