The first step is export the FS to be used on NFS server.
If you don't know how to do that, check the link bellow.
Configuring NFS server
Before to configure autoFS in your client is better check if you can see the nfs FS in your client.
# showmount -e <nfs server>
The return will be the list of what is exported on nfs server and who is allowed to mount/access.
If everything is right until this point... configure the autoFS:
Include on /etc/auto_master what you want mount, we are using the FS /user/home in our example.
# vi /etc/auto_master
/users/home /etc/auto_home -nosuid,intr,soft,rsize=32768,wsize=32768
Include on /etc/auto_home the address of your FS (NFS server and mount point):
* <nfs server>:/home/&
Restart automount
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.client start
automount
Enable the auto start of AutoFS editing /etc/rc.config.d/nfsconf:
NFS_CLIENT=1
AUTOMOUNT=1
AUTOFS=1
Done
AutoFS - Automount
LDAP-UX - How to setup LDAP-UX to authenticate on OpenLDAP
First of all, LDAP-UX does not support updating an OpenLDAP directory, so to get this to work, add the following profile to the LDAP directory (requires the DUAConfig.schema and possibly ldap-printer.schema):
dn: cn=uxprofile,ou=Profiles,dc=example,dc=com cn: uxprofile objectClass: DUAConfigProfile defaultSearchBase: dc=example,dc=com defaultSearchScope: one profileTTL: 3600 serviceSearchDescriptor: passwd:OU=People,DC=example,DC=com serviceSearchDescriptor: group:OU=Group,DC=example,DC=com authenticationMethod: tls:simple defaultServerList: <space separated list of LDAP server hosts:ports>
If you don't have the LDAP-UX package installed...
# swinstall -s /yourDepot
Create a key-store:
/opt/ldapux/contrib/bin/certutil -N -d /etc/opt/ldapux
Import the CA cert:
/opt/ldapux/contrib/bin/certutil -A -n ca-cert -t "C,," -d /etc/opt/ldapux -a -i cacert.crt
Configure LDAP-UX:
/opt/ldapux/config/setup
...specify TLS and use port 389.
NOTE: do NOT attempt to extend any sachems -- OpenLDAP does not support this.
To find out if you are working under 32 or 64-bits (PA-RISC)
You can use the getconf command to get that on PA-RISC:
getconf KERNEL_BITS
You don't need to check that on Itanium, since Itanium is only 64bits.
Labels: getconf
Rebuild lvmtab
It's quite easy.
Let's begin with a backup:
# cp -p /etc/lvmtab /etc/lvmtab.orig
Remove the old one:
# rm /etc/lvmtab
Now you are ready to rebuild using the vgscan:
# vgscan -v
Check "Real memory" on pa-risc and Ia64
I'm listing just one way to check the memory on server but as usual there are many ways to do that.
PA-RISC
# getconf REAL_MEMORY HPUX
ITANIUM
# machinfo | grep -i memory
or
# dmesg | grep mem
Tusc - Process trace "Debug mode"
- Why this process is running and is taking so much time???!??!
I am sure someday this question will pass for your mind, in order to try find out what is going on we have the possibility to install a software called "tusc" on HP-UX, a similar command in AIX is the truss (it's native on OS). The output can be not so friendly...
Follow an example using tusc to trace the system calls and signal.
# /usr/local/bin/tusc -apf <pid>
Labels: tusc
How to mount a windows share on HP-UX
After some time away... here is a new post :-)
and by the way... Happy New Year!!
Requirements:
- User account on Windows box
- Root access on HP-UX box
- cifs patch installed on HP-UX
- Network communication between them (client and server)
- Directory shared on Windows
Check if cifs is running:
# cifsclient status
If it is not running..
# cifsclient start
Create a directory to be used for your mount point and use the bellow command to mount:
# cifsmount //WINDOWSserverHostname/DirectoryShared /YourMountpoint -U username
Check the man pages for more flags to be used with cifsmount command.
Labels: CIFS (samba)