Setup and Testing the ZFS Simulator

zfs_storage

ZFS Storage is a great hardware and an excellent platform for example to do disk based Oracle backups. To get a feeling how this technology works it is a good idea to do a setup with the ready to run Virtualbox ZFS Appliance.

You find the complete Software and Setup documentation here

http://www.oracle.com/technetwork/server-storage/sun-unified-storage/downloads/sun-simulator-1368816.html

Please follow the documentation for the setting up the ZFS simulator.

Personal note: Per default the network setup is done via “host only” interface inside the virtualbox. I use in my own Virtualbox World only fixed IP-Addresses, so I changed the default interface to “network bridge” and give the host a fixed IP-Address. So it was very easy to integrate the Virtualbox in my environment.  The second comment is about the installed Firefox Version. I started with Firefox Version 31 and get a lot of SSL errors during the start via https://zfs.localdomain:215/. So I did a update to Firefox 38 and then the browser could easily handle the SSL connect.

ZFS Simulator is up and running what’s next:

Start the Browser User Interface (BUI) to create a new share on the ZFS unit. The share is actually created independently of the protocol, so it gives more flexibility to interact with this share via NFS, and also FTP and Samba is possible.

ZFS_Setup_Project

Overview about the Share

ZFS_OraBackup

Next I start the NFS services on my the Linux Server


chkconfig service nfs

service status nfs

service nfs start

Here I create a mountpoint  and change the fstab on the Linux Server


mkdir –p /mnt/OraBackup

/etc/fstab
zfs.localdomain:/export/OraBackup /mnt/OraBackup nfs rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=0,vers=3,timeo=600    1 2

That’s it. Finally I mount the filesystem.

mount /mnt/OraBackup

Now I start to do some tests with the ZFS simulator and do a rman backup from my 12c database


oracle@srv1 ~]$ rman target /
Recovery Manager: Release 12.1.0.2.0 - Production on Thu Aug 27 17:09:14 2015
Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.
connected to target database: CDB (DBID=1975575730)
RMAN> run
2> {
3> allocate channel c1 device type disk format '/mnt/OraBackup/%U';
3> backup as compressed backupset database;
4> }
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=53 device type=DISK
Starting backup at 27-AUG-15
channel c1: starting compressed full datafile backup set
channel c1: specifying datafile(s) in backup set
input datafile file number=00003 name=/u01/oradata/CDB/sysaux01.dbf
input datafile file number=00001 name=/u01/oradata/CDB/system01.dbf
input datafile file number=00004 name=/u01/oradata/CDB/undotbs01.dbf
input datafile file number=00006 name=/u01/oradata/CDB/users01.dbf
channel c1: starting piece 1 at 27-AUG-15
channel c1: finished piece 1 at 27-AUG-15
piece handle=/mnt/OraBackup/1cqflpvg_1_1 tag=TAG20150827T171008 comment=NONE
channel c1: backup set complete, elapsed time: 00:01:55
channel c1: starting compressed full datafile backup set
channel c1: specifying datafile(s) in backup set
input datafile file number=00007 name=/u01/oradata/CDB/pdbseed/sysaux01.dbf
input datafile file number=00005 name=/u01/oradata/CDB/pdbseed/system01.dbf
channel c1: starting piece 1 at 27-AUG-15
channel c1: finished piece 1 at 27-AUG-15
piece handle=/mnt/OraBackup/1dqflq33_1_1 tag=TAG20150827T171008 comment=NONE
channel c1: backup set complete, elapsed time: 00:01:15
channel c1: starting compressed full datafile backup set
channel c1: specifying datafile(s) in backup set
input datafile file number=00009 name=/u01/oradata/CDB/PDB1/sysaux01.dbf
input datafile file number=00008 name=/u01/oradata/CDB/PDB1/system01.dbf
input datafile file number=00010 name=/u01/oradata/CDB/PDB1/PDB1_users01.dbf
channel c1: starting piece 1 at 27-AUG-15
channel c1: finished piece 1 at 27-AUG-15
piece handle=/mnt/OraBackup/1eqflq5e_1_1 tag=TAG20150827T171008 comment=NONE
channel c1: backup set complete, elapsed time: 00:01:15
channel c1: starting compressed full datafile backup set
channel c1: specifying datafile(s) in backup set
input datafile file number=00012 name=/u01/oradata/CDB/PDB2/sysaux01.dbf
input datafile file number=00011 name=/u01/oradata/CDB/PDB2/system01.dbf
input datafile file number=00013 name=/u01/oradata/CDB/PDB2/PDB2_users01.dbf
channel c1: starting piece 1 at 27-AUG-15
channel c1: finished piece 1 at 27-AUG-15
piece handle=/mnt/OraBackup/1fqflq7p_1_1 tag=TAG20150827T171008 comment=NONE
channel c1: backup set complete, elapsed time: 00:01:15
channel c1: starting compressed full datafile backup set
channel c1: specifying datafile(s) in backup set
input datafile file number=00015 name=/u01/oradata/CDB/PDB3/sysaux01.dbf
input datafile file number=00014 name=/u01/oradata/CDB/PDB3/system01.dbf
input datafile file number=00016 name=/u01/oradata/CDB/PDB3/PDB3_users01.dbf
channel c1: starting piece 1 at 27-AUG-15
channel c1: finished piece 1 at 27-AUG-15
piece handle=/mnt/OraBackup/1gqflqa4_1_1 tag=TAG20150827T171008 comment=NONE
channel c1: backup set complete, elapsed time: 00:01:16
Finished backup at 27-AUG-15

During the backup I start the  “Status Overview” of the ZFS

ZFS_Backup_Overview

That is a powerful overview about the ZFS appliance and you can also create custom worksheets.

In summary, the ZFS Simulator virtual box is a very good environment to get a feeling for this technology and also to do some tests and training with the ZFS technology.

Next I would like to create an Oracle database on the ZFS by using dnfs hope it works. So stay tuned.

 

Advertisements

Über spa

Oracle and Unix Professional, main focus on Oracle HA - Systems also an Exadata enthusiasts
Dieser Beitrag wurde unter Oracle Database abgelegt und mit , , , , , verschlagwortet. Setze ein Lesezeichen auf den Permalink.

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

WordPress.com-Logo

Du kommentierst mit Deinem WordPress.com-Konto. Abmelden / Ändern )

Twitter-Bild

Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )

Facebook-Foto

Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s