Remove hardlinked folder sync on btrfs

Currently reading
Remove hardlinked folder sync on btrfs

40
4
NAS
DS1819+ DS1817+
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. iOS
Last edited:
Hi.

This is too bad. Probably an admin (who doesn't participate anymore in NAS administration) did a hardlink or btrfs tweak, which he didn't communicate.

A folder is mirrored from one shared folder to another one.

I see:
Code:
$ mount
...
/dev/mapper/vg1-volume_1 on /volume1/homes/mad/myData type btrfs (rw,relatime,synoacl,space_cache=v2,auto_reclaim_space,metadata_ratio=50,subvolid=265,subvol=/@syno/Data/myData)

1. Is it possible that this was done using the DSM (6.2.4) or was a shell command required to achieve this?
2. How can I revert this action = split the link?

Thanks
 
Last edited:
I found the problem.
It was a forgotten (undocumented) script /usr/local/etc/S99mount.sh, which created the links as follows:
Code:
/bin/mkdir -p "$2"
/bin/mount -o bind "$1" "$2"
/usr/syno/bin/synologset1  sys info 0x11800000 "$0: Mounted $1 to $2"
After removing that script that, the btrfs subvolume was gone (after restart).
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

  • Question
Next time (hopefully, not a next time) try a mode 2 reset. That has helped me in the past, and it doesn't...
Replies
7
Views
1,562
Oopsie! I accidentally deleted the users (sc-mono, sc-ffmpeg, sc-chromaprint) of the following...
Replies
0
Views
574
  • Question
While I don't know your competency... there is a good introductory NAS setup series on YouTube nu...
Replies
8
Views
15,400
  • Question
The cron jobs are listed in file /etc/crontab. Looking in the file you can see most jobs are handled by...
Replies
1
Views
5,444
... and the Docker package adds a "docker" folder... and I also got a "NetBackup" folder I never wanted...
Replies
4
Views
11,027
If I remember right DSM5 suffered from it, and it stopped being an issue with DSM6 and later. You don't...
Replies
19
Views
1,888
@tonyufo Thanks for the advise but unfortunately this is still the same, the Advanced Share Permissions...
Replies
2
Views
641

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top