“zpool status”很明确 – 当前没有在计算机上配置zpool.我有驱动器:@H_502_2@
lrwxrwxrwx. 1 root root 9 Mar 11 14:30 wwn-0x5000cca2440ba0a0 -> ../../sds lrwxrwxrwx. 1 root root 9 Mar 11 14:30 wwn-0x5000cca2440ba1dc -> ../../sdu lrwxrwxrwx. 1 root root 9 Mar 11 14:30 wwn-0x5000cca2440992cc -> ../../sdl
如果我输入:@H_502_2@
zpool create -f asdf /dev/sds /dev/sdu /dev/sdl
它很棒.@H_502_2@
但是,如果我使用WWN ID,我会收到错误,具体取决于我发送的内容:@H_502_2@
zpool create -f asdf wwn-0x5000cca2440ba0a0 wwn-0x5000cca2440ba1dc wwn-0x5000cca2440992cc
产量:@H_502_2@
cannot create 'asdf': no such pool or dataset
zpool create -f asdf mirror wwn-0x5000cca2440ba0a0 wwn-0x5000cca2440ba1dc wwn-0x5000cca2440992cc
产量:@H_502_2@
cannot create 'asdf': one or more devices is currently unavailable
指定完整路径“/ dev / disk / by-id /”WWN会产生相同的结果.@H_502_2@
这是一个误导性的消息.@H_502_2@
如果需要,您可以使用完整路径,但我怀疑您的语法错误…
此外,最简单的方法是从/ dev / disk / by-id /目录中运行命令.@H_502_2@
合理?@H_502_2@
这就是我将构建一个ZFS镜像/条带集:@H_502_2@
zpool create vol0 -o ashift=13 -o autoexpand=on -o autoreplace=on -f
mirror wwn-0x5001e8200262d41c wwn-0x5001e8200262cf48 mirror
wwn-0x5001e8200262cbdc wwn-0x5001e82002758f94 mirror
wwn-0x5001e8200262cf18 wwn-0x5001e82002759358 mirror
wwn-0x5001e8200262d0c4 wwn-0x5001e820027591bc@H_502_2@
所以你的命令行应该如下所示:@H_502_2@
zpool create asdf -f mirror wwn-0x5000cca2440ba0a0 wwn-0x5000cca2440ba1dc mirror wwn-0x5000cca2440992cc@H_502_2@