johannes96
Cadet
- Joined
- Dec 1, 2021
- Messages
- 2
Hi,
I'm trying to add another disk to my existing pool to convert the single stripe vdev to a mirror vdev.
My current simple pool layout looks like:
my disk ids:
sdd is already part of the pool. sdc is the empty new drive. I tried to add the disk by "name" and by "id" neither did work.
I think I'm a little bit lost between disk names / ids and partition uuids. The output of "zpool status" looks like the vdev was create on partition level. Is this assumption corret?
Could anyone give me a hint how to fix this?
Best regards
Johannes
I'm trying to add another disk to my existing pool to convert the single stripe vdev to a mirror vdev.
My current simple pool layout looks like:
root@truenas:~# zpool status zhdd
pool: zhdd
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
zhdd ONLINE 0 0 0
42238b1c-7028-4d9b-9b0d-852e9ff41811 ONLINE 0 0 0
errors: No known data errors
my disk ids:
ls -l /dev/disk/by-id
ata-ST6000VN0033-2EE110_XXXXXXXX -> ../../sdd
ata-WDC_WD60EZRZ-00RWYB1_WD-XXXXXXXXX -> ../../sdc
sdd is already part of the pool. sdc is the empty new drive. I tried to add the disk by "name" and by "id" neither did work.
zpool attach zhdd /dev/disk/by-id/ata-ST6000VN0033-2EE110_ZAD90GZJ /dev/disk/by-id/ata-WDC_WD60EZRZ-00RWYB1_WD-XXXXXXXXX
cannot attach /dev/disk/by-id/ata-WDC_WD60EZRZ-00RWYB1_WD-WX71D6589HR4 to /dev/disk/by-id/ata-ST6000VN0033-2EE110_XXXXXXXX : no such device in pool
root@truenas:~# zpool attach zhdd /dev/sdd /dev/sdc
cannot attach /dev/sdc to /dev/sdd: no such device in pool
I think I'm a little bit lost between disk names / ids and partition uuids. The output of "zpool status" looks like the vdev was create on partition level. Is this assumption corret?
Could anyone give me a hint how to fix this?
Best regards
Johannes