[LU-680] superblock <-> mount point mapping Created: 12/Sep/11  Updated: 08/Apr/12  Resolved: 13/Dec/11

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.2.0, Lustre 2.1.2

Type: Improvement Priority: Minor
Reporter: Richard Henwood (Inactive) Assignee: Richard Henwood (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 4808

 Description   

A number of use cases exist where it would be helpful to be able to map between superblock and mount point on clients.



 Comments   
Comment by Richard Henwood (Inactive) [ 12/Sep/11 ]

Two approaches have been suggested:

  1. A symlink from the llite proc fs entry for the mounted file system to the mount point.
  2. A additional call in lfs.
Comment by Richard Henwood (Inactive) [ 12/Sep/11 ]

By adding an additional call to lfs (say 'lfs mount') it is possible to exploit already existing code (llapi_file_get_lov_uuid). This is my preferred approach. The symlink alternative is considered higher risk and is not considered to be consistent with the /procfs and mount abstractions.

The proposed solution is to introduce a 'mount' command to lfs.
This would work as follows:

[root@rhel6_21 lustre-release]# lfs mount
lustre-ffff88002738bc00 on /mnt/lustre
Comment by Richard Henwood (Inactive) [ 12/Sep/11 ]

change for review at:

http://review.whamcloud.com/1373

Comment by John Hammond [ 13/Sep/11 ]

First off 'mount' is a terrible name for this command. I suggest 'getname' after the relevant ioctl(), although others have objected to that too. Second I think the behavior could be better tailored to the use case (associating subdirectories of /proc/fs/lustre/

{llite,...}

/ with mount points). I propose the usage:

lfs getname [PATH]...

List llite directory names corresponding to the Lustre mount points containing each PATH. If no PATH arguments are given then list llite directory names corresponding to all currently mounted Lustre filesystems.

Examples:

$ lfs getname /share/home/117/jhammond/foo /scratch/117/jhammond/bar
/share/home/117/jhammond/foo share-ffff8102118ccc00
/scratch/117/jhammond/bar scratch-ffff81042f2c8800

$ lfs getname
/share share-ffff8102118ccc00
/work work-ffff810427d94c00
/scratch scratch-ffff81042f2c8800
/corral corral-ffff810202036400

Since finding the relevant osc and mdc directories require splitting up fsname and sb address, it may be nicer just to print them separately.

Comment by Richard Henwood (Inactive) [ 13/Sep/11 ]

Ok, this makes sense to me. I'm modifying my change to this effect.

Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » x86_64,server,el5,ofa #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = FAILURE
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/doc/lfs.1
  • lustre/utils/lfs.c
  • lustre/llite/file.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/utils/liblustreapi.c
Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » x86_64,client,el5,ofa #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = SUCCESS
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/include/lustre/liblustreapi.h
  • lustre/doc/lfs.1
  • lustre/utils/liblustreapi.c
  • lustre/llite/file.c
  • lustre/utils/lfs.c
Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » i686,client,el6,inkernel #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = SUCCESS
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/llite/file.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/utils/liblustreapi.c
  • lustre/utils/lfs.c
  • lustre/doc/lfs.1
Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » x86_64,client,el6,inkernel #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = SUCCESS
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/llite/file.c
  • lustre/utils/liblustreapi.c
  • lustre/utils/lfs.c
  • lustre/doc/lfs.1
  • lustre/include/lustre/liblustreapi.h
Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » x86_64,server,el6,inkernel #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = SUCCESS
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/utils/liblustreapi.c
  • lustre/doc/lfs.1
  • lustre/utils/lfs.c
  • lustre/llite/file.c
  • lustre/include/lustre/liblustreapi.h
Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » x86_64,server,el5,inkernel #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = SUCCESS
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/utils/lfs.c
  • lustre/doc/lfs.1
  • lustre/include/lustre/liblustreapi.h
  • lustre/llite/file.c
  • lustre/utils/liblustreapi.c
Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » i686,server,el6,inkernel #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = SUCCESS
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/llite/file.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/utils/liblustreapi.c
  • lustre/utils/lfs.c
  • lustre/doc/lfs.1
Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » x86_64,client,sles11,inkernel #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = SUCCESS
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/llite/file.c
  • lustre/utils/lfs.c
  • lustre/utils/liblustreapi.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/doc/lfs.1
Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,inkernel #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = SUCCESS
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/utils/lfs.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/llite/file.c
  • lustre/utils/liblustreapi.c
  • lustre/doc/lfs.1
Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » x86_64,client,el5,inkernel #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = SUCCESS
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/include/lustre/liblustreapi.h
  • lustre/doc/lfs.1
  • lustre/llite/file.c
  • lustre/utils/liblustreapi.c
  • lustre/utils/lfs.c
Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » i686,client,el5,ofa #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = SUCCESS
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/utils/lfs.c
  • lustre/doc/lfs.1
  • lustre/llite/file.c
  • lustre/utils/liblustreapi.c
  • lustre/include/lustre/liblustreapi.h
Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » i686,client,el5,inkernel #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = SUCCESS
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/utils/lfs.c
  • lustre/llite/file.c
  • lustre/doc/lfs.1
  • lustre/utils/liblustreapi.c
  • lustre/include/lustre/liblustreapi.h
Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » i686,server,el5,inkernel #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = SUCCESS
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/utils/liblustreapi.c
  • lustre/doc/lfs.1
  • lustre/llite/file.c
  • lustre/utils/lfs.c
  • lustre/include/lustre/liblustreapi.h
Comment by Build Master (Inactive) [ 13/Dec/11 ]

Integrated in lustre-master » i686,server,el5,ofa #381
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 8d935e6d3137bc4678ca2f22c1a30d34474cf677)

Result = SUCCESS
Oleg Drokin : 8d935e6d3137bc4678ca2f22c1a30d34474cf677
Files :

  • lustre/utils/lfs.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/llite/file.c
  • lustre/doc/lfs.1
  • lustre/utils/liblustreapi.c
Comment by Peter Jones [ 13/Dec/11 ]

Landed for 2.2

Comment by Build Master (Inactive) [ 08/Apr/12 ]

Integrated in lustre-b2_1 » x86_64,client,sles11,inkernel #41
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 3cfc250aef8b02b6536233ca009ebabf57b070b3)

Result = SUCCESS
Oleg Drokin : 3cfc250aef8b02b6536233ca009ebabf57b070b3
Files :

  • lustre/utils/liblustreapi.c
  • lustre/utils/lfs.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/doc/lfs.1
  • lustre/llite/file.c
Comment by Build Master (Inactive) [ 08/Apr/12 ]

Integrated in lustre-b2_1 » i686,client,el6,inkernel #41
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 3cfc250aef8b02b6536233ca009ebabf57b070b3)

Result = SUCCESS
Oleg Drokin : 3cfc250aef8b02b6536233ca009ebabf57b070b3
Files :

  • lustre/include/lustre/liblustreapi.h
  • lustre/llite/file.c
  • lustre/utils/liblustreapi.c
  • lustre/doc/lfs.1
  • lustre/utils/lfs.c
Comment by Build Master (Inactive) [ 08/Apr/12 ]

Integrated in lustre-b2_1 » x86_64,server,el6,inkernel #41
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 3cfc250aef8b02b6536233ca009ebabf57b070b3)

Result = SUCCESS
Oleg Drokin : 3cfc250aef8b02b6536233ca009ebabf57b070b3
Files :

  • lustre/llite/file.c
  • lustre/utils/lfs.c
  • lustre/doc/lfs.1
  • lustre/utils/liblustreapi.c
  • lustre/include/lustre/liblustreapi.h
Comment by Build Master (Inactive) [ 08/Apr/12 ]

Integrated in lustre-b2_1 » i686,client,el5,ofa #41
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 3cfc250aef8b02b6536233ca009ebabf57b070b3)

Result = SUCCESS
Oleg Drokin : 3cfc250aef8b02b6536233ca009ebabf57b070b3
Files :

  • lustre/utils/liblustreapi.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/doc/lfs.1
  • lustre/llite/file.c
  • lustre/utils/lfs.c
Comment by Build Master (Inactive) [ 08/Apr/12 ]

Integrated in lustre-b2_1 » x86_64,server,el5,ofa #41
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 3cfc250aef8b02b6536233ca009ebabf57b070b3)

Result = SUCCESS
Oleg Drokin : 3cfc250aef8b02b6536233ca009ebabf57b070b3
Files :

  • lustre/include/lustre/liblustreapi.h
  • lustre/llite/file.c
  • lustre/utils/liblustreapi.c
  • lustre/utils/lfs.c
  • lustre/doc/lfs.1
Comment by Build Master (Inactive) [ 08/Apr/12 ]

Integrated in lustre-b2_1 » x86_64,client,el6,inkernel #41
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 3cfc250aef8b02b6536233ca009ebabf57b070b3)

Result = SUCCESS
Oleg Drokin : 3cfc250aef8b02b6536233ca009ebabf57b070b3
Files :

  • lustre/utils/liblustreapi.c
  • lustre/utils/lfs.c
  • lustre/llite/file.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/doc/lfs.1
Comment by Build Master (Inactive) [ 08/Apr/12 ]

Integrated in lustre-b2_1 » i686,server,el6,inkernel #41
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 3cfc250aef8b02b6536233ca009ebabf57b070b3)

Result = SUCCESS
Oleg Drokin : 3cfc250aef8b02b6536233ca009ebabf57b070b3
Files :

  • lustre/llite/file.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/utils/lfs.c
  • lustre/utils/liblustreapi.c
  • lustre/doc/lfs.1
Comment by Build Master (Inactive) [ 08/Apr/12 ]

Integrated in lustre-b2_1 » x86_64,client,el5,inkernel #41
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 3cfc250aef8b02b6536233ca009ebabf57b070b3)

Result = SUCCESS
Oleg Drokin : 3cfc250aef8b02b6536233ca009ebabf57b070b3
Files :

  • lustre/doc/lfs.1
  • lustre/utils/lfs.c
  • lustre/llite/file.c
  • lustre/utils/liblustreapi.c
  • lustre/include/lustre/liblustreapi.h
Comment by Build Master (Inactive) [ 08/Apr/12 ]

Integrated in lustre-b2_1 » i686,server,el5,inkernel #41
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 3cfc250aef8b02b6536233ca009ebabf57b070b3)

Result = SUCCESS
Oleg Drokin : 3cfc250aef8b02b6536233ca009ebabf57b070b3
Files :

  • lustre/utils/liblustreapi.c
  • lustre/llite/file.c
  • lustre/utils/lfs.c
  • lustre/doc/lfs.1
  • lustre/include/lustre/liblustreapi.h
Comment by Build Master (Inactive) [ 08/Apr/12 ]

Integrated in lustre-b2_1 » x86_64,server,el5,inkernel #41
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 3cfc250aef8b02b6536233ca009ebabf57b070b3)

Result = SUCCESS
Oleg Drokin : 3cfc250aef8b02b6536233ca009ebabf57b070b3
Files :

  • lustre/llite/file.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/doc/lfs.1
  • lustre/utils/lfs.c
  • lustre/utils/liblustreapi.c
Comment by Build Master (Inactive) [ 08/Apr/12 ]

Integrated in lustre-b2_1 » i686,server,el5,ofa #41
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 3cfc250aef8b02b6536233ca009ebabf57b070b3)

Result = SUCCESS
Oleg Drokin : 3cfc250aef8b02b6536233ca009ebabf57b070b3
Files :

  • lustre/utils/liblustreapi.c
  • lustre/llite/file.c
  • lustre/doc/lfs.1
  • lustre/include/lustre/liblustreapi.h
  • lustre/utils/lfs.c
Comment by Build Master (Inactive) [ 08/Apr/12 ]

Integrated in lustre-b2_1 » x86_64,client,el5,ofa #41
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 3cfc250aef8b02b6536233ca009ebabf57b070b3)

Result = SUCCESS
Oleg Drokin : 3cfc250aef8b02b6536233ca009ebabf57b070b3
Files :

  • lustre/doc/lfs.1
  • lustre/llite/file.c
  • lustre/utils/liblustreapi.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/utils/lfs.c
Comment by Build Master (Inactive) [ 08/Apr/12 ]

Integrated in lustre-b2_1 » i686,client,el5,inkernel #41
LU-680 lfs: instance <-> mount point mapping from lfs (Revision 3cfc250aef8b02b6536233ca009ebabf57b070b3)

Result = SUCCESS
Oleg Drokin : 3cfc250aef8b02b6536233ca009ebabf57b070b3
Files :

  • lustre/utils/liblustreapi.c
  • lustre/llite/file.c
  • lustre/doc/lfs.1
  • lustre/include/lustre/liblustreapi.h
  • lustre/utils/lfs.c
Generated at Sat Feb 10 01:09:23 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.