Linux: September 2009 Archives

yppasswd can update NIS password, but ypserv need to restart to take effect.
add
/etc/init.d/ypserv restart
to /usr/lib64/yp/pwupdate (x86 is /usr/lib64/yp/pwupdate) is a workaround.
ypserv will restart when user run yppasswd.
I know this is informal workaround,
If someone knows other solutions, Please leave comment.

Linux VLAN (802.1q)

| | Comments (0)

要使用 Linux VLAN, 需載入 8021q module
modprobe 8021q

使用 vconfig 可以建立 vlan-devices
vconfig add eth1 100 # 建立 eth1 VLAN 100 vlan-device
vconfig add eth1 200 # 建立 eth1 VLAN 200 vlan-device
ifconfig eth1.100 192.168.100.1 netmask 255.255.255.0 # 設定 eth1 VLAN 100 vlan-device IP
ifconfig eth1.200 192.168.200.1 netmask 255.255.255.0 # 設定 eth1 VLAN 100 vlan-device IP
ifconfig eth1.200:0 192.168.200.2 netmask 255.255.255.0 # 設定 eth1 VLAN 100 vlan-device alias IP

需搭配網管型 Switch, Port 要帶 tag

Samba + NFS Lag Problem

| | Comments (0)

經由 Samba 存取 NFS 掛載的區域, 若出現 Lag 的狀況,
log 中會出現
Sep 1 13:13:15 nftp kernel: statd: server localhost not responding, timed out
Sep 1 13:13:15 nftp kernel: lockd: cannot monitor 192.168.x.x
Sep 1 13:13:15 nftp kernel: lockd: failed to monitor 192.168.x.x
(192.168.x.x 是 NFS Server 的 IP)
使用 mount -onolock 即可解決, 加此參數不會啟動 lockd

凱莉手工坊

凱莉手工坊

October 2009

Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

About this Archive

This page is a archive of entries in the Linux category from September 2009.

Linux: August 2009 is the previous archive.

Linux: October 2009 is the next archive.

Find recent content on the main index or look in the archives to find all content.