Build a home server - take two, part 1.
The new approach - OS install
I have two 60 GB SSD disks. So far, after having installed OS, VirtualBox and other applications, I have used 3,5 GB on root. My guess is that when completed I will have used up cirka 4 GB on root. It seems kind of hefty to dedicate two 60 GB quite expensive SSD disks and not fully use them. And I really want to take advantage of the nifty features ZIL and L2ARC...
You do not have to dedicate whole disks to ZFS. But if you do, ZFS uses the disks cache. That is of course an advantage. ZFS can also use partitions, which I will use to fully utilize the SSD disks.
Follow this (among many) guide to create a ZFS root mirror: http://www.freebsdwiki.net/index.php/ZFS,_booting_from. The only thing I did different was partitioning:
After reboot you should have an output similar to this:
Part 2 - Configure basic monitoring.
I have two 60 GB SSD disks. So far, after having installed OS, VirtualBox and other applications, I have used 3,5 GB on root. My guess is that when completed I will have used up cirka 4 GB on root. It seems kind of hefty to dedicate two 60 GB quite expensive SSD disks and not fully use them. And I really want to take advantage of the nifty features ZIL and L2ARC...
You do not have to dedicate whole disks to ZFS. But if you do, ZFS uses the disks cache. That is of course an advantage. ZFS can also use partitions, which I will use to fully utilize the SSD disks.
Follow this (among many) guide to create a ZFS root mirror: http://www.freebsdwiki.net/index.php/ZFS,_booting_from. The only thing I did different was partitioning:
# gpart add -b 34 -s 128 -t freebsd-boot -l boot0 ada0 # gpart add -s 12288M -t freebsd-swap -l swap0 ada0 # gpart add -s 16G -t freebsd-zfs -l root0 ada0 # gpart add -s 4096M -t freebsd-zfs -l zil0 ada0 # gpart add -t freebsd-zfs -l cache0 ada0 |
[root@ohlala ~]# gpart show |
/etc/fstab
:
/dev/gpt/swap0 none swap sw 0 0
/dev/gpt/swap1 none swap sw 0 0
After reboot you should have an output similar to this:
[root@ohlala ~]# df -h
Filesystem Size Used Avail Capacity Mounted on
zroot 12G 345M 12G 3% /
devfs 1.0k 1.0k 0B 100% /dev
zroot/home 12G 46M 12G 0% /home
zroot/tmp 12G 55k 12G 0% /tmp
zroot/usr 15G 3.1G 12G 20% /usr
zroot/var 12G 97M 12G 1% /var
[root@ohlala ~]#
Part 2 - Configure basic monitoring.
Kommentarer
Trackback