• About
  • Manuals
  • Network
Confessions of a FreeBSD hacker Various tips & tricks about computers in general and FreeBSD in particular
Confessions of a FreeBSD hacker

Category Archives: Freebsd

Expanding a zpool and adding ZIL (log) and L2ARC (cache)

February 22, 2013 23:55 / Leave a Comment / Magnus Strahlert

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 →

Posted in: FreeBSD, ZFS / Tagged: freebsd, mirror, raid, ssd, zfs, zpool

Chrooting FTP users

February 19, 2013 23:07 / Leave a Comment / Magnus Strahlert

The builtin ftp daemon in FreeBSD is able to lock users in secured directories by using chroot and is really simple to setup. There is a standardgroup called ftp with the groupid 14. Let’s make another group called ftpchroot as well. pw groupadd ftpchroot -g 15 Then create a filearea where the user should be … Read More →

Posted in: FreeBSD / Tagged: chroot, freebsd, ftp, ftpchroot

Installing FreeBSD 9.1 using root on ZFS and GPT disks

February 1, 2013 23:38 / Leave a Comment / Magnus Strahlert

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 →

Posted in: FreeBSD, ZFS / Tagged: freebsd, gpt, install, zfs, zpool, zroot

Diskless /var

January 28, 2013 21:53 / Leave a Comment / Magnus Strahlert

On root filesystems that’s served from flash memory it may be advisable to keep off heavy writes from them. By putting /var on a ramdrive you can greatly increase the expected lifetime of an ssd or a usb memorystick. Initial steps A snapshot of /var needs to be created. On true diskless systems FreeBSD ramdrive … Read More →

Posted in: FreeBSD / Tagged: freebsd, ramdrive, snapshot, ssd, usb

Setting up a PXE bootserver

December 16, 2012 16:05 / Leave a Comment / Magnus Strahlert

Notes on installing a PXE bootserver that boots diskless terminalservers by use of nfsroot. Three machines have been set up for this: Name IP bootserver 192.168.65.1 ts1 192.168.65.11 ts2 192.168.65.12 bootserver A typical install of FreeBSD have been used. Only including base, generic kernel and lib32. After it’s installed, freebsd-update have been applied to fetch … Read More →

Posted in: FreeBSD / Tagged: freebsd, nfsroot, pxe, ssh, terminalserver

Post Navigation

« Previous 1 2 3 Next »

Recent Posts

  • Takeaways utilising VFIO in a KVM virtual guest
  • Converting VM from ESXi to KVM with iSCSI storage
  • Deploying oVirt in self-hosted mode
  • Ansible playbook for handling perl on FreeBSD
  • iSCSI: Migrating from istgt to ctld

Tags

ansible backup carp chroot cluster cross-server esxi freebsd ftp ftpchroot gpt grub hast install iscsi kvm linux lun lvm mirror network nfs nfsroot ovirt pxe raid ramdrive raspberrypi snapshot ssd ssh terminalserver usb vfio virtio virtualbox vlan vmware volumes winxp zfs zpool zroot

Archives

  • July 2019
  • March 2018
  • February 2018
  • July 2017
  • February 2016
  • January 2015
  • August 2014
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • September 2012
  • July 2012
  • April 2012
  • March 2012
  • November 2011
  • August 2011

Recent Comments

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    © Copyright 2013-2016 - Magnus Strahlert
    Infinity Theme by DesignCoral / WordPress