I'm trying to add ZIL to ZFS, but it fails with error message in topic.
I have tried different names for the log partition, no luck.
Adding cache worked first try,
Code:
root@pve:~# zpool status -v
pool: rpool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sda2 ONLINE 0 0 0
sdb2 ONLINE 0 0 0
errors: No known data errors
root@pve:~# zpool add rpool log nvme0n1p1
cannot add to 'rpool': one or more devices is currently unavailable
root@pve:~#
Adding cache worked first try,
Code:
root@pve:~# zpool add rpool cache nvme0n1p2
root@pve:~# zpool status -v
pool: rpool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sda2 ONLINE 0 0 0
sdb2 ONLINE 0 0 0
cache
nvme0n1p2 ONLINE 0 0 0
errors: No known data errors
root@pve:~#
Code:
root@pve:~# fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1AAD40D7-7D88-4B94-83FF-DFB2B1C714B5
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 16000 13953 6.8M Linux filesystem
/dev/nvme0n1p2 16384 160000 143617 70.1M Linux filesystem
/dev/nvme0n1p3 161792 488397134 488235343 232.8G Linux filesystem
root@pve:~#