-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debian Init: Fall back to zfs.cache if /dev/disk/by-id is missing #2482
Comments
Sounds reasonable, and I should have done that if it weren't for the fact The USE_DISK_BY_ID is there for a reason - for YOU to choose. The So I'd probably (most likely) not going to address this.... |
if the zpool.cache file is missing, does device reordering even matter anymore across reboots? |
|
The cache and the by-id paths are commonly used together because the cached |
You CAN'T use them together! You'd get a
|
The cache file causes the cached names to be used, which is how the cache *the cache file is generated as a normal part of the zpool import process. |
I'm completely at a loss now... What do you want!? At the top of the issue you said that your machine does not populate /dev/disk/by-id. You yourself indicated that setting the USE_DISK_ID to 'no' for it to work on your system I told you that that was exactly it's purpose - for YOU to choose which. Also, I looked through the script file again (for another issue), and the import actually happens (is tried) using the cache file FIRST and only if that import fails, does it use /dev/disk/by-id. This will most likely be changed 'eventually', but for now that's how it works... Also, again, if you rely on the cache file for everything to work, you will (eventually) be very disappointed - because it WILL be removed 'soon'. |
The op and I are two separate people. I apologize for confusing you. |
I didn't want to start a debate on the cache file. I'm new to ZFS. My first experiment was to try ZFS in our test environment inside a Debian Wheezy VM running on Xen. Took me a few hours to figure why my ZFS pool where not becoming available after reboot. Turns out my VM doesn't have the /dev/disk/by-id populated. Ideally I'd want the init script to figure my system doesn't have /dev/disk/by-id and fallback to trying with the cache file. Or, at least the init script should warn me, and point me to the USE_DISK_BY_ID option in /etc/default/zfs.
Not on my system (debian-zfs). I'm not exactly sure which init script the latest debian-zfs package use, I don't seems to be able to find it in the repository. However, the logic of the version I have is similar to the one I can find in Git here: https://github.com/zfsonlinux/zfs/blob/master/etc/init.d/zfs.lsb.in#L68 If USE_DISK_BY_ID is set, it'll use /dev/disk/by-id independently if /dev/disk/by-id actually exists or not. |
That part I can easily fix... Give me a couple of hours and I'll have a new version (in the snapshots package repository) made. |
Ok, I've created |
I'm having some problems building from snapshot/debian/wheezy/0.6.3-2_wheezy (and 0.6.3-3). I followed the instructions here: https://github.com/zfsonlinux/pkg-zfs.
I reviewed the patch and have commented on zfsonlinux/pkg-zfs@37f49f3 |
This is not a support forum. If you have another problem with something else, do NOT use an issue which is about something completely different. Please either start another issue, or (in this case) take it to the list. |
@FransUrbo Don't be rude. I'm just trying to help and compile the fix you pushed to the snapshot repository. Anyway, thanks for your patience. Closing this. Will follow changes in zfsonlinux/pkg-zfs@37f49f3 |
It wasn't intended to be rude. It's hard enough to keep track of real issues (i.e. bugs) without the clutter of questions of all kinds... Not being able to build packages IS (or might be - in this case it isn't) an issue, but it is NOT about "Debian Init: Fall back to zfs.cache if /dev/disk/by-id is missing". Two completely different things.. Next time, try to keep focus and on target... Btw, I created |
I managed to test the new package, unfortunately it doesn't work. I suggest the following fix: siboulet/pkg-zfs@6c02edc. I can't create a PR since the snapshot tag you're working on isn't referenced by any branch in the Github repo. Thanks |
On my system (Debian Wheezy Xen virtual machine) /dev/disk/by-id is not populated. The zfs-mount init script by default looks for disks in /dev/disk/by-id.
USE_DISK_BY_ID needs to be set explicitly to 'no' in /etc/default/zfs for pools to be automatically imported on boot.
The init script should look if /dev/disk/by-id exists and fallback to zfs.cache.
The text was updated successfully, but these errors were encountered: