Jump to content

Moving share to different storage location - Device or resource busy


Go to solution Solved by D0wk1ng,

Recommended Posts

So the shares "system", "appdata",... which are used by the VM's, docker and system are all by default on the array. I created a ZFS pool which is way bigger and redundant, and I want to use that to store those shares.

So I went into the UI and changed this to the correct storage location:

image.thumb.png.0e9a2f9e885533f0e0aad23b6771cccc.png

secondary is set to none

 

Next I issued this command to copy the share to the correct storage location: 

 

cp -avr /mnt/disk1/appdata /mnt/data/appdata

disk1 is my array (default location), data is my pool (desired location).

 

Then remove the data from the disk1 (array):

 

rm -rf /mnt/disk1/appdata

 

Unfortunately this gives:

root@Tower:~# rm -rf /mnt/disk1/appdata
rm: cannot remove '/mnt/disk1/appdata': Device or resource busy

 

 

I checked if any files are open/used by using:

 

lsof +D /mnt/disk1/appdata

 

But it shows none. 

At this point I'm stuck, can anybody throw a bone? Many many thanks! 

Edited by D0wk1ng
clarification
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...