Changes between Version 6 and Version 7 of FreeBSD ZFS Backup & Restore Full Instructions


Ignore:
Timestamp:
02/01/24 05:57:48 (4 months ago)
Author:
Paul Kulda
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FreeBSD ZFS Backup & Restore Full Instructions

    v6 v7  
    3535* to restore a backup file to the zfs volume do the following :
    3636  * You need to load FreeBSD from the cd as per usual, only the minimum install is required
     37  * Make sure that you are only installing to one hdd,
     38    * i had extra ones and the recovery did not work.
     39    * as the boot loader was looking for other hdd's that did not exist.
    3740  * When you load FreeBSD on a new drive intended for the restore
    3841  * You will need to duplicate the structure of the way it was backed up.
    39   * for example i had to do a bunch of '''zfs destroy <mount i dont need>'''
     42  * for example i had to do a bunch of '''zfs destroy <mount point(s) i dont need>'''
     43    * you need to do a normal book after installing FreeBSD
     44    * and remove the pools
     45    * after removing the extra pools (if needed)
     46    * reboot and make sure the pool structure is exactly the same as the backup was.
    4047  * before i could restore the file.
    41   * also keep in mind you probablyu have to backup all mount points seperately and restore them seperately ?
     48  * also keep in mind you probably have to backup all mount points seperately and restore them seperately ?
     49  * (why i took the time to strip the extra zfs mount points down to a single one)
    4250  * Launch the Installer CD (ZFS Versions must match or be higher, best to use the same Installer for all)
    43     * Once logged into the LiveCD you WILL need to '''zfspool import zroot'''
     51    * Once logged into the LiveCD you WILL need to '''zpool import zroot'''
    4452    * It will not mount but it loads the drivers needed to access the volume
    45     * next you will need to make a mount point for your data
     53    * You should get an error saying unable to mount to read only file system, this is GOOD!
     54    * next you will need to make a mount point for your data (the file that has your drive backup)
    4655    * use /tmp/<mountpoint> as it is already in ram and will allow mounts.
    4756    * i used '''/tmp/tmp''' for example