안녕하세요, vdev를 확장하려고 하는데 이 작업을 수행하는 데 어떤 명령이 필요한지 혼란스럽습니다. 이게 내가 가진 거야
pool: DATA01
state: ONLINE
scan: scrub repaired 0B in 0 days 07:43:11 with 0 errors on Sun Aug 14 08:07:15 2022
config:
NAME STATE READ WRITE CKSUM
DATA01 ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
/dev/sda ONLINE 0 0 0
/dev/sdb ONLINE 0 0 0
/dev/sdc ONLINE 0 0 0
그것이 내가 원하는 것입니다(추가 드라이브).
pool: DATA01
state: ONLINE
scan: scrub repaired 0B in 0 days 07:43:11 with 0 errors on Sun Aug 14 08:07:15 2022
config:
NAME STATE READ WRITE CKSUM
DATA01 ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
/dev/sda ONLINE 0 0 0
/dev/sdb ONLINE 0 0 0
/dev/sdc ONLINE 0 0 0
/dev/sdd ONLINE 0 0 0
add 명령은 raidz2-1과 같은 새로운 vdev를 생성할 때만 사용되는 것으로 보이며, Attach 명령은 미러에만 사용되는 것으로 보입니다.
미리 감사드립니다.
zpool add [-fgLnP] [-o property=value] pool vdev...
Adds the specified virtual devices to the given pool. The vdev specification is described in the Virtual Devices section. The behavior of the -f option, and the de‐
vice checks performed are described in the zpool create subcommand.
zpool attach [-f] [-o property=value] pool device new_device
Attaches new_device to the existing device. The existing device cannot be part of a raidz configuration. If device is not currently part of a mirrored configuration,
device automatically transforms into a two-way mirror of device and new_device. If device is part of a two-way mirror, attaching new_device creates a three-way mir‐
ror, and so on. In either case, new_device begins to resilver immediately.
답변1
Google 사용 - zfs에는 현재 그러한 기능이 없습니다.
https://arstechnica.com/gadgets/2021/06/raidz-expansion-code-lands-in-openzfs-master