[Please complete the below template with details of the problem reported on your Web-UI. Be as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]
Brief description of the problem
I have 2 appliances A and B.
Detailed step by step instructions to reproduce the problem
I have 2 appliances, A and B. The share [appliance A’s ID]_SHARE_Lan_1/SHARE_Lan_1_1_replication_1 appeared twice on B, apparently replicated from A. I have deleted one, but the second is unmounted and cannot be deleted, apparently because the file system is read-only and the i attribute is set. Running lsattr as root reveals no attributes at all; chattr -i returns “read only” as in the GUI.
SHARE_Lan_1 exists on appliance A and is scheduled to replicate to B. It is also scheduled for snapshots on A. It contains one text file, called Test.
The replication occurred twice, at 11.00pm yesterday and 3.42 this morning (as I was testing, I had changed the scheduled time after the first run).
At 11.00pm the Share appeared on B as [appliance A’s ID]_SHARE_Lan_1/SHARE_Lan_1_1_replication_1, but without the Test file.
At 3.42am the Share appeared again on B, as [appliance A’s ID]_SHARE_Lan_1/SHARE_Lan_1_1_replication_2. I didn’t look to see whether the Test file was inside. At the same time [appliance A’s ID]_SHARE_Lan_1
At the same time SHARE_Lan_1_1_replication_1 appeared as a second share, though this time apparently in the snapshots folder: snapshots are not scheduled on appliance B and [appliance A’s ID]_SHARE_Lan_1/SHARE_Lan_1_1_replication_1 does not appear in the ‘Snapshots’ tab on B.
Thinking to start afresh, I removed all SAMBA exports on B, then deleted all shares from B until I came to [appliance A’s ID]_SHARE_Lan_1/SHARE_Lan_1_1_replication_1. As you will see, it will not delete, apparently because the immutable tag is set.
Web-UI screenshot
I can’t post the screenshot, as it reveals applicance A’s ID. However the error text reads:
Houston, we’ve had a problem.
Failed to delete the share (.snapshots/[appliance A’s ID]_SHARE_Lan_1/SHARE_Lan_1_1_replication_1). Error from the OS: Error running a command. cmd = /usr/bin/chattr -i /mnt2/Pool1/.snapshots/[appliance A’s ID]_SHARE_Lan_1/SHARE_Lan_1_1_replication_1. rc = 1. stdout = [‘’]. stderr = [‘/usr/bin/chattr: Read-only file system while setting flags on /mnt2/Pool1/.snapshots/[appliance A’s ID]_SHARE_Lan_1/SHARE_Lan_1_1_replication_1’, ‘’]
Error Traceback provided on the Web-UI
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/share.py", line 381, in delete
remove_share(share.pool, share.subvol_name, share.pqgroup, force=force)
File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 1179, in remove_share
toggle_path_rw(subvol_mnt_pt, rw=True)
File "/opt/rockstor/src/rockstor/system/osi.py", line 676, in toggle_path_rw
return run_command([CHATTR, attr, path])
File "/opt/rockstor/src/rockstor/system/osi.py", line 246, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = /usr/bin/chattr -i /mnt2/Pool1/.snapshots/[appliance A's ID]_SHARE_Lan_1/SHARE_Lan_1_1_replication_1. rc = 1. stdout = ['']. stderr = ['/usr/bin/chattr: Read-only file system while setting flags on /mnt2/Pool1/.snapshots/[appliance A's ID]_SHARE_Lan_1/SHARE_Lan_1_1_replication_1', '']
Thanks for any help you can give.