Best of spectrum scale
Hi, just came across this: /usr/lpp/mmfs/bin/mmafmctl fs3101 getstate mmafmctl: Invalid current working directory detected: /tmp/A The command may fail in an unexpected way. Processing continues .. It’s like a bus driver telling you that the brakes don’t work and next speeding up even more. Honestly, why not just fail with a nice error messages …. Don’t tell some customer asked for this to make the command more resilient … Cheers, Heiner -- ======================= Heinrich Billich ETH Zürich Informatikdienste Tel.: +41 44 632 72 56 heinrich.billich@id.ethz.ch ========================
I think a better metaphor is that the bridge we just crossed has collapsed and as long as we do not need to cross it again our journey should reach its intended destination :-) As I understand the intent of this message is to alert the user (and our support teams) that the directory from which a command was executed no longer exist. Should that be of consequence to the execution of the command then failure is not unexpected, however, many commands do not make use of the current directory so they likely will succeed. If you consider the view point of a command failing because the working directory was removed, but not knowing that was the root cause, I think you can see why this message was added into the administration infrastructure. It allows this odd failure scenario to be quickly recognized saving time for both the user and IBM support, in tracking down the root cause. Regards, The Spectrum Scale (GPFS) team ------------------------------------------------------------------------------------------------------------------ If you feel that your question can benefit other users of Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0... . If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact 1-800-237-5511 in the United States or your local IBM Service Center in other countries. The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team. From: "Billich Heinrich Rainer (ID SD)" <heinrich.billich@id.ethz.ch> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 09/07/2020 09:29 AM Subject: [EXTERNAL] [gpfsug-discuss] Best of spectrum scale Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi, just came across this: /usr/lpp/mmfs/bin/mmafmctl fs3101 getstate mmafmctl: Invalid current working directory detected: /tmp/A The command may fail in an unexpected way. Processing continues .. It’s like a bus driver telling you that the brakes don’t work and next speeding up even more. Honestly, why not just fail with a nice error messages …. Don’t tell some customer asked for this to make the command more resilient … Cheers, Heiner -- ======================= Heinrich Billich ETH Zürich Informatikdienste Tel.: +41 44 632 72 56 heinrich.billich@id.ethz.ch ======================== _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On 08/09/2020 14:04, IBM Spectrum Scale wrote:
I think a better metaphor is that the bridge we just crossed has collapsed and as long as we do not need to cross it again our journey should reach its intended destination :-) As I understand the intent of this message is to alert the user (and our support teams) that the directory from which a command was executed no longer exist. Should that be of consequence to the execution of the command then failure is not unexpected, however, many commands do not make use of the current directory so they likely will succeed. If you consider the view point of a command failing because the working directory was removed, but not knowing that was the root cause, I think you can see why this message was added into the administration infrastructure. It allows this odd failure scenario to be quickly recognized saving time for both the user and IBM support, in tracking down the root cause.
I think the issue being taken is that you get an error message of The command may fail in an unexpected way. Processing continues .. Now to my mind that is an instant WTF, and if your description is correct the command should IMHO have exiting saying something like Working directory vanished, exiting command If there is any chance of the command failing then it should not be executed IMHO. I would rather issue it again from a directory that exists. The way I look at it is that file systems have "state", that is if something goes wrong then you could be looking at extended downtime as you break the backup out and start restoring. GPFS file systems have a tendency to be large, so even if you have a backup it is not a pleasant process and could easily take weeks to get things back to rights. Consequently most system admins would prefer the command does not continue if there is any possibility of it failing and messing up the "state" of my file system. That's unlike say the configuration on a network switch that can be quickly be put back with minimal interruption. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
I think it is incorrect to assume that a command that continues after detecting the working directory has been removed is going to cause damage to the file system. Further, there is no a priori means to confirm if the lack of a working directory will cause the command to fail. I will agree that there may be admins that would prefer the command fail fast and allow them to restart the command anew, but I suspect there are admins that prefer the command press ahead in hopes that it can complete successfully and not require another execution. I'm sure we can conjure scenarios that support both points of view. Perhaps what is desired is a message that more clearly describes what is being undertaken. For example, "The current working directory, <directory_name>, no longer exists. Execution continues." Regards, The Spectrum Scale (GPFS) team ------------------------------------------------------------------------------------------------------------------ If you feel that your question can benefit other users of Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0... . If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact 1-800-237-5511 in the United States or your local IBM Service Center in other countries. The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team. From: Jonathan Buzzard <jonathan.buzzard@strath.ac.uk> To: gpfsug-discuss@spectrumscale.org Date: 09/08/2020 12:10 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Best of spectrum scale Sent by: gpfsug-discuss-bounces@spectrumscale.org On 08/09/2020 14:04, IBM Spectrum Scale wrote:
I think a better metaphor is that the bridge we just crossed has collapsed and as long as we do not need to cross it again our journey should reach its intended destination :-) As I understand the intent of
this message is to alert the user (and our support teams) that the directory from which a command was executed no longer exist. Should that be of consequence to the execution of the command then failure is not unexpected, however, many commands do not make use of the current directory so they likely will succeed. If you consider the view point of a command failing because the working directory was removed, but not knowing that was the root cause, I think you can see why this message was added into the administration infrastructure. It allows this odd failure scenario to be quickly recognized saving time for both the user and IBM support, in tracking down the root cause.
I think the issue being taken is that you get an error message of The command may fail in an unexpected way. Processing continues .. Now to my mind that is an instant WTF, and if your description is correct the command should IMHO have exiting saying something like Working directory vanished, exiting command If there is any chance of the command failing then it should not be executed IMHO. I would rather issue it again from a directory that exists. The way I look at it is that file systems have "state", that is if something goes wrong then you could be looking at extended downtime as you break the backup out and start restoring. GPFS file systems have a tendency to be large, so even if you have a backup it is not a pleasant process and could easily take weeks to get things back to rights. Consequently most system admins would prefer the command does not continue if there is any possibility of it failing and messing up the "state" of my file system. That's unlike say the configuration on a network switch that can be quickly be put back with minimal interruption. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On 08/09/2020 18:37, IBM Spectrum Scale wrote:
I think it is incorrect to assume that a command that continues after detecting the working directory has been removed is going to cause damage to the file system.
No I am not assuming it will cause damage. I am making the fairly reasonable assumption that any command which fails has an increased probability of causing damage to the file system over one that completes successfully.
Further, there is no a priori means to confirm if the lack of a working directory will cause the command to fail.
Which is why baling out is a more sensible default that ploughing on regardless.
I will agree that there may be admins that would prefer the command fail fast and allow them to restart the command anew, but I suspect there are admins that prefer the command press ahead in hopes that it can complete successfully and not require another execution.
I am sure that there are inexperienced admins who have yet to be battle scared that would want such reckless default behaviour. Pandering to their naivety is not a sensible approach IMHO. The downside if a large file system (and production GPFS file systems tend to be large) going "puff" is so massive that the precaution principle should apply. One wonders if we are seeing the difference between a US and European mindset here.
I'm sure we can conjure scenarios that support both points of view. Perhaps what is desired is a message that more clearly describes what is being undertaken. For example, "The current working directory, <directory_name>, no longer exists. Execution continues."
That is what --force is for. If you are sufficiently reckless that you want something to continue in the event of a possible error you have the option to stick that on every command you run. Meanwhile the sane admins get a system that defaults to proceeding in the safer manner possible. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
On Wed, Sep 09, 2020 at 12:02:53PM +0100, Jonathan Buzzard wrote:
On 08/09/2020 18:37, IBM Spectrum Scale wrote:
I think it is incorrect to assume that a command that continues after detecting the working directory has been removed is going to cause damage to the file system.
No I am not assuming it will cause damage. I am making the fairly reasonable assumption that any command which fails has an increased probability of causing damage to the file system over one that completes successfully.
I think there is another angle here, which is that this command's output has the possibility of triggering an "oh ----" (fill in your preferred colorful metaphor here) moment, followed up by a panicked Ctrl-C. That reaction has the possibility of causing its own problems (i.e. not sure if mmafmctl touches CCR, but aborting it midway could leave CCR inconsistent). I'm with Jonathan here: the command should fail with an informative message, and the admin can correct the problem (just cd somewhere else). -- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department (UW Medicine), System Administrator -- Foege Building S046, (206)-685-7354 -- Pronouns: He/Him/His
On Sep 9, 2020, at 10:04 AM, Skylar Thompson <skylar2@uw.edu> wrote:
On Wed, Sep 09, 2020 at 12:02:53PM +0100, Jonathan Buzzard wrote:
On 08/09/2020 18:37, IBM Spectrum Scale wrote:
I think it is incorrect to assume that a command that continues after detecting the working directory has been removed is going to cause damage to the file system.
No I am not assuming it will cause damage. I am making the fairly reasonable assumption that any command which fails has an increased probability of causing damage to the file system over one that completes successfully.
I think there is another angle here, which is that this command's output has the possibility of triggering an "oh ----" (fill in your preferred colorful metaphor here) moment, followed up by a panicked Ctrl-C. That reaction has the possibility of causing its own problems (i.e. not sure if mmafmctl touches CCR, but aborting it midway could leave CCR inconsistent). I'm with Jonathan here: the command should fail with an informative message, and the admin can correct the problem (just cd somewhere else).
I’m now (genuinely) curious as to what Spectrum Scale commands *actually* depend on the working directory existing and why. They shouldn’t depend on anything but existing well-known directories (logs, SDR, /tmp, et cetera) and any file or directories passed as arguments to the command. This is the Unix way. It seems like the *right* solution is to armor commands against doing something “bad” if they lose a resource required to complete their task. If $PWD goes away because an admin’s home goes away in the middle of a long restripe, it’s better to complete the work and let them look in the logs. It's not Scale’s problem if something not affecting its work happens. Maybe I’ve got a blind spot here... -- Stephen
On 11/09/2020 15:25, Stephen Ulmer wrote:
On Sep 9, 2020, at 10:04 AM, Skylar Thompson <skylar2@uw.edu <mailto:skylar2@uw.edu>> wrote:
On Wed, Sep 09, 2020 at 12:02:53PM +0100, Jonathan Buzzard wrote:
On 08/09/2020 18:37, IBM Spectrum Scale wrote:
I think it is incorrect to assume that a command that continues after detecting the working directory has been removed is going to cause damage to the file system.
No I am not assuming it will cause damage. I am making the fairly reasonable assumption that any command which fails has an increased probability of causing damage to the file system over one that completes successfully.
I think there is another angle here, which is that this command's output has the possibility of triggering an "oh ----" (fill in your preferred colorful metaphor here) moment, followed up by a panicked Ctrl-C. That reaction has the possibility of causing its own problems (i.e. not sure if mmafmctl touches CCR, but aborting it midway could leave CCR inconsistent). I'm with Jonathan here: the command should fail with an informative message, and the admin can correct the problem (just cd somewhere else).
I’m now (genuinely) curious as to what Spectrum Scale commands *actually* depend on the working directory existing and why. They shouldn’t depend on anything but existing well-known directories (logs, SDR, /tmp, et cetera) and any file or directories passed as arguments to the command. This is the Unix way.
It seems like the *right* solution is to armor commands against doing something “bad” if they lose a resource required to complete their task. If $PWD goes away because an admin’s home goes away in the middle of a long restripe, it’s better to complete the work and let them look in the logs. It's not Scale’s problem if something not affecting its work happens.
Maybe I’ve got a blind spot here...
This jogged my memory that best practice would be to have a call to chdir to set the working directory to "/" very early on. Before anything critical is started. I am 99.999% sure that its covered in Steven's (can't check as I am away for the weekend) so really there is no excuse. If / goes away then really really bad things have happened and it all sort of becomes moot anyway. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
participants (5)
-
Billich Heinrich Rainer (ID SD) -
IBM Spectrum Scale -
Jonathan Buzzard -
Skylar Thompson -
Stephen Ulmer
