Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-137

ioctl passthrough mechanism for Lustre OST/MDT mountpoints

Details

    • New Feature
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • Lustre 2.1.0, Lustre 2.5.0
    • 14,489
    • 8383

    Description

      Implement an interface for sending IO Control (ioctl) commands from userspace through the Lustre mount point to the underlying ldiskfs filesystem to allow execution of filesystem-wide ioctl() commands, such as resize. This will allow user-space tools that operate via ioctl() commands on the filesystem mountpoint to be used on the Lustre MDT and OST filesystems while they are mounted and in use subject to any limitations of the original ioctl() commands themselves.

      Attachments

        Issue Links

          Activity

            [LU-137] ioctl passthrough mechanism for Lustre OST/MDT mountpoints

            "Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/58450
            Subject: LU-137 osd: better stat info for server mountpoints
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: dc0ae67cfd02662b863e86327bc8bcc98dcd7561

            gerrit Gerrit Updater added a comment - "Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/58450 Subject: LU-137 osd: better stat info for server mountpoints Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: dc0ae67cfd02662b863e86327bc8bcc98dcd7561
            pjones Peter Jones added a comment -

            Landed for 2.16. It's been a while since I closed a Jira ticket with a bugzilla id!

            pjones Peter Jones added a comment - Landed for 2.16. It's been a while since I closed a Jira ticket with a bugzilla id!

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/20161/
            Subject: LU-137 osd-ldiskfs: pass through resize ioctl
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: ac0380dc519aa15310670d164e98453861ef332a

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/20161/ Subject: LU-137 osd-ldiskfs: pass through resize ioctl Project: fs/lustre-release Branch: master Current Patch Set: Commit: ac0380dc519aa15310670d164e98453861ef332a
            adilger Andreas Dilger added a comment - - edited

            It may be that this has been fixed via patch https://review.whamcloud.com/33131 "Subject: LU-11355 lustre: enable fstrim on lustre device", which added a generic ioctl passthrough from userspace to ldiskfs.

            However, the last time I had tested this (several years ago) there were also some issues with e2fsprogs/resize2fs being unhappy that the block device (st_rdev) reported by the Lustre server stub mount did not match the underlying block device. That is what patch: http://review.whamcloud.com/20161 "LU-137 osd: better stat info for server mountpoints" was about, but I haven't updated it in several years.

            adilger Andreas Dilger added a comment - - edited It may be that this has been fixed via patch https://review.whamcloud.com/33131 " Subject: LU-11355 lustre: enable fstrim on lustre device ", which added a generic ioctl passthrough from userspace to ldiskfs. However, the last time I had tested this (several years ago) there were also some issues with e2fsprogs/resize2fs being unhappy that the block device ( st_rdev ) reported by the Lustre server stub mount did not match the underlying block device. That is what patch: http://review.whamcloud.com/20161 " LU-137 osd: better stat info for server mountpoints " was about, but I haven't updated it in several years.

            Linking this since I plan on fixing the ioctl direction issue which will provide a proper interface for this as well.

            simmonsja James A Simmons added a comment - Linking this since I plan on fixing the ioctl direction issue which will provide a proper interface for this as well.

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/23092/
            Subject: LU-137 obdclass: add dt_object_put() and use it
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 5963af745b3aa14410d5ceb66f8a7b7d6aaf576a

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/23092/ Subject: LU-137 obdclass: add dt_object_put() and use it Project: fs/lustre-release Branch: master Current Patch Set: Commit: 5963af745b3aa14410d5ceb66f8a7b7d6aaf576a

            People

              adilger Andreas Dilger
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: