Re: LVM2 test breakage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Thanks,
Kuai





[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux