问题描述
[root@controller ~]# swift stat
Account: AUTH_8bde12ff804e42498661b7454994c446
Containers: 0
Objects: 0
Bytes: 0
X-Put-Timestamp: 1690507907.67931
X-Timestamp: 1690507907.67931
X-Trans-Id: tx56d22fa138ab45908caab-0064c31a82
Content-Type: text/plain; charset=utf-8
X-Openstack-Request-Id: tx56d22fa138ab45908caab-0064c31a82
[root@controller ~]#
[root@compute ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 200G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 99G 0 part
├─centos-root 253:0 0 50G 0 lvm /
├─centos-swap 253:1 0 3.9G 0 lvm [SWAP]
└─centos-home 253:2 0 45.1G 0 lvm /home
sdb 8:16 0 100G 0 disk
├─sdb1 8:17 0 20G 0 part
│ ├─cinder--volumes-cinder--volumes--pool_tmeta 253:3 0 20M 0 lvm
│ │ └─cinder--volumes-cinder--volumes--pool 253:5 0 19G 0 lvm
│ └─cinder--volumes-cinder--volumes--pool_tdata 253:4 0 19G 0 lvm
│ └─cinder--volumes-cinder--volumes--pool 253:5 0 19G 0 lvm
├─sdb2 8:18 0 20G 0 part /swift/node/sdb2
└─sdb3 8:19 0 20G 0 part
sr0 11:0 1 4.4G 0 rom
[root@compute ~]#
[root@controller ~]# source /etc/keystone/admin-openrc.sh
[root@controller ~]# swift stat
Account HEAD failed: http://controller:8080/v1/AUTH_8bde12ff804e42498661b7454994c446 503 Service Unavailable
Failed Transaction ID: tx1bac2f2ee5fe45cda0125-0064c3c108
[root@controller ~]#
[root@controller ~]# tail -f /var/log/swift/*
tail: cannot open ‘/var/log/swift/*’ for reading: No such file or directory
tail: no files remaining
[root@compute ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 200G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 99G 0 part
├─centos-root 253:0 0 50G 0 lvm /
├─centos-swap 253:1 0 3.9G 0 lvm [SWAP]
└─centos-home 253:2 0 45.1G 0 lvm /home
sdb 8:16 0 100G 0 disk
├─sdb1 8:17 0 20G 0 part
│ ├─cinder--volumes-cinder--volumes--pool_tmeta 253:3 0 20M 0 lvm
│ │ └─cinder--volumes-cinder--volumes--pool 253:5 0 19G 0 lvm
│ └─cinder--volumes-cinder--volumes--pool_tdata 253:4 0 19G 0 lvm
│ └─cinder--volumes-cinder--volumes--pool 253:5 0 19G 0 lvm
├─sdb2 8:18 0 20G 0 part
└─sdb3 8:19 0 20G 0 part
sr0 11:0 1 4.4G 0 rom
loop0 7:0 0 20G 0 loop /swift/node
[root@compute ~]#
解决办法
实际上是因为脚本里面设置的是临时挂载,重启后会失效,只需要重新挂载即可
.....
echo "/dev/$OBJECT_DISK /swift/node xfs loop,noatime,nodiratime,nobarrier,logbufs=8 0 0" >> /etc/fstab
mkdir -p /swift/node/$OBJECT_DISK
mount /dev/$OBJECT_DISK /swift/node/$OBJECT_DISK
scp $HOST_NAME:/etc/swift/*.ring.gz /etc/swift/
.......
[root@compute ~]# umount /swift/node/
[root@compute ~]# source /etc/openstack/openrc.sh
[root@compute ~]# mount /dev/$OBJECT_DISK /swift/node/$OBJECT_DISK
[root@compute ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 200G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 99G 0 part
├─centos-root 253:0 0 50G 0 lvm /
├─centos-swap 253:1 0 3.9G 0 lvm [SWAP]
└─centos-home 253:2 0 45.1G 0 lvm /home
sdb 8:16 0 100G 0 disk
├─sdb1 8:17 0 20G 0 part
│ ├─cinder--volumes-cinder--volumes--pool_tmeta 253:3 0 20M 0 lvm
│ │ └─cinder--volumes-cinder--volumes--pool 253:5 0 19G 0 lvm
│ └─cinder--volumes-cinder--volumes--pool_tdata 253:4 0 19G 0 lvm
│ └─cinder--volumes-cinder--volumes--pool 253:5 0 19G 0 lvm
├─sdb2 8:18 0 20G 0 part /swift/node/sdb2
└─sdb3 8:19 0 20G 0 part
sr0 11:0 1 4.4G 0 rom
[root@compute ~]#
├─sdb2 8:18 0 20G 0 part /swift/node/sdb2
[root@controller ~]# source /etc/keystone/admin-openrc.sh
[root@controller ~]# swift stat
Account: AUTH_8bde12ff804e42498661b7454994c446
Containers: 0
Objects: 0
Bytes: 0
X-Put-Timestamp: 1690509333.32481
X-Timestamp: 1690509333.32481
X-Trans-Id: txcc8962b244bb4ff397885-0064c32014
Content-Type: text/plain; charset=utf-8
X-Openstack-Request-Id: txcc8962b244bb4ff397885-0064c32014
[root@controller ~]#
原文地址:https://blog.csdn.net/m0_56363537/article/details/131973492
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_15279.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。