2017年11月24日 星期五

SMB mount error(112): Host is down 設定摘要

mount -t cifs -o user=username,vers=1.0 //server/share /mnt/mountpoint
mount -t cifs -o user=username,vers=2.0 //server/share /mnt/mountpoint

PROXMOX PVE (4.x,5.x) 重新設定 HTTPS Certificate

1.刪除以下檔案
rm /etc/pve/pve-root-ca.pem
rm /etc/pve/priv/pve-root-ca.key
rm /etc/pve/nodes//pve-ssl.pem
rm /etc/pve/nodes//pve-ssl.key

2.重新產生相關檔案
pvecm updatecerts -f

2017年11月21日 星期二

accel-ppp 固定 client ip

1.編輯 /etc/accel-ppp.conf
加入 module chap-secrets,注意載入順序
[modules]
chap-secrets
ippool

2.編輯  chap 帳號密碼檔案
chap-secrets=/etc/ppp/chap-secrets
user * password 192.168.2.101

2017年11月2日 星期四

PROXMOX VE 5.1 Infiniband IPoIB 設定摘要

1.安裝相關軟體
apt-get install opensm
apt-get install infiniband-diags

2.載入相關 module
modprobe ib_umad ib_ipoib

3.設定網路

ip addr add 10.0.0.1/24 dev ib0
ip link set ib0 up

4.infiniband network 必須要有 subnet manager
/etc/init.d/opensm start

5.其他
出現 ib0 NO-CARRIER 可能是缺少 subnet manager

2017年10月5日 星期四

LEAF 5.x mount CIFS 摘要

載入模組
cifs
hmac
md4
arc4

使用 mount 掛載,必須同時輸入密碼
mount -t cifs -o username=user,password=pass //server/share /mnt

2017年10月3日 星期二

Samba SWAT安裝

/etc/services 加入
swat 901/tcp

/etc/inited.conf 加入
swat stream tcp nowait.400 root /usr/sbin/swat swat

連線測試
http://localhost:901

移除軟體RAID

umount /dev/md2

1.RAID 狀態
# mdadm --detail /dev/md2
    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sdb1     
       2       8       33        2      active sync   /dev/sdd1

2.停用 RAID
mdadm --stop /dev/md2


3.移除 RAID
mdadm --remove /dev/md2

4.移除 superblocks
# mdadm --zero-superblock /dev/sdb1 /dev/sdd1

修改相關設定
/etc/mdadm/mdadm.conf