|
发表于 2005-11-25 17:10:24
|
显示全部楼层
Post by cxfcxf
i make a vg named test and a lv named data
path is /dev/test/data
i mount /dev/test/data to /data with read only mode
then i want to make a snapshot for /data
typed command
lvcreate -s -L 10m -n snap /dev/test/data
ok...nothing happen
it 's showed a help file to tell me my command is wrong...
but i can't find the mistake
默认内核不支持snapshot
- lvm> lvcreate -s
- snapshot: Required device-mapper target(s) not detected in your kernel
复制代码
需要手工装载模块:
- [root@tserver ~]# ls /lib/modules/2.6.9-22.EL/kernel/drivers/md/dm-snapshot.ko
- /lib/modules/2.6.9-22.EL/kernel/drivers/md/dm-snapshot.ko
- [root@tserver ~]# modprobe -v dm-snapshot
- insmod /lib/modules/2.6.9-22.EL/kernel/drivers/md/dm-snapshot.ko
- [root@tserver ~]# lvm
- lvm> lvcreate -s
- Please specify a logical volume to act as the snapshot origin.
复制代码 |
|