Jump to content

6.9.0-rc1 exporting a pool as a share


bidmead

Recommended Posts

I've created a single-drive pool, btrfs formatted, and have been trying to work out how to export it as a share. The only way I've been able to do so far is to pretend it's a cache drive and set it to Use Cache Pool Only.

 

The logic behind this seems to me somewhat contorted. The thing is no kind of cache and I'm left wondering if this is UnRAID's semantics problem or am I simply kluging around something obvious that I'm missing.

 

-- 

Chris

Link to comment

Yes, "enable user share assignment" is set to yes for this pool device. I'm not clear if you're saying it shouldn't be necessary also to characterise the pool as a cache device in order to share it across the LAN. Have I added a redundant step?

 

If so, can you set out here or point me to the procedure for sharing an off-array pool device across the LAN using user-based security?

 

I'm also not clear what these "copy issues" are that you mention.

 

--

Chris

Link to comment
1 hour ago, bidmead said:

Yes, "enable user share assignment" is set to yes for this pool device. I'm not clear if you're saying it shouldn't be necessary also to characterise the pool as a cache device in order to share it across the LAN. Have I added a redundant step?

 

If so, can you set out here or point me to the procedure for sharing an off-array pool device across the LAN using user-based security?

 

I'm also not clear what these "copy issues" are that you mention.

 

--

Chris

A pool is a visible as the whole pool under the same share name (the name of the pool) if you have Disk shares enabled.   Disk shares are all about making the whole of a physical device available under a single share name.

 

there is an issue that can lead to data loss if you mix a disk share and a user Share in the same copy/move operation.

Link to comment

I've exported the whole pool (the single drive) as a user/pass protected share. And that seems to work fine with no issues.

 

My question is about the apparent need to pretend that this is a cache drive set to Only in order to make it user/pass protected. It isn't caching anything and it isn't, in any sense, part of the array.

 

However, I notice that my actual cache drive is included in the array drive count. I can follow the logic of this, But because I'm having to pretend that the new pooled drive is also a cache drive, it too gets included in the array count. That seems to me to be, er, counter-intuitive.

 

So my problem here isn't practical, it's a logical problem that leaves me wondering if I'm kluging around something I could/should be implementing more straightforwardly.

 

BOTTOM LINE: Am I right in thinking that there's currently no way of exporting an entire unassigned device as a user/pass protected share except under the guise of a cache drive set to Only?

 

-- 

Chris

Link to comment
4 hours ago, bidmead said:

My question is about the apparent need to pretend that this is a cache drive set to Only in order to make it user/pass protected. It isn't caching anything and it isn't, in any sense, part of the array.

I think you may be getting hung up on the fact that they are called cache pools?   This is historical in that was the first use of a cache drive, but nowadays they can just as frequently be used as application drives with Docker and/or VMs.   The only thing about cache pools is that they can (optionally)  be part of a the User Share if you want them to be.   If you can think of a better name to refer to them than cache pools feel free to suggest it.

Link to comment

Thanks, itimpi. Yes, you're right---I wasn't fond of calling a pool a cache if it wasn't being used for caching. And right again about "cache only" already being a standard way of handling appdata, domains and isos (effectively taking them off the parity-checked array), which is what I'm doing already.

 

On that basis, I suppose, calling an out-of-array pool a cache in order to give it individual SMB security, isn't so much of a kluge. And it seems to be the only way to do this, because the method suggested by trurl (which works fine and which I'm now using---thanks, trurl) seems to set user/pass security for ALL unassigned devices, which may not necessarily be what you want to do. Although, I assume one can individually set SMB user/pass to all/no pass on a per share basis (haven't investigated this yet).

 

It was interesting semantics that when my kluge calls a pool named Maxi a cache set to Cache Only there is actually a cache called Maxi. So the pool is caching on itself. And---if I'm right---setting a pool to be its own cache is so far the only way to apply SMB security to a particular pool without engaging it for the whole set of unassigned devices.

 

A corollary of this is that UnRAID (now?) seems to allow multiple caches with different names. Or, rather, that a pool called Cache is just a special case of a Pool Device.

 

And just when I was getting used to the idea of there being two classes of UnRAID devices, array devices and unassigned devices (three, if you count the Boot device), I now find that my one-drive pool called Maxi is neither of these, instead belonging to a new called called Pool.

 

> If you can think of a better name to refer to them than cache pools feel free to suggest it.

 

I think 6.9.0 answers this question for us. These things are called Pool Devices

 

For some reason I'm being flagged here as an "Advanced Member". Please ignore this. Obviously, I'm merely entering the edge of the jungle wielding a toy plastic machete.

 

-- 

Chris

Link to comment

I refer to them the same way the webUI does. The sections (or tabs if you have it set that way) on the Main page are Array Devices, Pool Devices, Boot Device, and Unassigned Devices. So I just talk about the array and the pools. Cache is just the original pool and you can have other pools named whatever you want. And each user share can use one of these pools in the same ways that cache was used (no, yes, prefer, only).

 

You see some of the same naming in the file paths, with /mnt/cache, or /mnt/fast for my pool named "fast". And in the config folder on flash there is now a pools folder with the .cfg for each pool (and of course that config folder appears in the diagnostics).

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...