Replies: 1 comment 3 replies
-
You might find zpoolconcepts.7 and zfsconcepts.7 useful to start, and this useful for more detailed information. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TLDR;- naming/ambiguity problem:-
I'm relatively new to ZFS, but a reasonably proficient Linux admin and developer, and the naming and guesswork (by the software itself, not just my brain) is very frustrating:
For example - in "man zfs-rename" it says this:-
zfs rename [-f] filesystem|volume|snapshot filesystem|volume|snapshot
which appears like it's guessing whether I'm talking about a filesystem or a volume or a snapshot based on whatever I enter.
I can also do this:-
which introduces two new things - a "NAME" of unknown meaning, and a mountpoint.
I can do this as well:-
which introduces something called a "pool" (probably short for "poolname", but the programmer wanted the text to line up pretty at the expense of confusion, so omitted the word "name" from after the word pool?
We also see another THREE different NAMEs of unknown types one which also says "zcdc", another which seems to mean the kind of pool it is (raidz) and more which are my disk ids, and as another example of guesswork - it's omitted the /dev/by-id/ prefix from my disk volumes, and mangled my cache into "sde1" (I specificed it with
zpool add -f zcdc cache ata-Samsung_SSD_860_EVO_M.2_1TB_S415NS0R401524N-part1
but that naming doesn't seem to persist properly).As you can see - I need to change the "hostid" (which is not called a "hostid", but instead called "label") so I tried this:
and now we have another new concept arriving called "directory".
I tried this (I explain why next):-
which now introduced yet-another thing called a "dataset name"... and goes on to say that it cannot create the name "cdc" because I didn't give it the name "cdc", which I did... so the error itself also makes no sense now.
I'm guessing now that my pool named "zcdc" contains a datasetname of "zcdc" (the same name - so if that's true, someplace in the setup, zfs itself has decided to use the name I gave it for two different things at once). hence my above attempt to rename it.
In terms of GRUB, a new concept of a "ZFS dataset that contains the root file system" is introduced - it's not clear what "root" means (probably not folder "/root" - I'm guessing they mean the "/" filesystem, upon which /etc is located) and the option to use that is as follows:-
and
so once again we see a bunch of new concepts with inexplicable names - what's the "ROOT" in all-caps mean? Is that supposed to mean the "/" mountpoint, except we can't use that because it's a separator character? Does "void" mean it's blank, but blanks can't be entered? What's the last "rpool" for?
I've read a pile of forum postings from other people having major issues when things have the same names...
I'm confident this needs to be fixed. I'm not stupid (I hope) and after 3 days of learning all this (which includes building it to run on custom kernels and booting it) I still can't make head or tails of the naming.
So my questions:
Beta Was this translation helpful? Give feedback.
All reactions