You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As already said we need a specialized extractor for the lustre parallel file system.
Please start with the points from our last meeting.
Don't mention the lctl command at the moment, just focus on the lustre API.
The lctl stuff must be executed on the lustre server nodes, so that this might be another special case for the future but not in this task.
Hint to use the lustre API, include #include <lustre/lustreapi.h> and link against liblustreapi-llustreapi afterward. Lustre is a system installation on taurus, under /usr/lib64..., therefore loading additional modules is not necessary.
@blastmaster
For gathering striping information we have to create a dummy file on a lustre mountpoint. Functions for dummy file creation and getting file striping information allready exists, but we still need to find a place to create that file.
Right now, to find a place, we gather every lustre mountpoint using the lustreapi and then pass the mountpoint path to the following function:
<< "[Lustre_Extractor] could not delete dummy file:";
}
returntrue;
}
}
returnfalse;
}
Basicly this function gets the username of the current user, appends it to the mountpoint path, checks if that path exists and if that is the case it creates the dummy file.
The problem is that the dummy file creation only works if an folder named like the current user exists on that mountpoint. This approach could fail on other HPCs.
Another approach would be to check every folder on the mountpoint for access rights which could be a very time intensive task.
Do you have any recommendation on handling this problem?
Activity
blastmaster commentedon Nov 22, 2018
Hint to use the lustre API, include
#include <lustre/lustreapi.h>and link againstliblustreapi-llustreapiafterward. Lustre is a system installation on taurus, under/usr/lib64..., therefore loading additional modules is not necessary.k4lipso commentedon Nov 22, 2018
Overview of lfs commands. If they have a tick they are working and will be implemented.
file required
no file required
k4lipso commentedon Mar 19, 2019
@blastmaster
For gathering striping information we have to create a dummy file on a lustre mountpoint. Functions for dummy file creation and getting file striping information allready exists, but we still need to find a place to create that file.
Right now, to find a place, we gather every lustre mountpoint using the lustreapi and then pass the mountpoint path to the following function:
sysmap/lib/src/linux/lustre_extractor.cc
Lines 298 to 322 in 3bf46ac
Basicly this function gets the username of the current user, appends it to the mountpoint path, checks if that path exists and if that is the case it creates the dummy file.
The problem is that the dummy file creation only works if an folder named like the current user exists on that mountpoint. This approach could fail on other HPCs.
Another approach would be to check every folder on the mountpoint for access rights which could be a very time intensive task.
Do you have any recommendation on handling this problem?