Hi!
I would like to use only a part of a NVMe for a L2ARC. I found some bits for non Debian True/Freenas, but nothing seems to fit for me (or likely the problem is on the other side of the monitor).
As I would like to have a very basic NAS which is very easy to maintain, I would like to use the GUI for administoring, but I'm not afraid of using the terminal as I'm using different flavors of ubuntu/debian for more than 15 years.
I found that there are some ways to only use a part of a disk:
- make a partition and only use this part
I tried but the GUI in Scale only shows me the whole disk. I made a GPT partition an didin't format it, let the rest untouched.
I tried to disk_resize the disk, but every time the same error message showed up: Something like "a disk of this name doesn't exist or the drive is busy". I used fdisk -k and blkid to try to correctly identify the drives name, and also did this when I was booting the server and enter the console.
Here I guessed that disk_resize is a BSD tool and don't know if it is the right tool also for Truenas on Debian or not.
Also I found a way to use hdparm -Np to change the size the disk itself reports to the system, but this command is only supported upto a specific (sata?) standard. Therefore, I'm hesitated to use it as I don't know if there is the risk to damage the NVMe.
TLDR:
I would appreciate very much any kind help on howto use only a part of the NVMe. For me this seems nice as a bigger L2ARC also uses more RAM, and so I could first use a small portion and later try out if bigger is better.
I have some experience with ubuntu based systems, but don't get me wrong: I need a guiding hand for the correct steps to do: The appropriate commands to correctly identify the disks, for example, and more. This is because I don't know if for Truenas Scale different commands should be used as in ubuntu/debian or not. BSD/Truenas is better documented at this (RC) moment.
Thank you very much for your help!
Kind regards,
Matthias
I would like to use only a part of a NVMe for a L2ARC. I found some bits for non Debian True/Freenas, but nothing seems to fit for me (or likely the problem is on the other side of the monitor).
As I would like to have a very basic NAS which is very easy to maintain, I would like to use the GUI for administoring, but I'm not afraid of using the terminal as I'm using different flavors of ubuntu/debian for more than 15 years.
I found that there are some ways to only use a part of a disk:
- make a partition and only use this part
I tried but the GUI in Scale only shows me the whole disk. I made a GPT partition an didin't format it, let the rest untouched.
I tried to disk_resize the disk, but every time the same error message showed up: Something like "a disk of this name doesn't exist or the drive is busy". I used fdisk -k and blkid to try to correctly identify the drives name, and also did this when I was booting the server and enter the console.
Here I guessed that disk_resize is a BSD tool and don't know if it is the right tool also for Truenas on Debian or not.
Also I found a way to use hdparm -Np to change the size the disk itself reports to the system, but this command is only supported upto a specific (sata?) standard. Therefore, I'm hesitated to use it as I don't know if there is the risk to damage the NVMe.
TLDR:
I would appreciate very much any kind help on howto use only a part of the NVMe. For me this seems nice as a bigger L2ARC also uses more RAM, and so I could first use a small portion and later try out if bigger is better.
I have some experience with ubuntu based systems, but don't get me wrong: I need a guiding hand for the correct steps to do: The appropriate commands to correctly identify the disks, for example, and more. This is because I don't know if for Truenas Scale different commands should be used as in ubuntu/debian or not. BSD/Truenas is better documented at this (RC) moment.
Thank you very much for your help!
Kind regards,
Matthias