Operating System - HP-UX
1827286 Members
1757 Online
109717 Solutions
New Discussion

HPUX 11.31 + SG A.11.19 modular + samba package

 
BERTRAND_7
Frequent Advisor

HPUX 11.31 + SG A.11.19 modular + samba package

Hi

I configured a samba package to export some files from a vg using the new modular SG feature. I also intend to configure another samba package for other purpose

As explained in the docs, in the package configuration file, I set
ecmt/samba/samba/CONF_FILE /mzsmbdv/smb.conf.${NETBIOS_NAME}
ecmt/samba/samba/SMBD_PID_FILE /mzsmbdv/locks/smbd.pid
ecmt/samba/samba/NMBD_PID_FILE /mzsmbdv/locks/nmbd.pid

cmapplyconf was fine.
'/mzsmbdv' is a directory mounted at package startup.

The package startup fails in function 'start_samba_server' of hasmb.sh since it is looking for files in '/mzsmbdv/locks/smbd.pid' & '/mzsmbdv/locks/nmbd.pid' that never exists.

After investigation, I found that they are created in /var/opt/samba/locks :
smdb-smb.conf.MZRL2DV.pid
nmdb-smb.conf.MZRL2DV.pid

'MZRL2DV' is the NETBIOS variable in my package conf file. So the name is not 'smbd.pid' nor 'nmbd.pid'

At startup, it seems that nmbd and smbd process ignore the variable definition 'SMBD_PID_FILE' & 'NMBD_PID_FILE'

As a workaround I can change the lock dir on a local filesystem, but the filename will still not match.

Any suggestion is welcome.
Thanks for your help.
1 REPLY 1
Steven E. Protter
Exalted Contributor

Re: HPUX 11.31 + SG A.11.19 modular + samba package

Shalom,

Samba is a two process daemon. NETBIOS is not really needed, but you can also run winbind if you are trying to do windows integration.

There are samba integration scripts available for HP-UX, you might want to check into those, or make modifications to hard code the right file names into the package scripts.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com