Re: [OpenIndiana-discuss] Problems with some zfs fs unable to mount after shutdown
> On 14. Jan 2022, at 06:32, hput via openindiana-discuss > wrote: > > Flemming Dalsgaard writes: > >> The commands >> zfs create -omountpoint=/exportp0/export >> zfs create -omountpoint=/export/home p0/export/home >> zfs create -omountpoint=/export/home/USER p0/export/home/USER >> >> Should be sufficient to make the /export/home/USER >> so you should not pre create the involved folders, zfs take care of that it >> self. > > [...] > > exactly what I did, and I did not precreate anything. Not sure where > that came from. I just ran the zfs create commands and it all mounted > as expected And once again following this mornings boot up of host > and then vm in question... > >>> zfs create -omountpoint=/exportp0/export >>> zfs create -omountpoint=/export/home p0/export/home >>> zfs create -omountpoint=/export/home/USER p0/export/home/USER > > > It fails to mount those filesystems and drops into a console login on > reboot. > > I needed a reboot for host OS due to certain updates that apparently > need a reboot. And then booting the oi vm > > > I login as root and run: > > zfs mount p0/export > zfs mount p0/export/home > zfs mount p0/export/home/reader > > And they all mount fine. > > But yet I'm stuck with a console to work in ... pretty sure if I > reboot the vm the same thing will happen. > It seem the OS doesn't mount them from the bottom up or something > What is causing the failure? > > Attempting to `startx' from console does not work at first but finally > produces a very primitive X desktop, that near as I can tell is less > usable for work than the OI console (which is saying something) > > How can I go into X from the console login.. Logging out does nothing. > Apparently the only recourse is to reboot the vm again. Doing that > now: > > First thing, I see `unable to read pool p0' as the shutdown starts to > happen. But, glory be. With another 12-14 minutes lost to the ether, > The bootup completed and didn't fail to mount p0/export/home/reader > First thing to remember - command ‘zfs mount’ will fail if mountpoint is not empty. This means, if you add new storage for /export, you need to make sure the original is not present (rpool/export dataset). Also, make sure you are not creating cross mounts from different pools/datasets. And finally, a small nit - if you create /export/home/username tree, your dataset tree should look like /export/home/username, and this means, you only need to set mountpoint for/export, rest will follow the hierarchy. This can help to avoid cross mounts and populated mount points… rgds, toomas ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Problems with some zfs fs unable to mount after shutdown
Flemming Dalsgaard writes: > The commands > zfs create -omountpoint=/exportp0/export > zfs create -omountpoint=/export/home p0/export/home > zfs create -omountpoint=/export/home/USER p0/export/home/USER > > Should be sufficient to make the /export/home/USER > so you should not pre create the involved folders, zfs take care of that it > self. [...] exactly what I did, and I did not precreate anything. Not sure where that came from. I just ran the zfs create commands and it all mounted as expected And once again following this mornings boot up of host and then vm in question... >> zfs create -omountpoint=/exportp0/export >> zfs create -omountpoint=/export/home p0/export/home >> zfs create -omountpoint=/export/home/USER p0/export/home/USER It fails to mount those filesystems and drops into a console login on reboot. I needed a reboot for host OS due to certain updates that apparently need a reboot. And then booting the oi vm I login as root and run: zfs mount p0/export zfs mount p0/export/home zfs mount p0/export/home/reader And they all mount fine. But yet I'm stuck with a console to work in ... pretty sure if I reboot the vm the same thing will happen. It seem the OS doesn't mount them from the bottom up or something What is causing the failure? Attempting to `startx' from console does not work at first but finally produces a very primitive X desktop, that near as I can tell is less usable for work than the OI console (which is saying something) How can I go into X from the console login.. Logging out does nothing. Apparently the only recourse is to reboot the vm again. Doing that now: First thing, I see `unable to read pool p0' as the shutdown starts to happen. But, glory be. With another 12-14 minutes lost to the ether, The bootup completed and didn't fail to mount p0/export/home/reader ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Problems with some zfs fs unable to mount after shutdown
The commands zfs create -omountpoint=/exportp0/export zfs create -omountpoint=/export/home p0/export/home zfs create -omountpoint=/export/home/USER p0/export/home/USER Should be sufficient to make the /export/home/USER so you should not pre create the involved folders, zfs take care of that it self. Regards Flemming On Thu, Jan 13, 2022 at 3:54 PM hput via openindiana-discuss < openindiana-discuss@openindiana.org> wrote: > I've wanted to put the home directories on a different pool than > rpool. > > Ok. So, resynced the content of rpool/export/USER to directory > /was-USER Did not create a another zfs fs just put the content at the > new directory at /was-USER > > Now since the content of /export/home/USER is superfluos I did > > zfs destroy -r rpool/export/home/USER > zfs destroy -r rpool/export/home > zfs destroy -r rpool/export > > And followed up with rm -rf export/home/USER > rmdir /export/home > rmdir /export > > Now I create: > > zfs create -omountpoint=/exportp0/export > zfs create -omountpoint=/export/home p0/export/home > zfs create -omountpoint=/export/home/USER p0/export/home/USER > > Each one mounted itself as it was created. I then rsynced /was-USER > content back in place /export/home/reader/ But thought I meet keep > the backup a while > > as I continued to work on other stuff that setup seemed to be working. > But, when I shut it down and on reboot it could now mount > p0/export/home/ or p0/export/home/USER claiming that the directories > were not empty > > ls and sure enough if you looked in /export/home your would see USER > too. > > So I thought I must be doing something I shouldn't at the point of > creating the mountpoints. > > I logged into the console and tried mounting them from the bottom up > and it seemed to go as expected. > > Not sure what all I did from there but at present still in console > I can see those diretories seemingly mounted > > And mount|grep export > says: mount|grep export > /export/home on p0/export/home read/write/setuid/devices/nonbmand/exec\ > xattr.atime/dev=4c5000b on Jan 13 13:51:57 2022 > > I can't copy/paste from that console so hand written may be errors but > small images included below > > > So I tried (and I'm logged in as root): > touch /export/home/it > output: > touch: cannot create export/home/it: No such file or diretory > > > So what is the error I'm making? Setting those mountpoints? . So how > is it done correctly? > > Looking at oracle docs it seems that I am doing it right. But must > not be as it's not working > > ___ > openindiana-discuss mailing list > openindiana-discuss@openindiana.org > https://openindiana.org/mailman/listinfo/openindiana-discuss > ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss