Senin, 25 Maret 2019

Backup and Recovery O/S solaris 11 using ZFS snapshot

Creating a ZFS Snapshot Archive for Recovery

Activity

Preparation
Capture the root pool properties
# zpool get all rpool

Identify the size and current capacity of the root pool disk
# zpool list
# mount -F nfs 10.20.201.162:/sol10 /sol10
# mount -F nfs 10.20.201.162:/eis /eis

Identify the root pool components.
# zfs list -r rpool

Create a ZFS Snapshot Archive
Create a recursive snapshot of the root pool
# zfs snapshot -r rpool@rpool.snap1

Reduce the snapshot archive by removing the swap and dump snapshots, if desired
# zfs destroy rpool/dump@rpool.snap1
# zfs destroy rpool/swap@rpool.snap1

Send the recursive root pool snapshot to another pool on another system
using NFS, SAN storage, etc

Send the recursive root pool snapshot to a remote system
# zfs send -Rv rpool@rpool.snap1 | gzip > //rpool.snap1.gz


Recreating The Root Pool and Recovering Root Pool Snapshots

Identify and replace the failed root pool disk or system component

Boot the system from the Oracle Solaris 11 installation media
ok boot cdrom
"ok boot rcdrom
.
.
.Welcome to the Oracle Solaris 11 installation menu

1 Install Oracle Solaris
2 Install Additional Drivers
3 Shell
4 Terminal type (currently xterm)
5 Reboot

Please enter a number [1]: 3"

Prepare the root pool disk
Confirm that the replacement root pool disk is visible from the format utility
# format

Recreate the root pool
# zpool create rpool c2t0d0s0

Mount the file system that contains the snapshots

Restore the root pool snapshots
# gzcat /mnt/rpool.snap1.gz | zfs receive -Fv rpool

Set the bootfs property
# zpool set bootfs=rpool/ROOT/solaris rpool

Recreate swap and dump devices, if necessary
# zfs create -V 4G rpool/swap
# zfs create -V 64G rpool/dump"

Mount the BE
# beadm mount solaris /tmp/mnt (bisa di ignore)

Install the boot blocks on the new disk
# installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c1t9d0s0

Unmount the BE
#beadm unmount solaris

Activate the boot environment, if necessary
# beadm list
# beadm activate solaris



Reff
http://docs.oracle.com/cd/E23824_01/html/821-1448/recover-3.html#scrolltoc
http://docs.oracle.com/cd/E23824_01/html/821-1448/recover-4.html#scrolltoc

1 komentar:

  1. Slot Game Provider at Jammy Casino NJ |
    Slot Game Provider at 포천 출장마사지 Jammy Casino 경상북도 출장마사지 NJ 당진 출장안마 · Slot Game Provider 진주 출장안마 at Slot Game Provider at Casino NJ · Slot Game Provider at Slot Game Provider 문경 출장샵 at Slot Game Provider at Slot Game

    BalasHapus