Saturday, August 23, 2014

Installation & Configuration of SAM-QFS Shared Filesystem.

QFS shared gives the advantage of a clustered file-system.
1.       Installation of SAMFS:
Download the SAM-QFS software release and patches from oracle support.
Clue: 1318956.1

2.       if it available in ISO format, Mount ISO image.
lofiadm -a /root/SUN_SAM-FS_5.2.iso
mount -F hsfs /dev/lofi/1 /mnt

3.       Install SAM-QFS Packages
#cd /mnt/sparc/2.11
# # pkgadd -d . SUNWsamfsr SUNWsamfsu

4.       [Optional] Umount after successful installation.

Configure QFS.

Note: Format should be carried out in one node only.
Note: svc:/network/qfs/shared-mount:default will be in maintenance state. Reboot after the whole operation

1.       vi /etc/opt/SUNWsamfs/mcf
sharefs1        30      ma      sharefs1        on      shared
/dev/dsk/c0t600144F000212834D270536C93270001d0s0        31      mm      sharefs1        on   
/dev/dsk/c0t600144F000212834D270536C93270001d0s3        32      mr      sharefs1        on
/dev/dsk/c0t600144F000212834D270536C93270001d0s4        33      mr      sharefs1 on

npadbtest01,npadbtest01.NPA.local      1       -       server
npadbtest02,npadbtest02.NPA.local      2       -

3.       copy the two files above to second node:

4.       force a read of SAMFS configuration file

5.       create a samfs filesystem:

6.       mount the file system
#mkdir /sharefs1
#mount -F samfs -o shared sharefs1 /sharefs1
#df –h

7.       On the second node.
#samfsconfig  /dev/dsk/*

8.       Mounting on second Node:
#mkdir /sharefs1
# mount -F samfs -o shared sharefs1 /sharefs1

How to Configure Shared Sun QFS With NFS

Edit to include QFS as dependency:
<!--Must have QFS filesystems mounted before sharing them-->
<dependency name='qfs' grouping='require_all' restart_on='error' type='service'>
<service_fmri value='svc:/network/qfs/shared-mount:default'/>

root@npadbtest01:~# svccfg export /network/nfs/server > /var/tmp/server.xml
root@npadbtest01:~# cat /var/tmp/server.xml
root@npadbtest01:~# svcs -l svc:/network/qfs/shared-mount:default
root@npadbtest01:~# vi /var/tmp/server.xml
root@npadbtest01:~# svccfg validate /var/tmp/server.xml
root@npadbtest01:~# svcadm disable nfs/server
root@npadbtest01:~# svccfg delete nfs/server
root@npadbtest01:~# svccfg import /var/tmp/server.xml
root@npadbtest01:~# svcadm enable nfs/server
root@npadbtest01:~# svcs -d svc:/network/nfs/server:default

Share filesystem to clients:

Checking configuration:

# samfsinfo sharefs1

Switch to another master server
root@npadbtest01:/etc/opt/SUNWsamfs# samsharefs -s npadbtest02 sharefs1


*Major Source: Oracle Documentation.

No comments:

Post a Comment