i cant add new shares
i have the latest nightly build installed
Traceback (most recent call last):
File “/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py”, line 41, in _handle_exception
yield
File “/opt/rockstor/src/rockstor/storageadmin/views/share.py”, line 171, in post
add_share(pool, sname, pqid)
File “/opt/rockstor/src/rockstor/fs/btrfs.py”, line 347, in add_share
return run_command(sub_vol_cmd)
File “/opt/rockstor/src/rockstor/system/osi.py”, line 121, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = /sbin/btrfs subvolume create -i 2015/24 /mnt2/MainRaid10/mailarchiv. rc = 1. stdout = [“Create subvolume ‘/mnt2/MainRaid10/mailarchiv’”, ‘’]. stderr = [‘ERROR: cannot create subvolume: Operation not permitted’, ‘’]
Haioken
2
I’ve had a similar issue removing and adding subvolumes (shares) in the past:
It sounds like you may have the immutable flag set on the pool.
From a shell, could you please try:
lsattr /mnt2
You should receive a list like (with your own shares and pools obviously):
---------------- /mnt2/rockstor_rockstor
---------------- /mnt2/home
---------------- /mnt2/root
---------------- /mnt2/tempraid
---------------- /mnt2/rockon
---------------- /mnt2/cfgCouchPotato
---------------- /mnt2/cfgDeluge
---------------- /mnt2/cfgNZBGet
---------------- /mnt2/cfgPlex
---------------- /mnt2/cfgSonarr
---------------- /mnt2/downloads
---------------- /mnt2/media
---------------- /mnt2/cfgPiHole
---------------- /mnt2/cfgPhlex
If any share or pool is displayed as:
----i----------- /mnt2/tempraid
You should be able to rectify it with
chattr -i /mnt2/<pool_or_share_name>
Please advise if this doesn’t work.
1 Like