Bug 6243 - qcow2 on ocfs2 filesystem when cluster size 1M install xfs os failed
Summary: qcow2 on ocfs2 filesystem when cluster size 1M install xfs os failed
Status: NEW
Alias: None
Product: Upstream
Classification: Unclassified
Component: fs (show other bugs) fs
Version: unspecified
Hardware: aarch64 Linux
: P3-Medium S1-blocker
Target Milestone: ---
Assignee: Joseph Qi
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-28 14:19 UTC by cybertan
Modified: 2024-06-20 19:09 UTC (History)
3 users (show)

See Also:


Attachments
the dmesg kernel log (62.71 KB, image/png)
2023-08-28 14:19 UTC, cybertan
Details
Kylin-Server-10-SP1-Release-Build20-20210518-aarch64.iso install log (50.58 KB, image/png)
2023-08-28 14:21 UTC, cybertan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cybertan 2023-08-28 14:19:40 UTC
Created attachment 874 [details]
the dmesg kernel log

Description of problem:

install A guest os (xfs)  will be failed when the disk file is in a ocfs2(cluster size 1M ) of a host (the host os pagesize 64K )


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:


1: hostos aarch64  environment,  pagesize 64K
2: mkfs.ocfs2 -b 4k -C 1M -L V1637060513  -N 32  -F -x  /dev/sdi4
   this issue just happen when clustersize is not 4k(default)
3: mount /dev/sdi4 /mnt/
4: qemu-img create -f qcow2 /mnt/ocfs2issue 20G
5: use the /mnt/ocfs2issue file as a disk image to install a OS.
6: when the default filesystem is xfs, and format the disk, it will report some error


Actual results:

the install failed

Expected results:
 the install successed 

Additional info:
Comment 1 cybertan 2023-08-28 14:21:08 UTC
Created attachment 875 [details]
Kylin-Server-10-SP1-Release-Build20-20210518-aarch64.iso install log
Comment 2 Joseph Qi alibaba_cloud_group 2023-08-28 14:27:53 UTC
(In reply to cybertan from comment #0)
> Created attachment 874 [details]
> the dmesg kernel log
> 
> Description of problem:
> 
> install A guest os (xfs)  will be failed when the disk file is in a
> ocfs2(cluster size 1M ) of a host (the host os pagesize 64K )
> 
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> 
> 
> Steps to Reproduce:
> 
> 
> 1: hostos aarch64  environment,  pagesize 64K
> 2: mkfs.ocfs2 -b 4k -C 1M -L V1637060513  -N 32  -F -x  /dev/sdi4
>    this issue just happen when clustersize is not 4k(default)
> 3: mount /dev/sdi4 /mnt/
> 4: qemu-img create -f qcow2 /mnt/ocfs2issue 20G
> 5: use the /mnt/ocfs2issue file as a disk image to install a OS.
> 6: when the default filesystem is xfs, and format the disk, it will report
> some error
> 
> 
> Actual results:
> 
> the install failed
> 
> Expected results:
>  the install successed 
> 
> Additional info:

What's your kernel version?
Comment 3 cybertan 2023-08-28 14:34:30 UTC
(In reply to josephqi from comment #2)
> (In reply to cybertan from comment #0)
> > Created attachment 874 [details]
> > the dmesg kernel log
> > 
> > Description of problem:
> > 
> > install A guest os (xfs)  will be failed when the disk file is in a
> > ocfs2(cluster size 1M ) of a host (the host os pagesize 64K )
> > 
> > 
> > Version-Release number of selected component (if applicable):
> > 
> > 
> > How reproducible:
> > 
> > 
> > Steps to Reproduce:
> > 
> > 
> > 1: hostos aarch64  environment,  pagesize 64K
> > 2: mkfs.ocfs2 -b 4k -C 1M -L V1637060513  -N 32  -F -x  /dev/sdi4
> >    this issue just happen when clustersize is not 4k(default)
> > 3: mount /dev/sdi4 /mnt/
> > 4: qemu-img create -f qcow2 /mnt/ocfs2issue 20G
> > 5: use the /mnt/ocfs2issue file as a disk image to install a OS.
> > 6: when the default filesystem is xfs, and format the disk, it will report
> > some error
> > 
> > 
> > Actual results:
> > 
> > the install failed
> > 
> > Expected results:
> >  the install successed 
> > 
> > Additional info:
> 
> What's your kernel version?

i have test the host kernel 4.19.90 and 5.10 (the lastest openeuleros 20-03-LTS and 22-03-LTS)
Comment 4 cybertan 2023-08-28 14:43:12 UTC
1: The x86 default page size  is 4k ,  and i have not meet this issue.

2: the aarch64 default pagesize  is 64K,  centos8, kylinos, openeuleros ...,
   when the ocfs2 filesystem clustersize is 1M.
   and the guest os use xfs, and this issue will reproduce always. 

3: i have not test the lastest kernel, i just have phytium2500 cpu, and maybe cherry some special patch on the laster kernel for host boot.
and i will do this test later.
Comment 5 gaoxiang alibaba_cloud_group 2023-08-28 15:22:39 UTC
why you raised a issue of openeuler on openanolis bugzilla?
Comment 6 cybertan 2023-08-28 15:42:37 UTC
(In reply to gaoxiang from comment #5)
> why you raised a issue of openeuler on openanolis bugzilla?

sorry, it is my mistake.  
i will use the laster openanolis kernel to test. maybe reopen it if we can reproduce it.
Comment 7 gaoxiang alibaba_cloud_group 2023-08-28 15:45:58 UTC
(In reply to cybertan from comment #6)
> (In reply to gaoxiang from comment #5)
> > why you raised a issue of openeuler on openanolis bugzilla?
> 
> sorry, it is my mistake.  
> i will use the laster openanolis kernel to test. maybe reopen it if we can
> reproduce it.

currently openanolis aarch64 default page size is 4k.
Comment 8 Joseph Qi alibaba_cloud_group 2023-08-28 15:53:59 UTC
(In reply to cybertan from comment #4)
> 1: The x86 default page size  is 4k ,  and i have not meet this issue.
> 
> 2: the aarch64 default pagesize  is 64K,  centos8, kylinos, openeuleros ...,
>    when the ocfs2 filesystem clustersize is 1M.
>    and the guest os use xfs, and this issue will reproduce always. 
> 
> 3: i have not test the lastest kernel, i just have phytium2500 cpu, and
> maybe cherry some special patch on the laster kernel for host boot.
> and i will do this test later.

It seems that ocfs2 doesn't support page size 64k, I'll confirm it when I'm free.
Comment 9 ccmagic 2024-06-20 19:09:50 UTC
When gusest os use xfs filesystem, i have the same problem. 
ocfs2 doesn't support page size 64k?