Hooman
January 4th, 2009, 09:03 AM
Hi,
I've my ubuntu server box configured in this way:
sda: HD 250Gb with LVM2 and linux OS,
sdb: HD 500Gb software RAID1 for data
sdc: HD 500Gb software RAID1 for data
All my important data are in the pair of mirrored 500G SATA disks. (I build the RAID and LVM in Feb/2008, following the guide in http://www.linuxdevcenter.com/pub/a/linux/2006/04/27/managing-disk-space-with-lvm.html?page=2)
I re-installed ubuntu 8.0.4 lts server x64 edition in Sep/2008. And the RAID-1 disks had worked fine with the new OS for months.
But after a normal shutdown, I found my server can't start up automatically and I have to press ctrl-D to exit busy box for each time. The saddest thing was that the volume built on the RAID-1 device was gone.
I noticed that one of the hard disk(sdc) was damaged, so I pull it out. But it can't fix my problem. I am wondering how can I get my data back.
I tried some tips which get by google, but no use.
# mdadm --assemble /dev/md0
mdadm: no devices found for /dev/md0
# mdadm --assemble -scan /dev/md0
mdadm: /dev/md0 not identified in config file.
# mdadm --assemble -scan
mdadm: No arrays found in config file
I checked the partition of remained disk:
Device Boot Start End Blocks Id System
/dev/sdb1 1 60801 488384001 8e Linux LVM
My mdadm.conf is as follow:
# cat /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=0e468419:3148659a:cda2274c:931f8ce2
# This file was auto-generated on Sat, 09 Aug 2008 13:30:20 +0000
# by mkconf $Id$
My backup configuration file for the VG
# cat /etc/lvm/backup/krmbVG2
# Generated by LVM2: Sat Aug 9 13:30:23 2008
contents = "Text Format Volume Group"
version = 1
description = "Created *after* executing '/sbin/vgcfgbackup'"
creation_host = "kurumba" # Linux kurumba 2.6.24-19-generic #1 SMP Wed Jun 18 14:15:37 UTC 2008 x86_64
creation_time = 1218288623 # Sat Aug 9 13:30:23 2008
krmbVG2 {
id = "qT0kDo-WqMx-Jdwd-41gS-u2o7-e8Be-iI31U7"
seqno = 12
status = ["RESIZEABLE", "READ", "WRITE"]
extent_size = 8192 # 4 Megabytes
max_lv = 0
max_pv = 0
physical_volumes {
pv0 {
id = "UDby3C-CdIU-eOBO-trXa-ksBD-6RFu-ZF83PY"
device = "/dev/md0" # Hint only
status = ["ALLOCATABLE"]
dev_size = 976767872 # 465.759 Gigabytes
pe_start = 384
pe_count = 119234 # 465.758 Gigabytes
}
}
logical_volumes {
krmbDataBackup {
id = "HK2RX3-eiKa-Je91-7h8M-n7Tj-Bf2F-hQVcc5"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1
segment1 {
start_extent = 0
extent_count = 119232 # 465.75 Gigabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 0
]
}
}
}
}
# lvm pvdisplay
--- Physical volume ---
PV Name /dev/sda5
VG Name krmbVG1
PV Size 232.65 GB / not usable 1.49 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 59557
Free PE 1189
Allocated PE 58368
PV UUID JC7h5P-jTg0-YcLm-XK52-humb-LVHL-V6zH5S
--- NEW Physical volume ---
PV Name /dev/sdb1
VG Name
PV Size 465.76 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID vMoP99-cpsM-7HVV-Mu8u-2Qrr-dDfx-v6wMpg
I've my ubuntu server box configured in this way:
sda: HD 250Gb with LVM2 and linux OS,
sdb: HD 500Gb software RAID1 for data
sdc: HD 500Gb software RAID1 for data
All my important data are in the pair of mirrored 500G SATA disks. (I build the RAID and LVM in Feb/2008, following the guide in http://www.linuxdevcenter.com/pub/a/linux/2006/04/27/managing-disk-space-with-lvm.html?page=2)
I re-installed ubuntu 8.0.4 lts server x64 edition in Sep/2008. And the RAID-1 disks had worked fine with the new OS for months.
But after a normal shutdown, I found my server can't start up automatically and I have to press ctrl-D to exit busy box for each time. The saddest thing was that the volume built on the RAID-1 device was gone.
I noticed that one of the hard disk(sdc) was damaged, so I pull it out. But it can't fix my problem. I am wondering how can I get my data back.
I tried some tips which get by google, but no use.
# mdadm --assemble /dev/md0
mdadm: no devices found for /dev/md0
# mdadm --assemble -scan /dev/md0
mdadm: /dev/md0 not identified in config file.
# mdadm --assemble -scan
mdadm: No arrays found in config file
I checked the partition of remained disk:
Device Boot Start End Blocks Id System
/dev/sdb1 1 60801 488384001 8e Linux LVM
My mdadm.conf is as follow:
# cat /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=0e468419:3148659a:cda2274c:931f8ce2
# This file was auto-generated on Sat, 09 Aug 2008 13:30:20 +0000
# by mkconf $Id$
My backup configuration file for the VG
# cat /etc/lvm/backup/krmbVG2
# Generated by LVM2: Sat Aug 9 13:30:23 2008
contents = "Text Format Volume Group"
version = 1
description = "Created *after* executing '/sbin/vgcfgbackup'"
creation_host = "kurumba" # Linux kurumba 2.6.24-19-generic #1 SMP Wed Jun 18 14:15:37 UTC 2008 x86_64
creation_time = 1218288623 # Sat Aug 9 13:30:23 2008
krmbVG2 {
id = "qT0kDo-WqMx-Jdwd-41gS-u2o7-e8Be-iI31U7"
seqno = 12
status = ["RESIZEABLE", "READ", "WRITE"]
extent_size = 8192 # 4 Megabytes
max_lv = 0
max_pv = 0
physical_volumes {
pv0 {
id = "UDby3C-CdIU-eOBO-trXa-ksBD-6RFu-ZF83PY"
device = "/dev/md0" # Hint only
status = ["ALLOCATABLE"]
dev_size = 976767872 # 465.759 Gigabytes
pe_start = 384
pe_count = 119234 # 465.758 Gigabytes
}
}
logical_volumes {
krmbDataBackup {
id = "HK2RX3-eiKa-Je91-7h8M-n7Tj-Bf2F-hQVcc5"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1
segment1 {
start_extent = 0
extent_count = 119232 # 465.75 Gigabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 0
]
}
}
}
}
# lvm pvdisplay
--- Physical volume ---
PV Name /dev/sda5
VG Name krmbVG1
PV Size 232.65 GB / not usable 1.49 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 59557
Free PE 1189
Allocated PE 58368
PV UUID JC7h5P-jTg0-YcLm-XK52-humb-LVHL-V6zH5S
--- NEW Physical volume ---
PV Name /dev/sdb1
VG Name
PV Size 465.76 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID vMoP99-cpsM-7HVV-Mu8u-2Qrr-dDfx-v6wMpg