Applying a Patch to a MapR POSIX Client

This procedure enables you to apply a patch to any of the MapR POSIX clients, which include the MapR loopbacknfs POSIX client, the FUSE-based POSIX basic client, and the FUSE-based POSIX platinum client.

  1. Before applying a patch to a FUSE-based POSIX client, review Special Considerations for FUSE POSIX Patches.
  2. Use one of the following commands to stop the POSIX client service:
    • For the mapr-loopbacknfs service:
      service mapr-loopbacknfs stop
    • For the FUSE-based POSIX basic service:
      service mapr-posix-client-basic stop
    • For the FUSE-based POSIX platinum service:
      service mapr-posix-client-platinum stop
  3. Remove any currently installed client patches:
    For the mapr-loopbacknfs service:
    • On Red Hat / CentOS:
      yum remove mapr-patch-loopbacknfs-<old_patch_number>.rpm
    • On SUSE:
      zypper remove mapr-patch-loopbacknfs-<old_patch_number>.rpm
    • On Ubuntu:
      apt-get remove mapr-patch-loopbacknfs-<old_patch_number>.deb
    For the FUSE-based POSIX basic service:
    • On Red Hat / CentOS:
      yum remove mapr-patch-posix-client-basic-<old_patch_number>.rpm
    • On SUSE:
      zypper remove mapr-patch-posix-client-basic-<old_patch_number>.rpm
    • On Ubuntu:
      apt-get remove mapr-patch-posix-client-basic-<old_patch_number>.deb
    For the FUSE-based POSIX platinum service:
    • On Red Hat / CentOS:
      yum remove mapr-patch-posix-client-platinum-<old_patch_number>.rpm
    • On SUSE:
      zypper remove mapr-patch-posix-client-platinum-<old_patch_number>.rpm
    • On Ubuntu:
      apt-get remove mapr-patch-posix-client-platinum-<old_patch_number>.deb

  4. Apply the new patch:
    For the mapr-loopbacknfs service:
    • On Red Hat / CentOS:
      sudo rpm -i mapr-patch-loopbacknfs-<new_patch_number>.rpm
    • On SUSE:
      sudo zypper install mapr-patch-loopbacknfs-<new_patch_number>.rpm
    • On Ubuntu:
      sudo dpkg -i mapr-patch-loopbacknfs-<new_patch_number>.deb
    For the FUSE-based POSIX basic service:
    • On Red Hat / CentOS:
      sudo rpm -i mapr-patch-posix-client-basic-<new_patch_number>.rpm
    • On SUSE:
      sudo zypper install mapr-patch-posix-client-basic-<new_patch_number>.rpm
    • On Ubuntu:
      sudo dpkg -i mapr-patch-posix-client-basic-<new_patch_number>.deb
    For the FUSE-based POSIX platinum service:
    • On Red Hat / CentOS:
      sudo rpm -i mapr-patch-posix-client-platinum-<new_patch_number>.rpm
    • On SUSE:
      sudo zypper install mapr-patch-posix-client-platinum-<new_patch_number>.rpm
    • On Ubuntu:
      sudo dpkg -i mapr-patch-posix-client-platinum-<new_patch_number>.deb

  5. Use one of the following commands to restart the POSIX client service:
    • For the mapr-loopbacknfs service:
      service mapr-loopbacknfs start
    • For the FUSE-based POSIX basic service:
      service mapr-posix-client-basic start
    • For the FUSE-based POSIX platinum service:
      service mapr-posix-client-platinum start