[LU-14136] lfs mirror extend prints confusing error messages Created: 12/Nov/20  Updated: 26/Nov/20  Resolved: 18/Nov/20

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.14.0

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

In some error cases (including full devices) lfs mirror extend prints confusing error messages and exits with the wrong exit status:

# lfs setstripe -p ddn_ssd -c2 f0
# dd if=/dev/zero of=f0 bs=1M
dd: error writing ‘f0’: No space left on device
1321+0 records in
1320+0 records out
1384222720 bytes (1.4 GB) copied, 39.7723 s, 34.8 MB/s
# lfs df -h -p ddn_ssd
UUID                       bytes        Used   Available Use% Mounted on
lustre-MDT0000_UUID       122.4M        2.1M      109.4M   2% /mnt/lustre[MDT:0]
lustre-MDT0001_UUID       122.4M        1.8M      109.6M   2% /mnt/lustre[MDT:1]
lustre-OST0000_UUID       732.7M      677.4M      656.0K 100% /mnt/lustre[OST:0]
lustre-OST0001_UUID       732.7M      677.3M      752.0K 100% /mnt/lustre[OST:1]

filesystem_summary:         1.4G        1.3G        1.4M 100% /mnt/lustre

# lfs mirror extend -N -p ddn_ssd f0
lfs mirror extend: cannot create composite file '/mnt/lustre/.
                                                                 :VOLATILE:0000:10E609C1': No space \
left on device
error: lfs mirror extend: f0: cannot create volatile file: Operation not permitted
# echo $?
1


 Comments   
Comment by Gerrit Updater [ 12/Nov/20 ]

John L. Hammond (jhammond@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/40631
Subject: LU-14136 utils: correct error message in lfs mirror extend
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 9a2dcb892dc10721084338be7434470785f87955

Comment by Gerrit Updater [ 26/Nov/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40631/
Subject: LU-14136 utils: correct error message in lfs mirror extend
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 2982978eb97e0607dfba319fcb2ef94d2cb8807a

Generated at Sat Feb 10 03:07:08 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.