-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fails to format #135
Comments
Hi @davidkarlsen |
openebs helm chart 2.12.0 |
@davidkarlsen -- this looks related to #75. Would it be possible to try this on RHEL 8? |
It looks the same. |
Can wiping and zeroing be controlled when the volumes are created? I'd recommend having both enabled by default. |
@davidkarlsen that was the plannd item for LVM LocalPV. We already wipe the lvm partition when we delete the volume. From the error it looks like you already had some partition before and volume landed at the same offset. We need to clear the fs at the creation time also. We had planned this and somehow missed implementing it. Will take care of adding this enhancement. |
Note that the safest is to do wipe at create too. |
@davidkarlsen I have raised a PR(#138) to fix it. Can you try with the image |
@davidkarlsen can you confirm the lvm driver version you are using? It should be there in beginning of the openebs-lvm-plugin container log in the openebs-lvm-node-xxxx daemonset. |
This behavior is due to compatibility issues between the container and the host operating system. openebs/lvm-localpv 0.6.0 version is already erasing the fs signatures on LVM volume before creating the volume. Fix was merged via #88 . This issue can be reproduced by performing the following steps:
|
LVM Driver Version :- 0.8.0 - commit :- 929ae44 |
Hmm, then howcome I experience this problem with 0.8.0? |
Yes, we are passing -f(force) option from 0.6.0 version onwards |
Then it's a bit surprising to meet this in the current release for two reasons:
I'll try to provoke this in a third cluster when I have time. |
Tried now with 2.12.2 chart, still same:
|
same problem on 2.12.5 |
From the logs:
note that there is no |
The issue lies here: kubernetes/mount-utils#5 |
Looks like even with above Sep 12 18:51:53 centos-master kernel: XFS (dm-0): Superblock has unknown read-only compatible features (0x4) enabled.
Sep 12 18:51:53 centos-master kernel: XFS (dm-0): Attempted to mount read-only compatible filesystem read-write.
Sep 12 18:51:53 centos-master kernel: XFS (dm-0): Filesystem can only be safely mounted read only.
Sep 12 18:51:53 centos-master kernel: XFS (dm-0): SB validate failed with error -22. Above error -22 leads to mkfs.xfs version on centos 7: 4.5.0 To resolve issue we have to format xfs filesystem with following option: 'mkfs.xfs -m reflink=0 /dev/lvm/manual1' Attepmt1 formated with xfs without using any flags: bash-5.0# lvcreate -n manual1 -L 1G lvm
Logical volume "manual1" created.
bash-5.0# mkfs.xfs /dev/lvm/manual1
meta-data=/dev/lvm/manual1 isize=512 agcount=4, agsize=65536 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=0
= reflink=1
data = bsize=4096 blocks=262144, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0, ftype=1
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
bash-5.0# mount /dev/lvm/manual1 /var/lib/kubelet/mnt/store1
mount: /var/lib/kubelet/mnt/store1: wrong fs type, bad option, bad superblock on /dev/mapper/lvm-manual1, missing codepage or helper program, or other error. Attepmt2 formated with xfs using -m reflink=0 flag: bash-5.0# lsblk -fa
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
fd0
loop0 squashfs
loop1 squashfs
loop2 squashfs
sda
├─sda1 xfs 8808cf9e-0900-4d7a-af19-36bf061d7a24
└─sda2 xfs 72d0dc49-d80f-4aa8-a51f-51e237deb23e 10.9G 62% /var/lib/kubelet
sdb LVM2_member IvJ3Z4-PaLm-zZ5j-4oxK-H6dS-pkBk-KjcJSG
└─lvm-manual1
sr0
bash-5.0# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
manual1 lvm -wi-a----- 1.00g
bash-5.0# mkfs.xfs -m reflink=0 /dev/lvm/manual1
meta-data=/dev/lvm/manual1 isize=512 agcount=4, agsize=65536 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=0
= reflink=0
data = bsize=4096 blocks=262144, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0, ftype=1
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
bash-5.0# mount /dev/lvm/manual1 /var/lib/kubelet/mnt/store1
bash-5.0#
bash-5.0# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 29G 19G 11G 63% /
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/sda2 29G 19G 11G 63% /plugin
devtmpfs 1.9G 0 1.9G 0% /dev
shm 64M 0 64M 0% /dev/shm
tmpfs 1.9G 12K 1.9G 1% /var/lib/kubelet/pods/32966bd7-fd41-4f49-b572-8a25a1dc802d/volumes/kubernetes.io~secret/kube-proxy-token-tmnfs
tmpfs 1.9G 12K 1.9G 1% /var/lib/kubelet/pods/8e82a39d-d592-4051-83f2-bb372f568246/volumes/kubernetes.io~secret/flannel-token-fpwlc
tmpfs 1.9G 12K 1.9G 1% /var/lib/kubelet/pods/be4ddd06-bed9-4d18-bb54-26e67c77eb74/volumes/kubernetes.io~secret/openebs-maya-operator-token-sj7w5
tmpfs 1.9G 12K 1.9G 1% /run/secrets/kubernetes.io/serviceaccount
---------------------------------------------------------------------------------------------------------------------
| /dev/mapper/lvm-manual1 1014M 33M 982M 4% /var/lib/kubelet/mnt/store1 |
---------------------------------------------------------------------------------------------------------------------
bash-5.0#
Redhat document which says to pass reflink option |
@mittachaitu I believe that's another problem (it has another error-message) - please create a separate issue for that. |
Above is the error I got when tried to mount xfs formatted lvm volume and the issue description is also having a simmilar error.. So I belive both are the same...
The above is from issue description |
@w3aman could you maybe by any chance pull in my hack on mount_utils? Merging into Kubernetes and waiting for a release will take forever. |
A reasonable update at the moment is to mention in our documentation that a combination of xfs and older kernel (< 5.10) may run into this issue and can be mitigated by updated host node kernel version. |
What steps did you take and what happened:
beacause:
Maybe it should force by default or some notes added to the docs.
What did you expect to happen:
formatting should happen
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
):/etc/os-release
):The text was updated successfully, but these errors were encountered: