[LU-15707] Unable to create file without a pool with a pool define on the parent or on the fs root. Created: 30/Mar/22  Updated: 13/Nov/23  Resolved: 13/Dec/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0, Lustre 2.15.4

Type: Bug Priority: Major
Reporter: Etienne Aujames Assignee: Etienne Aujames
Resolution: Fixed Votes: 0
Labels: None
Environment:

2.12.8 LTS/ 2.15


Issue Links:
Related
is related to LU-15658 Interop sanity-flr test_0b test_0c te... Resolved
is related to LU-14480 Setting specific OST's under pool fai... Resolved
is related to LUDOC-511 Add documentation for special/reserve... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

The user need to have a way to force file creation without a pool to select specific OSTs (lfs setstripe --ost) or to use all the OST for the stripe's selections.
The patch https://review.whamcloud.com/41815 remove the pool from the layout when a ostlist is supplied (lfs setstripe --ost) , but this behavior will be changed with LU-15658.

Reproducer:

# lfs setstripe -p ost0 testdir/
# lfs setstripe -p ''  testdir/testfile              
# lfs setstripe -p none  testdir/testfile2           
# lfs setstripe -c2  testdir/testfile3
# lfs getstripe -p testdir/* 
ost0                                             
                                                 
ost0                                             
                                                 
ost0                                             

On 2.12.8:

# lfs setstripe -p ost0 testdir/
# lfs setstripe --ost 1,0  testdir/testfile1              
lfs setstripe: setstripe error for 'testdir/testfile1': Invalid argument
# lfs setstripe --ost 0,1  testdir/testfile2  
# lfs getstripe -p testdir/testfile2
ost0            
                                 

EINVAL is returned because MDT only check if the first OST index is in the pool (see the LU-14480).



 Comments   
Comment by Gerrit Updater [ 30/Mar/22 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/46955
Subject: LU-15707 lod: force creation of a component without a pool
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 4aaaf47b8e61ebb78e74073c0a83bd65d249bc9f

Comment by Gerrit Updater [ 13/Dec/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/46955/
Subject: LU-15707 lod: force creation of a component without a pool
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 6b69d22e4cb738f4f9ff5454a6f9ae17a3a2d6fa

Comment by Peter Jones [ 13/Dec/22 ]

Landed for 2.16

Comment by Gerrit Updater [ 21/Dec/22 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49476
Subject: LU-15707 lod: force creation of a component without a pool
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: d1faa2a5552faf85b2de0f4d9e6d02b99abb2844

Comment by Gerrit Updater [ 21/Dec/22 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49477
Subject: LU-15707 lod: force creation of a component without a pool
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: 0ee7744c64de673631f3391e2bacb5e6fdad3c87

Comment by Gerrit Updater [ 13/Nov/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49477/
Subject: LU-15707 lod: force creation of a component without a pool
Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: fab54100cb822e8b471b0df92ce24f41bd0fd94c

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