Installer une ressource NFS sur oracle cluster 3.2

mardi 26 avril 2011
par  Jerome ROBERT
popularité : 3%

Installer une ressource oracle cluster NFS

Erreur et solution sur un cluster 3.2 avec 2 nœuds avec l’utilisation de la ressources HAStoragePlus ( /RepAppl/ )



List les ressources types installer.

# clrt list
SUNW.LogicalHostname:2
SUNW.SharedAddress:2
SUNW.HAStoragePlus:6
SUNW.gds:6

Installer le package cluster NFS
 

# pkgadd -d . SUNWscnfs

Processing package instance <SUNWscnfs> from </a/Products/SunCluster.3.2.sparc/Solaris_sparc/Product/sun_cluster_agents/Solaris_10/Packages>

Sun Cluster NFS Server Component(sparc) 3.2.0,REV=2006.12.06.18.32
Copyright © 2006 Sun Microsystems, Inc. All rights reserved

SUN PROPRIETARY/CONFIDENTIAL.
 
Use is subject to license terms.
Using </opt> as the package base directory.
## Processing package information.
## Processing system information.
 4 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <SUNWscnfs> [y,n, ?] y

Installing Sun Cluster NFS Server Component as <SUNWscnfs>

## Installing part 1 of 1.
1618 blocks
## Executing postinstall script.

Installation of <SUNWscnfs> was successful.

 

Enregistrer ce type de ressource sur les deux noeuds du cluster
 

# clrt register -n node1:node2 SUNW.nfs:3.2
 

Liste les types de ressources enregistrer sur le cluter
 

# clrt list
SUNW.LogicalHostname:2
SUNW.SharedAddress:2
SUNW.HAStoragePlus:6
SUNW.gds:6
SUNW.nfs:3.2
 

Création de la ressource :

#clresource "create" -g "NomAppli-rg" -t "SUNW.nfs" -v "NomAppli-nfs-rs"
clresource : node2 - Unable to access directory /RepAppl/SUNW.nfs:No such file or directory.
clresource : (C189917) VALIDATE on resource NomAppli-nfs-rs, resource group NomAppli-rg, exited with non-zero exit status.
clresource : (C720144) Validation of resource NomAppli-nfs-rs in resource group NomAppli-rg on node node2 failed.
clresource : (C891200) Failed to create resource "NomAppli-nfs-rs".

==> Cette erreur indique l’oublie de la prise en compte de HAStoragePlus. Le cluster pense qu’on utilise le global FS.

 


Liste les ressources du cluster


root@node1 # clrs list
NomAppli2-lh-oper
NomAppli2-hasp-rs
NomAppli-hasp-rs
NomAppli-oralsnr-rs
NomAppli-orasrv-rs
NomAppli-sapci-rs
NomAppli-cft-rs
NomAppli-sapas-rs
NomAppli-lh-oper


Dans ce cluster la ressoruces NomAppli-hasp-rs est de type HAStoragePlus.
Nous allons maintenant intégrer cette dépendance à la ressource NFS par l’option "-p resource_dependencies="

root@node1 # clresource "create" -g "NomAppli-rg" -t "SUNW.nfs" -p resource_dependencies=NomAppli-hasp-rs "NomAppli-nfs-rs"
clresource : node1 - Some shared paths in file /RepAppl/SUNW.nfs/dfstab.NomAppli-nfs-rs are invalid.
clresource : (C189917) VALIDATE on resource NomAppli-nfs-rs, resource group NomAppli-rg, exited with non-zero exit status.
clresource : (C720144) Validation of resource NomAppli-nfs-rs in resource group NomAppli-rg on node node1 failed.
clresource : (C891200) Failed to create resource "NomAppli-nfs-rs".

==> La création de la ressource n’a toujours pas abouti ...
==> Il faut créer le fichier /RepAppl/SUNW.nfs/dfstab.NomAppli-nfs-rs avant la création de la ressource NFS

root@node1 # vi /RepAppl/SUNW.nfs/dfstab.NomAppli-nfs-rs
share -F nfs -o anon=0 /RepAppl/sapmnt/NomAppli
share -F nfs -o anon=0 /RepAppl/sapmnt/NomAppli/exe_linux
share -F nfs -o anon=0 /RepAppl/NomAppli
share -F nfs -o anon=0 /RepAppl/NomAppli/aci/archivage


root@node1 # clresource "create" -g "NomAppli-rg" -t "SUNW.nfs" -p resource_dependencies=NomAppli-hasp-rs "NomAppli-nfs-rs"


# clrs list
NomAppli2-lh-oper
NomAppli2-hasp-rs
NomAppli-hasp-rs
NomAppli-oralsnr-rs
NomAppli-orasrv-rs
NomAppli-sapci-rs
NomAppli-cft-rs
NomAppli-sapas-rs
NomAppli-lh-oper
NomAppli-nfs-rs

 

Synthese :
 

# clrt list
# pkgadd -d . SUNWscnfs
# clrt register -n node1:node2 SUNW.nfs:3.2
# vi /RepAppl/SUNW.nfs/dfstab.NomAppli-nfs-rs
# clresource "create" -g "NomAppli-rg" -t "SUNW.nfs" -p resource_dependencies=NomAppli-hasp-rs "NomAppli-nfs-rs"
 

 


Statistiques

Dernière mise à jour

mercredi 4 octobre 2023

Publication

273 Articles
Aucun album photo
Aucune brève
6 Sites Web
2 Auteurs

Visites

193 aujourd’hui
205 hier
864012 depuis le début
2 visiteurs actuellement connectés