How to create root pool snapshots in solaris?



  • Create space on a remote system to store the snapshots:

    remote_host# zfs create rpool/snapshots
    

    Share that space to the local system (the first command is on one line):

    remote_host# zfs set sharenfs=’rw=local_host,root=local_host’ rpool/snapshots
    remote_host# share
    -               /rpool/snapshots   sec=sys,rw=192.168.1.90,root=192.168.1.90   "                      "
    

    On the local system, create a recursive snapshot of the root pool:

    local_system# zfs snapshot -r rpool@0306
    

    Check:

    local_system# zfs list
    NAME                            USED  AVAIL  REFER  MOUNTPOINT
    rpool                          8.91G  2.84G  35.5K  /rpool
    rpool@0306                         0      -  35.5K  -
    rpool/ROOT                     5.41G  2.84G    18K  legacy
    rpool/ROOT@0306                    0      -    18K  -
    rpool/ROOT/s10x_u7wos_08       5.41G  2.84G  5.41G  /
    rpool/ROOT/s10x_u7wos_08@0306   420K      -  5.41G  -
    rpool/dump                      512M  2.84G   512M  -
    rpool/dump@0306                    0      -   512M  -
    rpool/export                   1.16G  2.84G  1.16G  /export
    rpool/export@0306                  0      -  1.16G  -
    rpool/export/home                32K  2.84G    32K  /export/home
    rpool/export/home@0306             0      -    32K  -
    rpool/swap                      852M  3.34G   340M  -
    rpool/swap@0306                    0      -   340M  -
    rpool/swap2                    1.00G  3.84G    16K  -
    rpool/swap2@0306                   0      -    16K  -
    test_pool                       158K  1.95G    21K  /test_pool
    test_pool/fs1                    18K  1.95G    18K  /test_pool/fs1
    test_pool/fs2                    18K  1.95G    18K  /test_pool/fs2
    

    Send the root pool snapshots to the remote system i.e. (one line):

    local_host# zfs send -Rv rpool@0306 > /net/remote_system/rpool/snapshots/rpool.0306
    sending from @ to rpool@0306
    sending from @ to rpool/dump@0306
    sending from @ to rpool/ROOT@0306
    sending from @ to rpool/ROOT/s10x_u7wos_08@0306
    


© Lightnetics 2024