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.
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
# bootadm boot-pool resync -A
# ldm stop -f domain-name
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:>
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>
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>
... 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
# ldm start domain-name