вчера случайно при добавление диска в raid ввел команду sfdisk -d /dev/sda | sfdisk /dev/sdb На sdb был 2 раздела lvm. После чего пытался восстановить таблицу через testdisk теперь у меня такая картина:
root@XenServer:~# fdisk /dev/sdb
The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.
Command (m for help): p
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 4096 208895 102400 7 HPFS/NTFS/exFAT
/dev/sdb2 208896 314572799 157181952 7 HPFS/NTFS/exFAT
/dev/sdb3 314576896 943718399 314570752 7 HPFS/NTFS/exFAT
Реально ли вернуть lvm?
есть backup
cat /etc/lvm/backup/WD10000
# Generated by LVM2 version 2.02.95(2) (2012-03-06): Thu Aug 28 21:50:01 2014
contents = "Text Format Volume Group"
version = 1
description = "Created *after* executing 'lvcreate -n disk_300g -L300G WD10000'"
creation_host = "XenServer" # Linux XenServer 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64
creation_time = 1409237401 # Thu Aug 28 21:50:01 2014
WD10000 {
id = "03lfPR-6xZo-YmYV-aSJF-JFaZ-uYQu-pxp8nN"
seqno = 5
format = "lvm2" # informational
status = ["RESIZEABLE", "READ", "WRITE"]
flags = []
extent_size = 8192 # 4 Megabytes
max_lv = 0
max_pv = 0
metadata_copies = 0
physical_volumes {
pv0 {
id = "t5FN9X-Jc5h-qnIe-eofd-sXPK-23KA-tQ65JL"
device = "/dev/sdb" # Hint only
status = ["ALLOCATABLE"]
flags = []
dev_size = 976773168 # 465,762 Gigabytes
pe_start = 2048
pe_count = 119234 # 465,758 Gigabytes
}
}
logical_volumes {
disk_150g {
id = "p1UYql-2BCF-rmUS-BvTx-DCm1-PXre-BeZ3Bt"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "XenServer"
creation_time = 1409237286 # 2014-08-28 21:48:06 +0700
segment_count = 1
segment1 {
start_extent = 0
extent_count = 38400 # 150 Gigabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 0
]
}
}
disk_300g {
id = "ToZ06c-BWaf-0tby-WtSc-tIKv-XFQ3-ea42cv"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "XenServer"
creation_time = 1409237401 # 2014-08-28 21:50:01 +0700
segment_count = 1
segment1 {
start_extent = 0
extent_count = 76800 # 300 Gigabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 38400
]
}
}
}
}