February 1Feb 1 Hi everyone,I'm relatively new to unRAID and trying to get back up to speed with Linux after about 20 years away. I need help setting up a stable rclone configuration for mounting multiple OneDrive accounts.My Setup:unRAID 7.2.33 OneDrive accounts I want to mount and access via SMB:OneDrive_A (personal account)OneDrive_B (shared account)OneDrive_C (will add later)Cache pool: Kingston NVMe 2TB (ZFS)Array with 4x8TB Seagate IRONWOLF HDDsCurrent Approach: I'm currently mounting rclone to /mnt/cache/rclone/OneDrive_xxx and then bind mounting to /mnt/user/OneDrive_xxx so the shares appear in the Shares tab and are accessible via SMB.Mount script example:#!/bin/bash set -euo pipefail REMOTE="OneDrive_A:" CACHE_MNT="/mnt/cache/rclone/OneDrive_A" USER_SHARE="/mnt/user/OneDrive_A" # Ensure FUSE allow_other if ! grep -q '^user_allow_other$' /etc/fuse.conf; then sed -i 's/^#user_allow_other$/user_allow_other/' /etc/fuse.conf 2>/dev/null || true grep -q '^user_allow_other$' /etc/fuse.conf || echo 'user_allow_other' >> /etc/fuse.conf fi mkdir -p "$CACHE_MNT" "$USER_SHARE" # If already mounted, exit if mountpoint -q "$CACHE_MNT" && mountpoint -q "$USER_SHARE"; then exit 0 fi # Cleanup umount -l "$USER_SHARE" 2>/dev/null || true fusermount -uz "$CACHE_MNT" 2>/dev/null || true pkill -f "rclone.*mount.*OneDrive_A" 2>/dev/null || true # Mount rclone rclone mount "$REMOTE" "$CACHE_MNT" \ --vfs-cache-mode writes \ --allow-other \ --default-permissions \ --dir-cache-time 72h \ --poll-interval 15s \ --vfs-cache-max-age 12h \ --log-level INFO \ --daemon # Bind mount to user share mount --bind "$CACHE_MNT" "$USER_SHARE" echo "Mounted OneDrive_A" ```emhttpd: error: malloc_share_locations, 8649: Operation not supported (95): getxattr: /mnt/user/OneDrive_A emhttpd: error: malloc_share_locations, 8649: Operation not supported (95): getxattr: /mnt/user/OneDrive_BThese repeat constantly and fill up my syslog.Problems I'm Experiencing:Constant getxattr errors in syslog during array startup:Array shutdown issues: I've had problems where the cache pool stays busy and won't unmount because of the rclone mounts. I've created shutdown scripts that run "At Stopping of Array" to unmount everything, which helps, but I'm not sure if this is the best approach.My Questions:Is this the right approach for mounting OneDrive to be accessible via SMB? Should I be using a different mount location?How do I properly handle the getxattr errors? Are they harmless, or is there a better mounting strategy that avoids them entirely?What's the community standard for rclone cloud mounts on unRAID? I've seen references to /mnt/user/mount_rclone/ in some GitHub scripts, but that seems to have similar issues.Is there a recommended way to make rclone mounts appear as native unRAID shares without these complications?Additional Context:The mounts work fine functionally - I can access files via SMBArray does stop properly now with my shutdown scripts, but I want to make sure this is stable long-termI'm planning to add a third OneDrive account once I get this sortedAny guidance from experienced unRAID + rclone users would be greatly appreciated! I want to make sure I'm following best practices rather than fighting against the system.Thanks in advance! Edited February 1Feb 1 by DockLoco
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.