llmount.sh does not use fs-specific paths to the ost(s) and mds it mounts
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello!
While trying to mount two different lustre filesystems on a local node with the "llmount.sh" script, I noticed that the path to mount mds and ost(s) was computed like this:
eval mntpt=${!var:-${MOUNT%/*}/$facet} # var is not defined by default, so this removes
# everything after the last '/' of $MOUNT
The code can be found at test-framework.sh in the function "facet_mntpt" around the line 3226.
By default MOUNT is initialized like this:
MOUNT=${MOUNT:-/mnt/${FSNAME}} # default: "/mnt/lustre"Thus the default mountpoints for mds and ost(s) are "/mnt/mds1" and "/mnt/ost1".
Because of that, when trying to do two successive calls to "llmount.sh" with two different values for FSNAME, the second fs to be mounted will unmount the first's mds and ost(s) (paths are identical).
Is there any reason to truncate the MOUNT variable like this ? Shouldn't the mountpoint path look more like "/mnt/<fsname>-mds1" and "/mnt/<fsname>-ost1" ?
Regards,
Quentin Bouget
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20160510/809629ec/attachment.htm>
Dilger
Quoted 29 lines · Quentin BOUGET
Hello!
While trying to mount two different lustre filesystems on a local node with the "
llmount.sh" script, I noticed that the path to mount mds and ost(s) was computed like this:eval mntpt=${!var:-${MOUNT%/*}/$facet} # var is not defined by default, so this removes
#everything after the last '/' of $MOUNT
The code can be found at
test-framework.shin the function "facet_mntpt" around the line 3226.By default MOUNT is initialized like this:
MOUNT=${MOUNT:-/mnt/${FSNAME}} # default: "
/mnt/lustre"Thus the default mountpoints for mds and ost(s) are "
/mnt/mds1" and "/mnt/ost1".
Because of that, when trying to do two successive calls to "llmount.sh" with two different values for FSNAME, the second fs to be mounted will unmount the first's mds and ost(s) (paths are identical).
Quoted 3 lines
Is there any reason to truncate the MOUNT variable like this ? Shouldn't the mountpoint path look more like "/mnt/<fsname>-mds1" and "/mnt/<fsname>-ost1"?
I don't think there is any particular reason it was implemented this way, just that it has worked for many years without the need to include the fsname into the MDT/OST mount points... :-)
If you want to expand it to allow exporting multiple filesystems from the same MDS/OSS nodes then your suggestion to use $FSNAME-$facet in facet_mntpt() is reasonable. Please submit a patch to verify this is working correctly. There may be some places in the tests that aren't using facet_mntpt() yet.
Cheers, Andreas
Signature · 4 lines
Andreas Dilger Lustre Principal Architect Intel High Performance Data Division
Drokin
Quoted 38 lines · Andreas
Quoted 29 lines · Quentin BOUGET
Hello!
While trying to mount two different lustre filesystems on a local node with the "
llmount.sh" script, I noticed that the path to mount mds and ost(s) was computed like this:eval mntpt=${!var:-${MOUNT%/*}/$facet} # var is not defined by default, so this removes
#everything after the last '/' of $MOUNT
The code can be found at
test-framework.shin the function "facet_mntpt" around the line 3226.By default MOUNT is initialized like this:
MOUNT=${MOUNT:-/mnt/${FSNAME}} # default: "
/mnt/lustre"Thus the default mountpoints for mds and ost(s) are "
/mnt/mds1" and "/mnt/ost1".
Because of that, when trying to do two successive calls to "llmount.sh" with two different values for FSNAME, the second fs to be mounted will unmount the first's mds and ost(s) (paths are identical).Quoted 3 lines
Is there any reason to truncate the MOUNT variable like this ? Shouldn't the mountpoint path look more like "/mnt/<fsname>-mds1" and "/mnt/<fsname>-ost1"?
I don't think there is any particular reason it was implemented this way, just that it has worked for many years without the need to include the fsname into the MDT/OST mount points... :-)
Quoted 5 lines
If you want to expand it to allow exporting multiple filesystems from the same MDS/OSS nodes then your suggestion to use $FSNAME-$facet in
facet_mntpt()is reasonable. Please submit a patch to verify this is working correctly. There may be some places in the tests that aren't usingfacet_mntpt()yet.
I guess to expand on this, since llmount.sh is primarily a testing infrastructure and typically only one filesystem at a time is tested, the more than one mountpoint was never bothering anyone till you discovered this bit, I guess.
Bye,
Oleg
Le 11/05/2016 03:17, Drokin, Oleg a ?crit :
Quoted 43 lines · Andreas
Quoted 37 lines · Quentin BOUGET
Quoted 28 lines
Hello!
While trying to mount two different lustre filesystems on a local node with the "
llmount.sh" script, I noticed that the path to mount mds and ost(s) was computed like this:eval mntpt=${!var:-${MOUNT%/*}/$facet} # var is not defined by default, so this removes
#everything after the last '/' of $MOUNT
The code can be found at
test-framework.shin the function "facet_mntpt" around the line 3226.By default MOUNT is initialized like this:
MOUNT=${MOUNT:-/mnt/${FSNAME}} # default: "
/mnt/lustre"Thus the default mountpoints for mds and ost(s) are "
/mnt/mds1" and "/mnt/ost1".
Because of that, when trying to do two successive calls to "llmount.sh" with two different values for FSNAME, the second fs to be mounted will unmount the first's mds and ost(s) (paths are identical).Quoted 3 lines
Is there any reason to truncate the MOUNT variable like this ? Shouldn't the mountpoint path look more like "/mnt/<fsname>-mds1" and "/mnt/<fsname>-ost1"?
I don't think there is any particular reason it was implemented this way, just that it has worked for many years without the need to include the fsname into the MDT/OST mount points... :-)
Quoted 5 lines
If you want to expand it to allow exporting multiple filesystems from the same MDS/OSS nodes then your suggestion to use $FSNAME-$facet in
facet_mntpt()is reasonable. Please submit a patch to verify this is working correctly. There may be some places in the tests that aren't usingfacet_mntpt()yet.
Quoted 9 lines
I guess to expand on this, since
llmount.shis primarily a testing infrastructure and typically only one filesystem at a time is tested, the more than one mountpoint was never bothering anyone till you discovered this bit, I guess.Bye,
Oleg
Ok, thank you. I will submit a patch about it.
Bye,
Quentin
Quoted 50 lines
Le 11/05/2016 03:17, Drokin, Oleg a ?crit :
Quoted 48 lines · Andreas
Quoted 37 lines · Quentin BOUGET
Quoted 28 lines
Hello!
While trying to mount two different lustre filesystems on a local node with the "
llmount.sh" script, I noticed that the path to mount mds and ost(s) was computed like this:eval mntpt=${!var:-${MOUNT%/*}/$facet} # var is not defined by default, so this removes
#everything after the last '/' of $MOUNT
The code can be found at
test-framework.shin the function "facet_mntpt" around the line 3226.By default MOUNT is initialized like this:
MOUNT=${MOUNT:-/mnt/${FSNAME}} # default: "
/mnt/lustre"Thus the default mountpoints for mds and ost(s) are "
/mnt/mds1" and "/mnt/ost1".
Because of that, when trying to do two successive calls to "llmount.sh" with two different values for FSNAME, the second fs to be mounted will unmount the first's mds and ost(s) (paths are identical).Quoted 3 lines
Is there any reason to truncate the MOUNT variable like this ? Shouldn't the mountpoint path look more like "/mnt/<fsname>-mds1" and "/mnt/<fsname>-ost1"?
I don't think there is any particular reason it was implemented this way, just that it has worked for many years without the need to include the fsname into the MDT/OST mount points... :-)
Quoted 5 lines
If you want to expand it to allow exporting multiple filesystems from the same MDS/OSS nodes then your suggestion to use $FSNAME-$facet in
facet_mntpt()is reasonable. Please submit a patch to verify this is working correctly. There may be some places in the tests that aren't usingfacet_mntpt()yet.I guess to expand on this, since
llmount.shis primarily a testing infrastructure and typically only one filesystem at a time is tested, the more than one mountpoint was never bothering anyone till you discovered this bit, I guess.
Quoted 5 lines
Quoted 4 lines
Bye,
OlegOk, thank you. I will submit a patch about it.
Please post a link to the JIRA ticket here. Thanks for the work.
Quoted 7 lines
Bye,
Quentin
_______________________________________________
lustre-devel mailing list
lustre-devel at lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org
Le 11/05/2016 17:58, James Simmons a ?crit :
Quoted 49 lines
Quoted 49 lines
Le 11/05/2016 03:17, Drokin, Oleg a ?crit :
Quoted 48 lines · Andreas
Quoted 37 lines · Quentin BOUGET
Quoted 28 lines
Hello!
While trying to mount two different lustre filesystems on a local node with the "
llmount.sh" script, I noticed that the path to mount mds and ost(s) was computed like this:eval mntpt=${!var:-${MOUNT%/*}/$facet} # var is not defined by default, so this removes
#everything after the last '/' of $MOUNT
The code can be found at
test-framework.shin the function "facet_mntpt" around the line 3226.By default MOUNT is initialized like this:
MOUNT=${MOUNT:-/mnt/${FSNAME}} # default: "
/mnt/lustre"Thus the default mountpoints for mds and ost(s) are "
/mnt/mds1" and "/mnt/ost1".
Because of that, when trying to do two successive calls to "llmount.sh" with two different values for FSNAME, the second fs to be mounted will unmount the first's mds and ost(s) (paths are identical).Quoted 3 lines
Is there any reason to truncate the MOUNT variable like this ? Shouldn't the mountpoint path look more like "/mnt/<fsname>-mds1" and "/mnt/<fsname>-ost1"?
I don't think there is any particular reason it was implemented this way, just that it has worked for many years without the need to include the fsname into the MDT/OST mount points... :-)
Quoted 5 lines
If you want to expand it to allow exporting multiple filesystems from the same MDS/OSS nodes then your suggestion to use $FSNAME-$facet in
facet_mntpt()is reasonable. Please submit a patch to verify this is working correctly. There may be some places in the tests that aren't usingfacet_mntpt()yet.I guess to expand on this, since
llmount.shis primarily a testing infrastructure and typically only one filesystem at a time is tested, the more than one mountpoint was never bothering anyone till you discovered this bit, I guess.
Quoted 13 lines
Quoted 5 lines
Quoted 4 lines
Bye,
OlegOk, thank you. I will submit a patch about it.
Please post a link to the JIRA ticket here. Thanks for the work.
Quoted 6 lines
Bye,
Quentin
_______________________________________________
lustre-devel mailing list
lustre-devel at lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org
Here is a link to the JIRA ticket:
https://jira.hpdd.intel.com/browse/LU-8132