Hi again, You can backup to a non ZFS NAS and store the backup as files containing a ZFS pool instead of zfs send files. Don’t use zfs send files because they tend to be fragile: one small peace of the file corrupted and all your datas are gone...
I have not read anybody using ZFS on NFS, but I’ve used it for years both on Solaris and SmartOS. It works reliably, and I have successfully been running production zones from the NFS based ZFS pool (I did this when I needed to rebuild the ‘zones' pool on one of our server). Here is how I do it: #1. create NFS mountpoint mkdir /smartos-backups #2. mount with directio to avoid buffer memory problems mount -o forcedirectio nfs.server.com:/export/smartos-backups /smartos-backups #3. create a sparse file on the NFS share that will be used as a ZFS ‘disk image’ (I call them file vdev) mkdir -n 400G /smartos-backups/smarts2_backup.vdev #4. create the ZFS pool zpool create smarts2_backup /smartos-backups/smarts2_backup.vdev #5. now use your favorite ZFS replication script to replicate daily to the smarts_backup pool. #6. for safety, you might want to snapshot your NAS share regularly from the NAS (so your server can’t erase your backup pool by mistake) #when rebooting the SmartOS server you need to remount the backup pool: #create NFS mountpoint mkdir /smartos-backups #mount with directio to avoid buffer memory problems mount -o forcedirectio nfs.server.com:/export/smartos-backups /smartos-backups #import backup pool zpool import -d /smartos-backups/ smarts2_backup # if the backup pool start to be full, grow the backup pool from 400G to 800GB: dd if=/dev/null of=//smartos-backups/smarts2_backup.vdev bs=1048576 oseek=800000 count=0 zpool online -e smarts2_backup /smartos-backups/smarts2_backup.vdev Hope this can be useful to someone out there. I’d be glad to hear any comments on this method. Thanks -- Michel > On 13 janv. 2016, at 21:56, Dirk Steinberg <[email protected]> wrote: > > Hi, > >> Am 13.01.2016 um 21:27 schrieb Rickie via smartos-discuss >> <[email protected]>: >> >> Hi All, >> >> I'm considering my options for backing up my SmartOS zones pool. >> >> My options seem to be - >> * Backup to Directly Attached Storage via ESATA or USB 3 > > eSATA should work. > > USB3 is not supported by SmartOS (last time I checked). > I would *LOVE* to see USB3 support (and UASP for that matter) > in SmartOS. Maybe someone in the know could comment on this. > >> * Backup to a NAS on the network. > > Most likely you will want to use „zfs send/recv“ to back up > snapshots incrementally from your zones pool. This will > NOT work with a NAS unless that NAS happens to be > ZFS-based (e.g. FreeNAS). Even then you should > check for zpool versions and feature-flags and make sure > the the NAS fully understands the zfs send stream. > I would also actually test a restore from the NAS to SmartOS > to make sure everything is really restored properly. > > I am always a little concerned about doing ZFS backups > between different platforms. For example I am running > OpenZFS on OSX and I am unsure if I can trust my > SmartOS backups into an OSX pool. Some properties are > handled differently on OSX. > > Does someone have experience with doing ZFS backups across > different ZFS platforms? > > Cheers > Dirk > >> What are other back options? >> What are the pros and cons of each? >> >> Thanks >> >> Rickie >> > > ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
