13.11 Starting and Stopping ShadowFS Manually

FUSE (fuse) and ShadowFS (shadowfs) are required when Novell Samba users are accessing NSS volumes via SMB/CIFS. If FUSE and ShadowFS stop running, you must start them manually. Only one instance of shadowfs should be running at a time.

13.11.1 Starting FUSE and ShadowFS

Loading ShadowFS creates a ShadowFS root /media/shadowfs/<volumename> directory for each of the mounted DST shadow volumes. The volumename is the same as volume name of the primary volume. The ShadowFS root directory contains the merged file tree view of the primary and secondary locations in the DST volume. A root is created for all of the mounted DST volumes; you cannot control whether to shadow only one or some of them.

  1. On the server, open a terminal console, then log in as the root user.

  2. At the terminal console prompt, start ShadowFS by entering

    systemctl start novell-shadowfs.service

    The output identifies the primary volume, secondary volume, and the shadowfs volume.

    For example, if the primary storage location is an NSS volume named VOL1 and the secondary storage location is an NSS volume named ARCVOL, the output would look similar to this:

     # systemctl status novell-shadowfs.service
    ● novell-shadowfs.service - Novell shadowfs
       Loaded: loaded (/usr/lib/systemd/system/novell-shadowfs.service; disabled; vendor preset: disabled)
       Active: active (running) since Tue 2017-11-28 12:46:29 IST; 1s ago
      Process: 31403 ExecStopPost=/usr/bin/rm -f /var/lock/subsys/shadowfs (code=exited, status=0/SUCCESS)
      Process: 31401 ExecStopPost=/usr/sbin/rmmod fuse (code=exited, status=1/FAILURE)
      Process: 31391 ExecStop=/opt/novell/ncpserv/sbin/umountshadow.sh (code=exited, status=32)
      Process: 2567 ExecStartPost=/usr/bin/touch /var/lock/subsys/shadowfs (code=exited, status=0/SUCCESS)
      Process: 2553 ExecStart=/opt/novell/ncpserv/sbin/shadowfs (code=exited, status=0/SUCCESS)
      Process: 2551 ExecStartPre=/sbin/modprobe fuse (code=exited, status=0/SUCCESS)
        Tasks: 4 (limit: 512)
       CGroup: /system.slice/novell-shadowfs.service
               ├─2563 /opt/novell/ncpserv/sbin/shadowfs
               └─2566 /opt/novell/ncpserv/sbin/shadowfs
    
    
    Nov 28 12:46:28 blr8-117-174 systemd[1]: Starting Novell shadowfs...
    Nov 28 12:46:29 blr8-117-174 shadowfs[2553]: SHIFT_ON_MODIFY: 1
    Nov 28 12:46:29 blr8-117-174 shadowfs[2553]: SHIFT_ON_ACCESS: 0
    Nov 28 12:46:29 blr8-117-174 shadowfs[2553]: SHIFT_DAYS_SINCE_LAST_ACCESS: 1
    Nov 28 12:46:29 blr8-117-174 shadowfs[2553]: Primary Tree 0: /media/nss/VOL1
    Nov 28 12:46:29 blr8-117-174 shadowfs[2553]: Shadow Tree 0: /media/nss/ARCVOL
    Nov 28 12:46:29 blr8-117-174 shadowfs[2553]: shadowfs root 0: /media/shadowfs/VOL1
    Nov 28 12:46:29 blr8-117-174 systemd[1]: Started Novell shadowfs.

13.11.2 Starting FUSE and ShadowFS with novell-shadowfs

  1. On the server, open a terminal console, then log in as the root user.

  2. At the terminal console prompt, start FUSE and ShadowFS by entering

    systemctl start novell-shadowfs.service

13.11.3 Stopping Shadowfs

  1. On the server, open a terminal console, then log in as the root user.

  2. At the terminal console prompt, stop the shadowfs process by entering

    systemctl stop novell-shadowfs.service

    If the process does not stop, you need to kill the process. Enter

    killall shadowfs