วันพุธที่ 27 กุมภาพันธ์ พ.ศ. 2551

คำสั่ง showmount ไม่ทำงาน

อาการก็คือ เรียกแล้วก็ไม่ยอมทำงาน
เอ๊ะ มันยังงัย

[thada@localhost ~]$ /usr/sbin/showmount -e
mount clntudp_create: RPC: Program not registered

อ๊ะ ถ้าเห็น RPC Program not registered ยังงี้ล่ะก็นะ
สงสัย services เกี่ยวกะ nfs ยังไม่เปิดทำงานแหงๆ

เข้าไปที่ System - Administration - Server settings - Services
จากนั้นให้ enable nfs services (ถ้าจำเป็นก็ enable nfslock services ด้วยก็ได้ แล้วก็ portmap services - ใช้ทำไรหว่า)
หลังจากนั้นแล้วทุกอย่างจะดูโอเค อย่างนี้

[thada@localhost ~]$ /usr/sbin/showmount -e
Export list for localhost.localdomain:

ถ้าสั่ง showmount -e โดยไม่บอก ชื่อโฮสต์หรือ ip address มันจะมองหาว่า เครื่องของเรา share อะไรบ้าง โดยไปดูจาก export list ซึ่งอยู่ใน file /etc/exports

อย่างในตัวอย่างยังไม่ได้ share อะไรให้ใครเลย ก็เลยมีข้อมูลเท่านั้น

อือม ลองใช้ showmount ไปเช็คข้อมูลบนเครื่อง windows ดูหน่อยซิ
[thada@localhost ~]$ /usr/sbin/showmount -e windows_workstation
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive

อ่าว ไหงไม่ได้อีกล่ะ
สงสัยต้องใช้ smbclient อย่างเดียว
(เพราะ มันไม่มี portmap บนเครื่อง windows นี่นา อือม)

Note: ข้อมูลจาก man
showmount - show mount information for an NFS server
/usr/sbin/showmount [ -adehv ] [ --all ] [ --directories ]
[ --exports ] [ --help ] [ --version ] [ host ]

ไม่มีความคิดเห็น: