Deciding to upgrade my NAS from FreeBSD 9.2-RELEASE to 10.2-RELEASE, I wanted to try out the new native iSCSI initiator. As my iSCSI-network is physically separated by vlan I don’t bother with chap-authentication. I allow the entire network connect to the presented targets. The only part of the config previously used in istgt that couldn’t … Read More →
Category Archives: Zfs
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 →
Installing FreeBSD 9.1 using root on ZFS and GPT disks
This is partly based on the excellent guide at http://daemon-notes.com/articles/system/install-zfs/begin. Boot with FreeBSD 9.1 installer and select Live CD when the installer starts. Identify the disks you want to install to. SATA disks are named /dev/adaX and USB pendrives and SCSI drives are named /dev/daX. dmesg|egrep (ada|da) Of which output could look like this: da0 … Read More →
Copying a ZFS volume across a server
Take a snapshot of the volume on source server: root@source# zfs snapshot zfs_dataset/volume@now Send the snapshot to the target server. Target zfs_dataset can be different: root@source# zfs send zfs_dataset/volume@now | ssh target zfs recieve zfs_dataset/volume@now Clone the snapshot with the supposed name of the new volume zfs clone zfs_dataset/volume@now zfs_dataset/clone Promote it, in effect switching … 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