In order to make a highly available (HA) server, FreeBSD can utilize techniques for a highly available storage (HAST) that syncs data between two hosts, essentially a raid1 cross-server. To make a virtual IP address that always follows the master node, common address redundancy protocol (CARP) is used. HAST can only be used for two … Read More →
Tag Archives: Mirror
Expanding a zpool and adding ZIL (log) and L2ARC (cache)
As the nas zpool responsible for storing media and documents have been growing out of its space lately it was time to do something about it. This is how it looked previously. # zpool list san NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT san 3.62T 2.93T 710G 80% 1.00x ONLINE – # zpool status … Read More →
Setting up a mirror through geom on a GPT labeled disk
Synchronise the disklayout gpart backup ada0 > /tmp/ada0.gpt gpart restore -F /dev/ada1 < /tmp/ada0.gpt Check that everything went as expected. gpart show Add the geom kernel module as loaded on startup echo ‘geom_mirror_load=”YES”‘ >> /boot/loader.conf Add bootcode to the second disk gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 /dev/ada1 Reboot into single-user mode. Then … Read More →
Adding a disk to an existing zpool
zpool attach <zpool name> <existing device> <new device> Where <existing device> is gpt/disk0 in the zpool status output below. pool: zroot state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 gpt/disk0 ONLINE 0 0 0 The pool will create a 1-way mirror (essentially RAID1) using the now two … Read More →
Recent Comments