Operating System - HP-UX
1752794 Members
7390 Online
108789 Solutions
New Discussion

hanfs.sh mapping from package style legacy to modular

 
support_billa
Valued Contributor

hanfs.sh mapping from package style legacy to modular

hello,

 

in a legacy package i configure a "nfs share" with Serviceguard NFS Toolkit :

 

configure : /etc/cmcluster/<package>/hanfs.sh

 

add a entry: example:

XFS[0]="-o ro,anon=65534,root=server.local /filesystem/"

 

and it works !

 

how about with  a modular package ?

 

my software Serviceguard release:

B5140BA                                       A.11.31.08     Serviceguard NFS Toolkit
T1905CA                                       A.11.20.00.01  Serviceguard  

 

i want to add a nfs share like:

example from /etc/dfs/dfstab
share -F nfs -o ro,anon=65534,root=server.local -d  Share" /filesystem

 

i read a part of a docu and i should add a nfs module to a package , right ?

like:

 

cmmakepkg -m sg/multi_node_all -m nfs/hanfs /etc/cmcluster/nfs_modular/nfs-export.conf

and next steps ?

 

regards

 

2 REPLIES 2
support_billa
Valued Contributor

Re: hanfs.sh mapping from package style legacy to modular

hello,

 

i have now new, bad informations, how i add "hanfs.sh" to a modular package. when i make follwing steps, my package goes down ... i think it will better to add "share/unshare" in the customer_define_part ....

 

other have also some problems with this issue : HA NFS module package to specify client hosts

 

i made following steps:

Save of actual package-conf file:
cp -p /etc/cmcluster/svg-package/svg-package.conf /etc/cmcluster/svg-package/svg-package.conf.save

Add of Modul nfs/hanfs:
cmmakepkg -m nfs/hanfs -i /etc/cmcluster/svg-package/svg-package.conf

Redirect Output :
cmmakepkg -m nfs/hanfs -i /etc/cmcluster/svg-package/svg-package.conf > /etc/cmcluster/svg-package/svg-package.conf.new

 

Add entry:
XFS "-o ro,anon=65534,root=server.local -d  Share  /filesystem"

cmcheckconf :
cmcheckconf -P /etc/cmcluster/svg-package/svg-package.conf.new

/etc/cmcluster/svg-package/svg-package.conf.new:828: service_halt_timeout value of 0 is equivalent to 1 sec.

Output:
cmcheckconf: Verification completed with no errors found.
Use the cmapplyconf command to apply the configuration

cmapplyconf :
cmapplyconf -P /etc/cmcluster/svg-package/svg-package.conf.new

Output:
/etc/cmcluster/svg-package/svg-package.conf.new:828: service_halt_timeout value of 0 is equivalent to 1 sec.
One or more of the specified packages are running. Any error in the
proposed configuration change could cause these packages to fail.
Ensure configuration changes have been tested before applying them.

 

Then package goes down .....

 

Also i don't know how to make entry with ", how escape it , with "\" it isn't possible like :


XFS "-o ro,anon=65534,root=server.local -d  \"Info Share"  /filesystem"

 

it is complex ...

 

regards

Dennis Handly
Acclaimed Contributor

Re: hanfs.sh mapping from package style legacy to modular

>I don't know how to make entry with ", how escape it , with "\" it isn't possible like :
>XFS "-o ro,anon=65534,root=server.local -d  \"Info Share"  /filesystem"

 

Can you use "\" before your evil space, instead of quoting the whole name?

But is is better to not use evil spaces.