I want to use a disk with ZFS and I want to use the best practices...
Both for an SSD and for an HDD
The process:
Delete the disk
Prepare the disk
See the changes we have made so far
Then you can create volumes inside with more options, by example
Questions:
As I understand, the command
make:
a) Create a partition.
b) Leave a space of 1MB at the beginning to make an alignment on the disk that supposedly improves performance.
The commands shown here are correct?
Any other recommendation?
Thank you very much for your answers.
Both for an SSD and for an HDD
The process:
Delete the disk
# gpart destroy -F da0
# dd if=/dev/zero of=/dev/da0 bs=1m count=128
Prepare the disk
# gpart create -s GPT da0
# gpart add -t freebsd-zfs -l storage -a 1M da0
# zpool create -f storage da0
# zfs set mountpoint=/backup storage
See the changes we have made so far
# gpart show da0
Code:
=> 40 1953525088 da0 GPT (932G)
40 2008 - free - (1.0M)
2048 1953521664 1 freebsd-zfs (932G)
1953523712 1416 - free - (708K)
Then you can create volumes inside with more options, by example
# zfs create storage/test
# zfs set mountpoint=/storage/test storage/test
# zfs set quota=100G storage/test
Questions:
As I understand, the command
# gpart add -t freebsd-zfs -l storage -a 1M da0
make:
a) Create a partition.
b) Leave a space of 1MB at the beginning to make an alignment on the disk that supposedly improves performance.
The commands shown here are correct?
Any other recommendation?
Thank you very much for your answers.