Hi,
在 2025/05/20 11:47, Su Yue 写道:
On Tue 20 May 2025 at 09:53, Yu Kuai <yuku...@huaweicloud.com> wrote:
Hi,
在 2025/05/20 9:45, Yu Kuai 写道:
dd if=/dev/zero of=/mnt/test/test.img bs=1048576 count=0 seek=5000000003
dd: failed to truncate to 5242880003145728 bytes in output file
'/mnt/test/test.img': File too large
And this is because ext4 has hard limit of file size, 2^48:
fs/ext4/super.c: sb->s_maxbytes =
ext4_max_size(sb->s_blocksize_bits,
has_huge_files);
So, I can't use ext4 for this testcase. :(
Sadly, after switching to xfs, with 2^64 file size limit, I got a new
error:
[ 0:10.980] # 200 TiB raid1
[ 0:10.980] lvcreate --type raid1 -m 1 -L 200T -n $lv1 $vg1 --nosync
[ 0:10.980] #lvcreate-large-raid.sh:51+ lvcreate --type raid1 -m 1 -L
200T -n
LV1 LVMTEST1868vg1 --nosync
[ 0:10.980] File descriptor 6 (/dev/pts/0) leaked on lvm invocation.
Parent PID
1868: bash
[ 0:11.226] WARNING: New raid1 won't be synchronized. Don't read
what you
didn't write!
[ 0:11.397] Failed to deactivate LVMTEST1868vg1/LV1_rmeta_0.
[ 0:11.776] Internal error: Removing still active LV
LVMTEST1868vg1/LV1_rmeta_0.
[ 0:11.966] /root/lvm2/test/shell/lvcreate-large-raid.sh: line 51:
2071 Aborted
(core dumped) lvcreate --type raid1 -m 1 -L 200T -n $lv1 $vg1 --nosync
[ 0:14.059] set +vx; STACKTRACE; set -vx
[ 0:14.061] ##lvcreate-large-raid.sh:51+ set +vx
[ 0:14.061] ## - /root/lvm2/test/shell/lvcreate-large-raid.sh:51
[ 0:14.065] ## 1 STACKTRACE() called from
/root/lvm2/test/shell/lvcreate-large-raid.sh:51
Looks like lvcreate crashed.
Can't reproduce it on v6.15-rc7 and lvm2 HEAD
37b28216fd029ffe2fac815b16645aeb9d352235:
/dev/vdc on /mnt type xfs
(rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
make check_local T=shell/lvcreate-large-raid.sh LVM_TEST_AUX_TRACE=1
VERBOSE=1 LVM_TEST_DIR=/mnt
What's your kernel and lvm versions?
Thanks for the notice, I just switched lvm to this commit, make
distclean, and them everything looks fine now. :)
Thanks,
Kuai
--
Su
Thanks,
Kuai
.