mentby.com
Blog | Jobs | Help | Signup | Login

loading

NFSv4 on CentOS 5.5

Sat, 22 Dec 2012 11:42:01 -0800 Post Comments

These are my unrefined notes on the topic:

NFS4 on CentOS 5.x Server

• create /nfs4exports with subfolder: extra.
•  in /etc/fstab put:
/extra                  /nfs4exports/extra      bind    bind            0 0

• In /etc/exports put:
/nfs4exports
xxx.yyy.zzz.qqq/255.255.255.248(rw,fsid=0,sync,no_root_squash,no_subtreecheck)
/nfs4exports/extra
xxx.yyy.zzz.qqq/255.255.255.248(rw,no_subtree_check,nohide,sync,no_root_sqash)

• In /etc/sysconfig/nfs put:
LOCKD_TCPPORT=32803
# UDP port rpc.lockd should listen on.
LOCKD_UDPPORT=32769
RPCNFSDARGS="-N 2 -N 3"
MOUNTD_PORT=892
STATD_PORT=662
# Outgoing port statd should used. The default is port
# is random
STATD_OUTGOING_PORT=2020
# Specify callout program

Nikada ne skidati root squashing, spusta roota na nfsnobody nivo. Ima i
all_squash opcija.

/etc/idmapd.conf:
[General]

Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = yourdomain.com

[Mapping]

Nobody-User = usernameiwant
Nobody-Group = usernameiwant

[Translation]
Method = nsswitch

Restart daemons and check with showmount -e server IP

Client:

/etc/auto.master:
/autofsmounts/servername  /etc/auto.servername --timeout=10

/etc/auto.servername:
extra    -fstype=nfs4,rw,proto=tcp    server.domain.com:/extra

/etc/idmapd.conf:
[General]

Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = yourdomain.com

[Mapping]

Nobody-User = usernameiwant
Nobody-Group = usernameiwant

[Translation]
Method = nsswitch

Create /autofsmounts/servername

Restart autofs daemon

In one terminal do "cd /autofsmounts/servername/extra" so that folder is
create/mounted by autofs

Create /servername and in it create softlinks for:
  /autofsmounts/servername/extra

And that is it.

Some commands:

test : showmount -e <ipaddress>

mkdir /autofsmounts
mkdir /autofsmounts/servername

echo 'extra    -fstype=nfs4,rw,proto=tcp    server.domain.com:/extra' >
/etc/auto.servername

--

Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant
Hi.

Red Hat is saying that AMD Liano A8 CPU's are not supported by
RHEL/CentOS 6:  https://access.redhat.com/knowledge/articles/65431

Is that true? What can I expect if I try to install CentOS 6.3 on PC
with that CPU?

--

Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant

Read more »

howto integrate Google Drive

Thu, 06 Dec 2012 02:15:52 -0800 Post Comments

Check Grive:  http://www.lbreda.com/grive/start

--

Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant
Group(s)
Profile Widget
Copy and paste this HTML code to your blog or website: