天天看点

[FreeBSD] 挂载多路径存储

[FreeBSD] 挂载多路径存储

总结:

1 gmultipath status          # 查看多路径
2 camcontrol devlist         #查看lun
3 camcontrol inquiry da0 -S      # 查看是否同一设备
4 camcontrol inquiry da20 -S
5 camcontrol inquiry da40 -S
6 gmultipath label -v hp1 /dev/da0 /dev/da20 /dev/da40     # 创建hp1
7 gmultipath label -v hp20 /dev/da19 /dev/da39 /dev/da59 /dev/da79
8 zpool create newstorage /dev/multipath/hp1 … hp20   # 创建zpool  newstorage

zfs create newstorage/newstorage

zfs list