Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Upstream, Lustre 2.12.4
-
3
-
9223372036854775807
Description
# mkdir /mnt/lustre/d # lfs setstripe -E 4M -c 1 -E 64M -c 4 /mnt/lustre/d/f1; echo asd >>/mnt/lustre/d/f1 -bash: echo: write error: Invalid argument
and in the log:
00000004:80000000:1.0:1586276528.329048:0:6464:0:(lod_object.c:6811:lod_declare_update_plain()) lustre-MDT0000-mdtlov: the defined layout [0, 0x4000000) does not covers the write range [0x0, 0xffffffffffffffff)
00000004:00000001:1.0:1586276528.329049:0:6464:0:(lod_object.c:6816:lod_declare_update_plain()) Process leaving via out (rc=18446744073709551594 : -22 : 0xffffffffffffffea)
Attachments
Issue Links
- is related to
-
LU-17403 lfs migrate: cannot get group lock: No space left on device
-
- Open
-
I would be OK with a warning printed by "lfs setstripe in the case of a missing eof component, at least until we fix the "O_APPEND to short layout" issue. I wouldn't want to prevent that usage, since it still has potential value in some cases even without O_APPEND (e.g. limiting maximum file size). It would be even better to fix the O_APPEND case so that it works as expected (allowing appends up to the end of the last extent before reporting EFBIG like it would if the write exceeded the maximum allowed file size.