Saturday, July 21, 2012

NFS Server Interview Questions & Answers

Q:- Explain this entry /shared 192.168.1.0/255.255.255.0(sync,rw)


allows all systems with 192.168.1.* IP addresses read-write access to the /shared/ directory:


Q: - What will happened if a space is given inbetween allowed_hosts and (options)

If a space is included, the options are applied to any and all IP addresses, which can be quite dangerous if write permission is granted.

Q: - What is the role of sync and async option in NFS server async means that the NFS  server will acknowledge data before it's committed to disk, which can lead to data corruption if the server crashes. sync does the opposite, the server will only acknowledge data after it's written out. 

Q: - How to retrieve a list of clients connected to the NFS server ?

To retrieve a list of clients connected to the NFS server, use the showmount command
from a shell prompt. To also show the directories the clients are connected to, use the
showmount -a command.

Q: - Name of Configuration file for NFS Server ?

/etc/exports

Q: - What is meaning of "no_root_squash" option ?

Treat remote root user as local root. Do not map requests from root to the anony-
mous user and group ID.

Q: - What is NFS ?

NFS stands for Network File System. NFS was originally developed by Sun Microsystems in the 1980's. NFS allows remote hosts to mount file systems over a network and interact with those file systems as though they are mounted locally. This enables system administrators to consolidate resources onto centralized servers on the network.

Q: - Which NFS versions are available ?

NFS Version 2
NFS Version 3
NFS Version 4

Q: - What is different between NFS Version 2 & 3 ?

nfs 2 default 8kb transfer rate,it did not check the authentication at the time connection.client wants to access unauthorized file it shows error messages like "write error","read error" nfs 3 32kb transfer rate. It check at the time connection- ACL Support

Q: - Can we grant access by Username and password for nfs share?
No, access is granted only for IP address.

Q: - What is the role of "all_squash" option?
Treat all client users as anonymous users. Map all user and group IDs to the anonymous user and group ID.

Q: - What is the role of "root_squash" option?
All requests from the user root are translated or mapped as if they came from the user anonymous (default).

Q: - Explain option "all_squash"?
The UID and GID of exported files are mapped to the user anonymous. It is good for public directories.

Q: - Explain "exportfs" command?
The exportfs command is used to maintain the current table of exported file systems for NFS.

Q: - Explain command "/usr/sbin/exportfs -f"?
It will flush everything out of the kernels export table. Any clients that are active will get new entries added by mountd when they make their next request.

Q: - Which option is used with exportfs command to display the current export list, also displays the list of export options?
exportfs -v

Q: - Which option is used with exportfs command to re-export all directories?
exportfs -r

Q: - How you will export directory (/data) to host 192.168.1.51, allowing asynchronous writes without adding the entry in /etc/exports file?
# exportfs -o async 192.168.1.51:/data

Q: - Is rpc.mountd daemon supports TCP_WRAPPERS?
Yes, The rpc.mountd daemon is protected by the tcp_wrappers. You have to give the clients access to rpc.mountd if they should be allowed to use NFS Server.

Q: - Explain "nfsstat" command?
The nfsstat command displays the statistics about NFS client and NFS server activity.

Q: - What do you understand by "nfsstat -o all -234" command?
It will Show all information about all versions of NFS.

Q: - What do you understand by "nfsstat --nfs --server -3" command?
It will show statistics for NFS version 3 server.

Q: - Can NFS share mounted on Window XP and Justify your answer?
No, Window XP operating system doesn’t support nfs protocol.

Q: - 192.168.1.51:/data is exported by NFS Server and i want to add this NFS share to client /etc/fstab file. How you will add this entry in /etc/fstab file?
# device mount-point fs-type options dump fsckorder
192.168.1.51:/data /mnt nfs rw 0 0

Q: - Explain "Soft Mounting" option at NFS Client?

if a file request fails, the NFS client will report an error to the process on the client machine requesting the file access. if it cannot be satisfied (for example, the server is down), then it quits. This is called soft mounting.

Q: - Explain "Hard Mounting" option at NFS Client?
If a file request fails, the NFS client will report an error to the process on the client machine requesting the file access. if it cannot be satisfied, then it will not quit until the request is satisfied. This is called Hard mounting.

Q: - What is "portmap"?
The portmapper keeps a list of what services are running on what ports. This list is used by a connecting machine to see what ports it wants to talk to access certain services.

Q: - How you will check "portmap" service is running or not?
rpcinfo -p

Q: - I am unable to mount a NFS share. How will you trace out the reason?
Firstly, check that you have permissions to mount nfs share or not. Check /etc/exports file.
Secondly you can get RPC error: Program Not Registered (or another "RPC" error)
For this check your NFS server and portmap service running or not by "rpcinfo -p"

Q: - Can I modify export permissions without needing to remount clients in order to have them take effect?
Yes. The safest thing to do is edit /etc/exports and run "exportfs -r".

24 comments:

  1. OMG!!!
    Thanks!
    It was powerfull)
    Richard Brown data room

    ReplyDelete
  2. Game engines are typically somewhat genre specific. An engine designed for a two-person fighting game in a boxing ring will be very different from a massively multiplayer online game (MMOG) engine or a first-person shooter (FPS) engine or a real-time strategy (RTS) engine. Agen Bola

    ReplyDelete
  3. These games includes: Battletoads, Super Mario Bros, Sonic, Mega man, first person shooter games, roleplaying games, online games (such as Adventure Quest), and plenty of other hit games out there. Domino QQ

    ReplyDelete

  4. Pada permainan Poker Online, ada ber aneka macam meja jumlah pemain yang tersedia. Ada meja yang hanya untuk 3 pemain , 4 pemain dan bahkan sampai 9 pemain. Disini anda bisa pilih sesuai dengan keinginan anda apakah ingin bermain rame – rame atau hanya untuk sedikit pemain saja. Dan sudah banyak sekali orang yang mengemari Poker Online tersebut.
    DOMINOQQ ONLINE
    BandarQ Online

    ReplyDelete
  5. having studied all online casinos realized that well best live casino the best of the best. my criterion is honesty online casinos

    ReplyDelete
  6. Tiki poker agen judi online terpercaya


    Sistem pemrograman Poker Online masih tabu karena banyak pemain poker kurang mengerti bahwa ada masih banyak trik untuk bermain Poker online diluar mengandalkan keberuntungan semata. Tulisan ini menjawab apa saja yang para pemain perlu ketahui tentang pemrograman poker online dan cara-cara pemain bisa dengan mudah menang di situs poker.
    Keluhan terbesar yang sering terdengar dari para pemain yang memiliki hari dan taruhan kurang baik di Poker Online adalah dicurangi. Komentar-komentar dicurangi dari player yang kurang mengerti tentang teori Poker adalah salah, website Poker Online tidak melakukan kecurangan tetapi hit yang buruk yang membuat para pemain berfikir dicurangi. Tetapi, kenyataan kalau sistem di poker online memakai kode yang dibuat oleh komputer dan digabungkan dengan pemrograman yang sangat canggih yang menyebabkan kredibilitas situs poker online dianggap melakukan kecurangan.
    Sebab program komputer bisa dengan mudah dirubah oleh ahli-ahli komputer atau programmer, dan nyata kalau player tidak tahu atau mengerti rahasia kode poker dan pemrograman yang dipakai oleh website poker online, ini juga yang bisa membuat para pemain berfikir bahwa situs poker online melakukan kecurangan. Walaupun beberapa pemain berpendapat bahwa situs poker online situs poker mau mengambil resiko untuk kehilangan pelanggan-pelanggannya karena mengungkapkan kalau mereka telah berbuat curang di dalam permainan, faktanya yang perlu di garis bawahi adalah situs poker online tikipoker88 terpercaya mendapatkan keuntungan dari poker ini dan dapatkan bonus jutaan rupiah di tikipoker88 ayo maikan
    agen bola


    poker online


    jasa seo indonesia



    prediksi bola
    jadwal bola
    agen bola

    ReplyDelete
  7. mantul dan paten itu lah yang di bilang oleh member bandar togel online kingdomgrup http://128.199.187.54/

    ReplyDelete
  8. this information are nice. Thanks for sharing and also check out Kinemaster Lite

    ReplyDelete
  9. lakukan perbaikan motor anda di Bengkel Motor Bekasi atau konsultasikan dulu melalui http://www.bengkelmotorbekasi.com

    ReplyDelete
  10. buat anda yang mengincar kemenangan saat bermain slot online deposit pulsa tanpa potongan mainkan disitus kami. https://198.252.110.85/

    ReplyDelete
  11. bagi kalian yang bosan kalah terus dan tidak pernah wd, kami sarankan berkunjung ke halaman situs kami https://172.104.59.107/

    ReplyDelete
  12. slot online deposit pulsa tanpa potongan hanya di Maxbet268 klik link untuk melanjutkan ke halaman web
    https://192.53.114.67

    ReplyDelete
  13. buktikan kemampuanmu bermain disitus bandarqq..

    http://45.77.174.216/

    ReplyDelete
  14. πŸ‘‰ HOT PROMO
    - Bonus New member 10%
    - Bonus Harian 5rb
    - Bonus Rollingan Slot 0.3%
    - Bonus Cashback Slot 5%
    - Bonus Rollingan Casino 0.7%

    πŸ‘‰ LAYANAN DEPOSIT
    - BANK ALL TYPE
    - OVO
    - GO-PAY
    - DANA
    - PULSA TELKOMSEL
    kunjung link kami di putih slot

    ReplyDelete
  15. Kembali kami menghadirkan situs data keluaran hk yang sudah terupdate.

    ReplyDelete
  16. Hallo Kka, ane ijin post ya kka :)
    Ingin mencari kesenangan dan keberuntungan, bahkan mencari sedikit income, ayuk coba bergabung bersama kami https://54.179.224.161:8877/

    ReplyDelete