k8s 容器启动不起来,显示pvc挂载不上修复
pod | grep iaasssh node1kubectl get pv glance -o yamlll /dev/disk/by-path/ | grep iqn的id-lun-2ls ..ls /dev/ | grep sdfmkdir mountTestmount /dev/sdf /root/mountTestmount | grep /root/mountTestecho 'dat
·
pod | grep iaas
ssh node1
kubectl get pv glance -o yaml
ll /dev/disk/by-path/ | grep iqn的id-lun-2
ls ..
ls /dev/ | grep sdf
mkdir mountTest
mount /dev/sdf /root/mountTest
mount | grep /root/mountTest
echo 'date' > info.txt
cat info.txt
cd ..
mount /root/mountTest
cd mount/Test
ls
cd ..
mount | grep /root/mountTest
pod | grep iaas
kubectl scale statefulset -n cloudos-iaas os-glance --replicas=0
kubectl scale statefulset -n cloudos-iaas os-glance --replicas=1
pod | grep glance
更多推荐
已为社区贡献3条内容
所有评论(0)