LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1563|回复: 4

does snapshot work in as4??

[复制链接]
发表于 2005-11-25 12:05:45 | 显示全部楼层 |阅读模式
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
发表于 2005-11-25 13:12:24 | 显示全部楼层
我没试过快照,还是看看man吧!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-25 14:08:10 | 显示全部楼层
[root@client ~]# lvcreate --size 100m --snapshot --name snap /dev/sda/data
  snapshot: Required device-mapper target(s) not detected in your kernel
  lvcreate: Create a logical volume
谢谢kevin老师。。找到原因了 kernel不支持device-mapper  模块也没
需要自己编译进去~~
回复 支持 反对

使用道具 举报

发表于 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

  1. lvm> lvcreate -s
  2.   snapshot: Required device-mapper target(s) not detected in your kernel
复制代码

需要手工装载模块:

  1. [root@tserver ~]# ls /lib/modules/2.6.9-22.EL/kernel/drivers/md/dm-snapshot.ko
  2. /lib/modules/2.6.9-22.EL/kernel/drivers/md/dm-snapshot.ko
  3. [root@tserver ~]# modprobe -v dm-snapshot
  4. insmod /lib/modules/2.6.9-22.EL/kernel/drivers/md/dm-snapshot.ko
  5. [root@tserver ~]# lvm
  6. lvm> lvcreate -s
  7.   Please specify a logical volume to act as the snapshot origin.
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-25 18:55:14 | 显示全部楼层
谢谢楼上 我对内核模块的名字不熟悉。。所以没找到modprobe的对象~_~
modprobe -l|grep snapshot ..
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表