Zfs

zfs 將線性轉換為 raidz5 或重建

  • April 3, 2016

我可以將我的線性跨度轉換為 raidz-5 嗎?我終於有了足夠的硬碟驅動器,並且真的不想用他們需要保存的備份數據來重新填充它們。

所以目前,我建立的命令不是raid,而是使用線性跨度

   $ zpool status
     pool: san
    state: ONLINE
   status: Some supported features are not enabled on the pool. The pool can
           still be used, but some features are unavailable.
   action: Enable all features using 'zpool upgrade'. Once this is done,
           the pool may no longer be accessible by software that does not support
           the features. See zpool-features(5) for details.
     scan: scrub repaired 0 in 7h28m with 0 errors on Sat Apr  2 02:58:32 2016
   config:

       NAME        STATE     READ WRITE CKSUM
       san         ONLINE       0     0     0
         sdd       ONLINE       0     0     0
         sdc       ONLINE       0     0     0
         sde       ONLINE       0     0     0

errors: No known data errors

我可以再添加 2tb,將所有論文直接轉換為 raidz5,這樣我的校驗和和 crc 都將變得有價值,而不會刪除我的數據?

$ zfs list
NAME                                USED  AVAIL  REFER  MOUNTPOINT
san                                4.91T   371G  2.85M  /san

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0   1.8T  0 disk
`-sda1   8:1    0   1.8T  0 part
sdb      8:16   0 232.9G  0 disk
|-sdb1   8:17   0  1007K  0 part
|-sdb2   8:18   0     4G  0 part [SWAP]
|-sdb3   8:19   0    20G  0 part /
|-sdb4   8:20   0 208.9G  0 part /home
`-sdb5   8:21   0   3.1M  0 part
sdc      8:32   0   1.8T  0 disk
|-sdc1   8:33   0   1.8T  0 part
`-sdc9   8:41   0     8M  0 part
sdd      8:48   0   1.8T  0 disk
|-sdd1   8:49   0   1.8T  0 part
`-sdd9   8:57   0     8M  0 part
sde      8:64   0   1.8T  0 disk
|-sde1   8:65   0   1.8T  0 part
`-sde9   8:73   0     8M  0 part

sda 是新人。

不,除了添加驅動器以鏡像現有集(您需要三個)或使用對您最有意義的 ZFS 保護級別進行重建之外,您無法對現有設備執行任何操作。

引用自:https://serverfault.com/questions/767903