1、网络知识
如果忘记修改/etc/interface的dns而单独修改/etc/resolv文件的话,重启会无效
网卡ip类型设置:staic,dhcp
2、硬盘分区
df -h
fdisk /dev/sdb
最后还是没有搞定分区 而是通过loopback device
创建指定大小文件
truncate -s 1GB /srv/swift-disk
或者dd if=/dev/zero of=/srv/swift-disk bs=1024 count=0 seek=1000000
然后再格式化 mkfs.xfs -i size=1024 /srv/swift-disk
并修改/etc/fstab,开机自动挂载:/srv/swift-disk /srv/node/sdb1 xfs loop,noatime,nodiratime,nobarrier,logbufs=8 0 0
3、程序安装
mysql注意grant all ,要同时% localhost
GRANT ALL ON keystone.* TO 'keystone'@'%' IDENTIFIED BY '[YOUR_KEYSTONEDB_PASSWORD]';
GRANT ALL ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY '[YOUR_KEYSTONEDB_PASSWORD]';
swift prox server和node之间版本保持一致
swift --version