ZFS Networker

From Lolly's Wiki
Revision as of 08:04, 15 September 2014 by Lollypop (talk | contribs) (Die Seite wurde neu angelegt: „Kategorie:ZFS Kategorie:Solaris =Backup of ZFS snapshots on Solaris Cluster with Legato/EMC Networker= First of all: 1. Install Solaris client package…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Kategorie:ZFS Kategorie:Solaris

Backup of ZFS snapshots on Solaris Cluster with Legato/EMC Networker

First of all: 1. Install Solaris client package LGTOclnt 2. Register new resource type in cluster. One one node do:

# clrt register -f /usr/sbin/LGTO.clnt.rtr LGTO.clnt

The structure of my RGs is always: RG: <name>-rg ZFS-HASP: <name>-hasp-zfs-res Logical Host: <name>-lh-res Logical Host Name: <name>-lh

So I use scripts like this:

# RGname=sample-rg
# clrs create \
  -t LGTO.clnt \
  -g ${RGname} \
  -p Resource_dependencies=$(basename ${RGname} -rg)-hasp-zfs-res \
  -p clientname=$(basename ${RGname} -rg)-lh \
  -p Network_resource=$(basename ${RGname} -rg)-lh-res \
  -p owned_paths=/local/${RGname} \
  $(basename ${RGname} -rg)-nsr-res

This expands to:

# clrs create \
  -t LGTO.clnt \
  -g sample-rg \
  -p Resource_dependencies=sample-hasp-zfs-res \
  -p clientname=sample-lh \
  -p Network_resource=sample-lh-res \
  -p owned_paths=/local/sample-rg \
  sample-nsr-res
  1. less /nsr/res/TEST_TEAM.res

type: savepnpc; precmd: /global/recover-rg/rman_backup/scripts/networker_scripts/TESTTEAM_networker_precmd.sh; timeout: "12:00pm"; abort precmd with group: Yes;