Saturday, January 29, 2011

Cannot create a file on a NFS mount point


NFS master 'tsm2' exporting /mksysb. Trying to mount /mksysb

mount tsm2:/mksysb /mnt // mounted and available.

/usr/bin/mksysb -i /mnt/filename >> cannot open /mnt/filename
permission denied

cd /mnt
touch jack.out >> cannot create

logged in as root.

#showmount -e tsm2 >> /mksysb everyone

# ls -ld /mnt >> 777 root,system

# hostname -> pxxxxxx2

On the NFS:

host pxxxxx2 >> pxxxxxt.fxxxxxxr.com is 10.20.100.5 aliases:
pxxxxxxt.fxxxxxd.com

host 10.20.100.5 >> pxxxxxxxxt.fxxxxxxxr.com is 10.20.100.5

more /etc/netsvc.conf >> nothing uncommented.

more /etc/hosts >> 10.20.100.5 is not found.

umount /mksysb from the client

on the NFS server:

exportfs -u /mksysb
more /etc/exports >>  /mksysb (no permissions)
cp /etc/exports /etc/exports.old
vi /etc/exports >> comment out /mksysb
smitty mknfsexp >>  Add a Directory to Exports List
  Hosts allowed root access  pxxxxxxxt

# showmount -e >> /mksysb everyone
# more /etc/exports >> /mksysb -root=tsm2  << tsm2 should be pxxxxxxt
# smitty rmnfsexp >> /mksysb
# showmount -e >> mksysb is not listed.
# smitty mknfsexp >> Hosts allowed root access  pxxxxxxxt
# showmount -e >> /mksysb everyone

On the NFSclient:

# mount tsm2:/mksysb /mnt
# touch file >> created the file.

/usr/sbin/mksysb -i /mnt/filename // the mksysb is running.


No comments:

Post a Comment