zfs实践

发布时间:2021-07-27 16:01:00 阅读:1177次
https://blog.programster.org/zfs-create-disk-pools

https://techandtrains.com/2013/05/06/replacing-a-disk-in-zfs-mirror/

https://docs.oracle.com/cd/E19253-01/819-5461/gazgd/index.html

https://docs.oracle.com/cd/E19253-01/819-5461/gazgm/index.html

https://www.jianshu.com/p/80ac8c666227

Raid 1

To create a RAID1 pool (or mirror), simply add the command mirror when creating or adding drives. For example:

sudo zpool create  -f [new pool name] mirror /dev/sdb /dev/sdc

sudo zpool add [existing pool name] mirror /dev/sdd /dev/sde

zpool status

zfs list

zpool create -f myraid1 mirror /dev/sda1 /dev/sdb1

root@pve /root# zfs mount -a

模拟

zpool offline myraid1 sda

zpool status myraid1

zpool offline myraid1 sda

mkfs.ext4 /de/sda

zpool online myraid1 sda

zpool replace -f myraid1 sda

zpool online myraid1 sda

zpool status myraid1

如有问题,可以QQ搜索群1028468525加入群聊,欢迎一起研究技术

支付宝 微信

有疑问联系站长,请联系QQ:QQ咨询

转载请注明:zfs实践 出自老鄢博客 | 欢迎分享