Thread: LVM2 does not recognize /dev/md1 anymore
hi, all,
have upgraded home file server ubuntu 10.10 11.04. found lvm+raid5 not work more. here stuff have explored far
$sudo lvdisplay
--- logical volume ---
lv name /dev/fsvr_main/var
vg name fsvr_main
lv uuid lhq14y-clvy-lwv1-b4nu-twj2-mqdu-lws7xf
lv write access read/write
lv status suspended
# open 0
lv size 3.71 tib
current le 971400
segments 1
allocation inherit
read ahead sectors auto
- set 256
block device 252:0
lvdisplay indicates lv suspended. try activate lv by
$ sudo lvchange -ay /dev/fsvr_main/var
device-mapper: resume ioctl failed: invalid argument
unable resume fsvr_main-var (252:0)
/var/log/syslog reports:
kernel: [ 974.845365] device-mapper: table: 252:0: md1p1 small target: start=384, len=7957708800, dev_size=3907024002
indicating recorded size of volume different real size.
furthermore found
$ sudo pvdisplay
--- physical volume ---
pv name /dev/md1p1
vg name fsvr_main
pv size 5.46 tib / not usable 3.31 mib
allocatable yes
pe size 4.00 mib
total pe 1430794
free pe 459394
allocated pe 971400
pv uuid eo3xib-kmwn-nn7i-oacs-4a2f-q2ej-hbtj1j
indicates pv assigned /dev/md1p1
however, when create pv, used /dev/md1 not /dev/md1p1
try remove pv label of /dev/md1p1 by
sudo pvremove -ff /dev/md1p1
, create pv metadata on /dev/md1 by
sudo pvcreate --uuid "eo3xib-kmwn-nn7i-oacs-4a2f-q2ej-hbtj1j" --restorefile /etc/lvm/archive/fsvr_main_00016.vg /dev/md1
couldn't find device uuid eo3xib-kmwn-nn7i-oacs-4a2f-q2ej-hbtj1j.
device /dev/md1 not found (or ignored filtering).
indicates /dev/md1 not recognized, through filter option in /etc/lvm/lvm.conf default.
here details of raid5
sudo mdadm --detail /dev/md1
/dev/md1:
version : 00.90
creation time : tue sep 21 23:49:57 2010
raid level : raid5
array size : 5860543488 (5589.05 gib 6001.20 gb)
used dev size : 1953514496 (1863.02 gib 2000.40 gb)
raid devices : 4
total devices : 4
preferred minor : 1
persistence : superblock persistent
update time : sun jun 26 15:32:00 2011
state : clean
active devices : 4
working devices : 4
failed devices : 0
spare devices : 0
layout : left-symmetric
chunk size : 64k
uuid : 63f9024b:ad62c004:c2ca5516:a7a98e62
events : 0.54
number major minor raiddevice state
0 8 32 0 active sync /dev/sdc
1 8 48 1 active sync /dev/sdd
2 8 0 2 active sync /dev/sda
3 8 16 3 active sync /dev/sdb
$ sudo mdadm --detail /dev/md1p1
/dev/md1p1:
version : 00.90
creation time : tue sep 21 23:49:57 2010
raid level : raid5
array size : 1953512001 (1863.01 gib 2000.40 gb)
used dev size : 1953514496 (1863.02 gib 2000.40 gb)
raid devices : 4
total devices : 4
preferred minor : 1
persistence : superblock persistent
update time : sun jun 26 16:00:21 2011
state : clean
active devices : 4
working devices : 4
failed devices : 0
spare devices : 0
layout : left-symmetric
chunk size : 64k
uuid : 63f9024b:ad62c004:c2ca5516:a7a98e62
events : 0.54
number major minor raiddevice state
0 8 32 0 active sync /dev/sdc
1 8 48 1 active sync /dev/sdd
2 8 0 2 active sync /dev/sda
3 8 16 3 active sync /dev/sdb
still pretty new lvm , raid. don't know /dev/md1p1 come , why /dev/md1 not recognized lvm more.
suggestions?
best,
m
did create partition on array? that's typically p1 come from, or array not assembling properly. have in /etc/mdadm/mdadm.conf file?
code:cat /etc/mdadm/mdadm.conf
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] LVM2 does not recognize /dev/md1 anymore
Ubuntu
Comments
Post a Comment