AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Netatalk github3/13/2023 ![]() v timemachine-var-lib-samba:/var/lib/samba \ e SMB_VFS_OBJECTS= "acl_xattr fruit streams_xattr" \ Below is an example of using /raid/timemachine as a backup location for Samba without Avahi discovery. The one I've had luck with is, which allows you to run either Samba (SMB) or AFP (netatalk) and enable/disable Avahi discovery. (See Docker's docs if you need to install Docker). Now we can run Samba in a docker container to expose a folder ( /raid/timemachine) on the RAID array as an SMB share. $ echo '/dev/md0 /raid ext4 defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab # append to /etc/fstab to mount at every boot $ sudo mdadm -detail -scan | sudo tee -a /etc/mdadm/nf # set up configs, format the array (ext4), and mount $ sudo mdadm -create -verbose /dev/md0 -level=1 -raid-devices=2 /dev/sdb /dev/sdc $ wipefs -a /dev/sdc # Did you read the warning above? # create RAID1 array and verify $ wipefs -a /dev/sdb # Did you read the warning above? $ lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT Here's what I did to erase my two disks (assigned at /dev/sdb and /dev/sdc), set up a RAID1 array (which I call /dev/md0), and format and mount the array at /raid.īE WARNED: the instructions below will wipe both disks prior to setting up the array. For my old Debian setup I roughly followed this guide. Configure the raid arrayĭigital Ocean has a great article on setting up RAID arrays on Ubuntu. I've included an overview of my new setup on NixOS at the bottom, though much of the RAID setup is still pertinent. ![]() On my new machine with NixOS, I'm using the old AFP protocol (instead of SMB) running outside of a container. In order to backup to the RAID array, I've set up Time Machine over SMB to back up my Macbook and I've written a few other services to do things like backup my repositories on GitHub (work in progress).īelow, I'll go through how to set up a RAID array and run a container to expose a folder on the array as an SMB share for Time Machine backups. Since they are in RAID1, I only have 2TB of usable space but I can sustain a single drive failure. If you are not used to fix things on a command shell, I recommend using SMB for now.My main backup mechanism is a pair of Western Digital Red 2TB hard drives (arranged in RAID1) in my desktop at home. It works, but you need to do all configurations manually. You will get a running AFP-server without control via the omv GUI. Then recheck your configuration and then unmask with If you see a message systemctl start netatalkįailed to start rvice: Unit rvice is masked. You will need to define your shares manually in /usr/local/etc/afp.conf like Do NOT try to install the old plugin, it won't work. configure -with-init-style=debian-systemd -without-libevent -without-tdb -with-cracklib -enable-krbV-uam -with-pam-confdir=/etc/pam.d -with-dbus-sysconf-dir=/etc/dbus-1/system.d This is nice, but has much problems with headless installations like omv. Most ready-made binaries are compiled with tracker support for Spotlight. If you really need Netatalk, you should NOT use the pre-built debian binaries provided by several sites. The old omv plugin uses /etc/netatalk/* for the configuration - which is for version 3.x use /usr/local/etc/afp.conf for _all_ configurations.
0 Comments
Read More
Leave a Reply. |