启动后未安装 LVM 驱动器

启动后未安装 LVM 驱动器

我创建了一个包含三个物理磁盘的 LVM,名为“orcafiler1”。问题是,每次启动后,LVM 驱动器都未安装,我必须手动运行

vgchange -ay orcafiler1

fstab 文件包含

UUID=b57eae64-f270-4825-9ff0-040264fb33ac /               ext3    errors=remount-ro 0       0
# /home was on /dev/sdb1 during installation
UUID=c2d5decb-0615-48bd-9f8f-40eba852329e /home           ext3    defaults        0       0
# swap was on /dev/sda1 during installation
UUID=54582723-d970-46f4-a24d-9c6d25ca16c6 none            swap    sw              0       0
/dev/orcafiler1/orcavolume       /data    ext3  defaults,nobootwait 0 0

我怎样才能在启动时放置它?

操作系统是 Ubuntu 12.04

更新

附加信息

$ dmesg|grep -iE "mapper|lvm"
[    3.711927] device-mapper: uevent: version 1.0.3
[    3.712064] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: [email protected]

输出/etc/lvm/lvm.confhttp://pastebin.mozilla.org/2873320

答案1

尝试根据此模板将自动激活添加到 /etc/lvm/lvm.conf。这可能会有所帮助。我无法清楚地说出原因是什么,检查期间设备不可用或启动时未启用 lvm 激活(呃,ubuntu,不知道那里是怎么做到的,我是 redhat 人)。

# If auto_activation_volume_list is defined, each LV that is to be
# activated is checked against the list while using the autoactivation
# option (--activate ay/-a ay), and if it matches, it is activated.
#   "vgname" and "vgname/lvname" are matched exactly.
#   "@tag" matches any tag set in the LV or VG.
#   "@*" matches if any tag defined on the host is also set in the LV or VG
#
# auto_activation_volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*" ]

相关内容