Volume is already attached by pod default/nginx-deployment-86dfb99868-szpkd. Status Running

1.部署WordPress - mysql ,想扩容,修改deployment,结果报错:

MountVolume.SetUp failed for volume "pvc-e" : mount command failed, status: Failure, reason: Rook: Mount volume failed: failed to attach volume pvc-ed for pod default/nginx-deployment. Volume is already attached by pod default/nginx-deployment. Status Running

2.分析:the volumes provisioned and mounted by rook-ceph-block are ReadWriteOncemeaning they can not have more than one writer attach to the same volume. 

3.intending for them all to access/share the same volume? If so, you could look at using a shared filesystem instead: https://rook.io/docs/rook/v0.8/filesystem.html

4.want the 3 replicas to each get their own volume, you could consider using a StatefulSet instead that has a volumeClaimTemplate. Specifying the rook-ceph-block storage class in that template would get 3 separate volumes created for you

4.rook架构图

原文地址:https://www.cnblogs.com/hixiaowei/p/10144164.html