Go to main content

Oracle SuperCluster Configuration Backup Utility - Recovery Guide

Exit Print View

Updated: June 2020
 
 

Roll Back the Domain's rpool

If the data located in the rpool has been damaged or lost, or if the rpool has been destroyed, this step provides instructions on how to restore this data.

During the backup, a ZFS snapshot of the domain's rpool is created on the ZFS storage appliance. The restore procedure consists of rolling back this snapshot.

  1. Locate the snapshot.

    The information required to locate the snapshot is available in the osc-config-backup/domains/hostname/hostname.snaphots.date.info file, where hostname is the domain's host name. The file includes the ZFS storage appliance head to connect to, the project, and the LUN. For example:

    root# su - oscbackR
    oscbackR$ cd osc-config-backup/domains/hostname
    oscbackR$ grep rpool hostname.snapshots.date.info
         Pool: rpool ; Device: c0t600144F0A67C70FB0000575AA4E90004d0 ; \
         Head: ssc1-h1-storadm ; Project: sc1-ldomfs ;                 \
         LUN name: xyx-io-hostname_rpool ;                        \
         Snapshot: 2016.06.14.05.18.osc-config-backup
    
  2. From the primary domain, determine if the domain is bootable.
    • If the domain is running, you do not need to roll back the snapshot. Instead, resync the boot pool with this command, and do not perform the remaining steps in this procedure.
      # bootadm boot-pool resync -A
      
    • If the domain is having problems booting the boot pool, stop the domain and perform the remaining steps in this procedure.
      # ldm stop -f domain-name
      
  3. Connect as root to the ZFS storage appliance head.

    In this example, the head is ssc1-h1-storadm.

    # ssh ssc1-h1-storadm
         Last login: Tue Jun 14 13:28:56 2016 from 10.129.76.2
         ssc1-h1-storadm:> 
    
  4. Go to the project.

    The project name was identified in Step 1 (select sc1-ldomfs in this example).

    ssc1-h1-storadm:> shares
         ssc1-h1-storadm:shares> select sc1-ldomfs
         ssc1-h1-storadm:shares sc1-ldomfs>
  5. Select the LUN and snapshot.

    The LUN and snapshot were identified in Step 1.

    ... sc1-ldomfs> select xyx-io-hostname_rpool
    ... sc1-ldomfs/xyx-io-hostname_rpool> snapshots
    ... sc1-ldomfs/xyx-io-hostname_rpool snapshots> select 2016.06.14.05.18.osc-config-backup
    ... sc1-ldomfs/xyx-io-hostname_rpool@2016.06.14.05.18.osc-config-backup>
    
  6. Roll back the snapshot.
    ... sc1-ldomfs/xyx-io-hostname_rpool@2016.06.14.05.18.osc-config-backup> rollback
    Rolling back will revert data to snapshot, destroying newer data. 
    Active initiators will be disconnected.
    Continue? (Y/N) Y
    
  7. From the primary domain, restart the I/O Domain.
    # ldm start domain-name