Tuesday, October 7, 2014

ZFSSA: HCC, Clone a File System

  • Upgrade to or install 11.2.0.3
  • Install patch 13041324 or 11.20.3 Patch set update (PSU) 13343438 which contains 13041324. and Verify that the patch is installed.

-bash-4.1$ ./opatch lsinventory

  • Setup snmp service for the ZFS appliance.
Click on Configuration->Services->System Settings.
Click on SNMP.Set up the following info:
  • SNMP community name :public
  • Authorized network : 0.0.0.0/0
  • Appliance Contact: ritu.kamboj@oracle.com
  • Trap destination: 127.0.0.1
On right side, click on SNMP:Help to get help on the fields:
SNMP community nameThis is the community string that SNMP clients must provide when connecting
Authorized networkThe network which is allowed to query the SNMP server, in CIDR notation. To block all clients, use 127.0.0.1/8 (localhost only); to allow all clients, use 0.0.0.0/0
Appliance contactThe string served by MIB-II OID .1.3.6.1.2.1.1.4.0. Setting this to a person or department's name will help SNMP clients determine who is responsible for this appliance
Trap destinationsThe hostnames or IP addresses for sending SNMP traps to. Custom SNMP traps can be configured in the Alerts section. Set this to 127.0.0.1
Go back to services and restart the snmp service

On the server side, ensure that SNMP service is enabled:
# svcs | grep snmp
online         Jun_30   svc:/application/management/net-snmp:default
Issue the snmp get command to ensure that snmp services are operational.
$ /usr/bin/snmpget -v1 -c public 10.129.195.209 1.3.6.1.4.1.42.2.225.1.4.2.0
SNMPv2-SMI::enterprises.42.2.225.1.4.2.0 = STRING: "Sun ZFS Storage 7420"

Refer to ZFS snmp docs for additional info about installed MIB:
  •  Verify dNFS is configured by querying v$dnfs_servers
Refer to following DOC to configure DNFS
Step by Step - Configure Direct NFS Client (DNFS) on Linux (11g) (Doc ID 762374.1)

Check alert log file for the following message to ensure that dNFS is successfully configured :
grep -i nfs alert*
alert_hcc.log:Oracle instance running with ODM: Oracle Direct NFS ODM Library Ve

rsion 3.0
alert_hcc.log:Direct NFS: channel id [0] path [10.129.195.209] to filer [10.129.
195.209] via local [] is UP
alert_hcc.log:Direct NFS: channel id [1] path [10.129.195.209] to filer [10.129.
195.209] via local [] is UP


Additonal info:

  

./opatch[103]: whereis: not found [No such file or directory]
Invoking OPatch 11.2.0.1.7
Oracle Interim Patch Installer version 11.2.0.1.7
Copyright (c) 2011, Oracle Corporation.  All rights reserved.
Oracle Home       : /oraclePool/11g/u01/app/oracle/product/12.1.0/dbhome_1
Central Inventory : /oraclePool/12c/u01/app/oraInventory
   from           : /var/opt/oracle/oraInst.loc
OPatch version    : 11.2.0.1.7
OUI version       : 11.2.0.3.0
Log file location : /oraclePool/11g/u01/app/oracle/product/12.1.0/dbhome_1/cfgtoollogs/opatch/opatch2012-07-12_18-44-26PM.log
Lsinventory Output file location : /oraclePool/11g/u01/app/oracle/product/12.1.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2012-07-12_18-44-26PM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (1):
Oracle Database 11g                                                  11.2.0.3.0
There are 1 products installed in this Oracle Home.
Interim patches (1) :
Patch  13343438     : applied on Thu Jul 05 16:53:14 GMT-08:00 2012
Unique Patch ID:  14273862
Patch Description:  "Database Patch Set Update : 11.2.0.3.1 (13343438)"
   Created on 30 Dec 2011, 03:13:30 hrs PST8PDT
   Bugs fixed:
     12847466, 13499128, 12718090, 12917230, 13035804, 12938841, 13528551
     12861463, 12620823, 12950644, 13466801, 13041324, 12998795, 13343438
     13492735, 13362079, 9873405, 12797765, 12834027, 9703627, 12905058
--------------------------------------------------------------------------------
OPatch succeeded.

-








  • On ZFSSA there exist a project named oracle. It has a FS named test which is mounted as /export/test. Follow the following step to create a snapshot of /export/test and clone that snapshot



  • Create a new project named clone. (Shares->Project->Clone)
  • Snapshot the project that you need to clone. (Shares->Shares->Edit oracle Project->Create a snapshot snap1)
  • Promote the snapshot to a clone (Shares->Shares->Edit Oracle/test->Snapshot->Edit snap1 ->Select Clone snapshot as a new share)
  • Mount the new FS


No comments:

Post a Comment