Skip to contentSkip to conversation

llmount.sh does not use fs-specific paths to the ost(s) and mds it mounts

lustre-devel Quentin BOUGET 3 participants 6 messages May 10, 2016 – May 12, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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>

#2 lore raw
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.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).

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
#3 lore raw
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.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).

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 using facet_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

#4 lore raw

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.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).

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 using facet_mntpt() yet.

Quoted 9 lines

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

Ok, thank you. I will submit a patch about it.

Bye,
Quentin

#5 lore raw
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.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).

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 using facet_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.

Quoted 5 lines
Quoted 4 lines

Bye,
Oleg

Ok, 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

#6 lore raw

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.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).

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 using facet_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.

Quoted 13 lines
Quoted 5 lines
Quoted 4 lines

Bye,
Oleg

Ok, 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