February 27Feb 27 Community Expert About a week or two ago, I started having issues when stopping/starting my array. When it starts array mounts normally but it seems like I am missing shares and VMs won't start and logs are getting spammed with below for all shares.I have been getting a random read error on my only SAS drive so I figured I would just remove it this morning and use in my backup server (SMART comes back fine, not cable issue). I used the procedure to remove the drive and when starting the array I am seeing this issue again. Normally a reboot will fix it but want to figure out what is causing it and not able to figure that out. So I looking for help.emhttpd: error: malloc_share_locations, 8629: Operation not supported (95): getxattr: /mnt/userThanks, debo-server-diagnostics-20260227-0853.zip
February 27Feb 27 Community Expert This folder existed before the last array start:Feb 27 08:51:29 debo-server emhttpd: error: malloc_share_locations, 8629: Operation not supported (95): getxattr: /mnt/user/Backup/mnt/user is reserved for Unraid, you cannot have any other folder manually created there.
February 27Feb 27 Author Community Expert Hi JorgeB,Thank you for taking the time to help. What do you mean the folder existed before the last array start? That is one of my Shares. Are you saying something is creating that directory before Unraid mounts the shares? hmmm...I do have some user_scripts that write logs to that directory. Here is example of one of my user scripts that runs every 5 minutes. Could it be creating the log_dir before shares are mounted?# -----------------------------# Logging setup# -----------------------------LOG_DIR="/mnt/user/Backup/logs/CPU_Governor_Logs"LOG_FILE="${LOG_DIR}/cpu-governor-$(date +%Y-%m-%d).log"RETENTION_DAYS=7mkdir -p "$LOG_DIR"find "$LOG_DIR" -type f -name "cpu-governor-*.log" -mtime +"$RETENTION_DAYS" -delete
February 27Feb 27 Community Expert That script could definitely cause a problem as mkdir with the -p option creates all folder levels in the given path. You need to start by checking that /mnt/user/Backups already exists before running the remainder of the script.
February 27Feb 27 Community Expert 1 hour ago, B_Sinn3d said:Are you saying something is creating that directory before Unraid mounts the shares?Correct, and that cannot happen.
February 27Feb 27 Author Community Expert Solution I appreciate the responses. I have added below and will test stopping/starting once Parity is done rebuilding from me shrinking array...Thanks again!SHARE="/mnt/user/Backup"echo "Waiting for user shares to be mounted..."while ! mountpoint -q /mnt/user; do sleep 5doneecho "/mnt/user is mounted."while [ ! -d "$SHARE" ]; do sleep 5doneecho "$SHARE is ready. Continuing..."
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.