Yu-Min Space
2018年3月10日 星期六
Raspberry pi 連線 PPTP
安裝
apt-get update -y
apt-get upgrade -y
apt-get install pptpd
apt-get install -y pptp-linux
設定
pptpsetup --create $TUNNEL
--server $SERVER
--username $USERNAME
--password $PASSWORD
--encrypt --
相關設定檔及指令
/etc/ppp/chap-secrets
/etc/ppp/peers/toVigor
pppd call
pkill pppd
2018年2月21日 星期三
Glusterfs 設定開啟 NFS
1.開啟 rpcbind 相關服務
2.設定 Glusterfs
gluster volume set volume_name nfs.disable off
gluster volume stop volume_name
gluster volume start volume_name
其他相關指令
gluster volume status
gluster volume info
Glusterfs Volume 模式
Distributed (JBOD):有機會發生因寫入的 brick 空間不足,而造成檔案寫入失敗。
Replicated (RAID1)
Striped (RAID0)
Distributed Striped (JBOD + RAID0)
Distributed Replicated (JBOD + RAID1):大數據分析建議使用。
Striped Replicated (RAID 1 + 0)
Dispersed (RAID 5/6) 3.1商業版,3.6 以後版本提供,利用增加節點數降低網路流量。
Glusterfs 除錯
訊息:
Connection failed. Please check if gluster daemon is operational
原因:
1.glusterfs 相關服務未執行。
2.掛載節點無法查詢到所有 glusterfs node domain name。
解決方法:
執行 glusterfs 相關服務
編輯
/etc/hosts
Proxmox LXC 掛載 Glusterfs
host 中 /etc/pve/nodes/pve/lxc/
.conf 加入
lxc.hook.autodev: sh -c "mknod -m 0666 ${LXC_ROOTFS_MOUNT}/dev/fuse c 10 229"
#fuse
lxc.cgroup.devices.allow = c 10:229 rwm
其他裝置
#ppp
lxc.cgroup.devices.allow = c 108:0 rwm
#fuse
lxc.cgroup.devices.allow = c 10:229 rwm
#loop0
lxc.cgroup.devices.allow = b 7:0 rwm
#tun
lxc.cgroup.devices.allow = c 10:200 rwm
Bering-uClibc 5/6 開發環境建置
1.安裝 ubuntu 14
2.更新及安裝相關套件
apt-get update
apt-get install -y libconfig-general-perl libdatetime-perl liblist-moreutils-perl libhash-merge-perl
apt-get install -y autoconf automake bc binutils bzip2 cpio file flex gawk gcc gzip libtool lzma m4 make sed sed tar wget lzop g++
apt-get install -y git patch nasm bison asciidoc fakeroot cmake intltool texinfo
apt-get install -y zlib-dev* libmpc* mpfr* libtool-*
3.下載 source 並解開
4.
./buildtool.pl -t x86_64-unknown-linux-uclibc source kernel
5
./buildtool.pl -t x86_64-unknown-linux-uclibc build toolchain
取得 Linux kernel 版本資訊
cat /proc/version
cat /proc/sys/kernel/version
uname -mrs
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)