Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2017 16:42:56 -0700
From:      Robert <robert.ayrapetyan@gmail.com>
To:        freebsd-sysinstall@freebsd.org
Subject:   Re: Read-only file-system after install?
Message-ID:  <5b516247-b8c4-f6fa-bcce-9fc96a7a051d@gmail.com>
In-Reply-To: <623246e5-316d-0773-c4f1-db71f33ac894@gmail.com>
References:  <80d9f08b-f0bf-c3c2-6307-78fa7e04b5b9@gmail.com> <1ac9555c-8cde-b7ba-64d5-d84889c415a8@freebsd.org> <366e1b1b-8f5d-9ddd-7ab5-22633cd3c0af@gmail.com> <2fe7548c-9ded-1f79-e82c-d490e206743f@gmail.com> <e5d5412d-772f-8953-d3c5-5d7e549530b8@freebsd.org> <395ffd76-761b-f61c-90f2-7a71c3dc5f6d@gmail.com> <8bbc62b4-97fe-7566-1a50-24f622c84c3d@freebsd.org> <623246e5-316d-0773-c4f1-db71f33ac894@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
My bad, it's zfs_load in loader.conf... Omg, let me try zfs_enable in 
rc.conf.


On 03/15/17 16:34, Robert wrote:
> Weird, I've removed it because I have this exact line in 
> /boot/loader.conf...
>
> :)
>
>
> On 03/15/17 16:26, Allan Jude wrote:
>> On 2017-03-15 19:21, Robert wrote:
>>> After install:
>>>
>>> # zfs list
>>> NAME                 USED  AVAIL  REFER  MOUNTPOINT
>>> zroot                301M   441G    96K  /mnt/zroot
>>> zroot/ROOT           299M   441G    96K  none
>>> zroot/ROOT/default   299M   441G   299M  /mnt
>>> zroot/tmp             96K   441G    96K  /mnt/tmp
>>> zroot/usr            384K   441G    96K  /mnt/usr
>>> zroot/usr/home        96K   441G    96K  /mnt/usr/home
>>> zroot/usr/ports       96K   441G    96K  /mnt/usr/ports
>>> zroot/usr/src         96K   441G    96K  /mnt/usr/src
>>> zroot/var            588K   441G    96K  /mnt/var
>>> zroot/var/audit       96K   441G    96K  /mnt/var/audit
>>> zroot/var/crash       96K   441G    96K  /mnt/var/crash
>>> zroot/var/log        108K   441G   108K  /mnt/var/log
>>> zroot/var/mail        96K   441G    96K  /mnt/var/mail
>>> zroot/var/tmp         96K   441G    96K  /mnt/var/tmp
>>>
>>> # mount
>>>   /dev/iso9660/11_0_RELEASE_P1_AMD64_BO on / (cd9660, local, read-only)
>>>   devfs on /dev (devfs, local, multilabel)
>>>   /dev/md0 on /var (ufs, local)
>>>   /dev/md1 on /tmp (ufs, local)
>>>   zroot/ROOT/default on /mnt (zfs, local, noatime, nfsv4acls)
>>>   zroot/tmp on /mnt/tmp (zfs, local, noatime, nosuid, nfsv4acls)
>>>   zroot/usr/home on /mnt/usr/home (zfs, local, noatime, nfsv4acls)
>>>   zroot/usr/ports on /mnt/usr/ports (zfs, local, noatime, nosuid, 
>>> nfsv4acls)
>>>   zroot/usr/src on /mnt/usr/src (zfs, local, noatime, nfsv4acls)
>>>   zroot/var/audit on /mnt/var/audit (zfs, local, noatime, noexec, 
>>> nosuid,
>>> nfsv4acl
>>>   s)
>>>   zroot/var/crash on /mnt/var/crash (zfs, local, noatime, noexec, 
>>> nosuid,
>>> nfsv4acl
>>>   s)
>>>   zroot/var/log on /mnt/var/log (zfs, local, noatime, noexec, nosuid,
>>> nfsv4acls)
>>>   zroot/var/mail on /mnt/var/mail (zfs, local, nfsv4acls)
>>>   zroot/var/tmp on /mnt/var/tmp (zfs, local, noatime, nosuid, 
>>> nfsv4acls)
>>>   zroot on /mnt/zroot (zfs, local, noatime, nfsv4acls)
>>>   devfs on /mnt/dev (devfs, local, multilabel)
>>>   /mnt/usr/freebsd-dist on /usr/freebsd-dist (nullfs, local, union)
>>>   devfs on /mnt/dev (devfs, local, multilabel)
>>>
>>>
>>> After manually adding users and reboot:
>>>
>>>> zfs list
>>> NAME                 USED  AVAIL  REFER  MOUNTPOINT
>>> zroot                301M   441G    96K  /zroot
>>> zroot/ROOT           299M   441G    96K  none
>>> zroot/ROOT/default   299M   441G   299M  /
>>> zroot/tmp             96K   441G    96K  /tmp
>>> zroot/usr            424K   441G    96K  /usr
>>> zroot/usr/home       136K   441G   136K  /usr/home
>>> zroot/usr/ports       96K   441G    96K  /usr/ports
>>> zroot/usr/src         96K   441G    96K  /usr/src
>>> zroot/var            616K   441G    96K  /var
>>> zroot/var/audit       96K   441G    96K  /var/audit
>>> zroot/var/crash       96K   441G    96K  /var/crash
>>> zroot/var/log        136K   441G   136K  /var/log
>>> zroot/var/mail        96K   441G    96K  /var/mail
>>> zroot/var/tmp         96K   441G    96K  /var/tmp
>>>
>>>> mount
>>> zroot/ROOT/default on / (zfs, local, noatime, nfsv4acls)
>>> devfs on /dev (devfs, local, multilabel)
>>>
>>>
>>> On 02/24/17 19:18, Allan Jude wrote:
>>>> On 2017-02-24 20:03, Robert wrote:
>>>>> Another strange thing is that other folders (e.g. /etc) work fine:
>>>>>
>>>>> after install:
>>>>>
>>>>> #  ls -ldh /etc
>>>>> drwxr-xr-x  25 root  wheel   106B Feb 25 00:57 /etc
>>>>>
>>>>> After reboot:
>>>>>
>>>>> all my changes in /etc/rc.conf are preserved.
>>>>>
>>>>>
>>>>>
>>>>> On 02/23/17 19:36, Robert wrote:
>>>>>> After installation finished and user has been added from the shell:
>>>>>>
>>>>>> # ls -ldh /tmp
>>>>>> drwxrwxrwt  2 root  wheel     2B Sep 29 01:43 /tmp
>>>>>>
>>>>>> # getfacl /tmp
>>>>>> # file: /tmp
>>>>>> # owner: root
>>>>>> # group: wheel
>>>>>>               owner@:rwxp--aARWcCos:-------:allow
>>>>>>               group@:rwxp--a-R-c--s:-------:allow
>>>>>>            everyone@:rwxp--a-R-c--s:-------:allow
>>>>>>
>>>>>> # ls -la /usr/home/
>>>>>> total 35
>>>>>> drwxr-xr-x   3 root    wheel    3 Feb 24 03:21 .
>>>>>> drwxr-xr-x  16 root    wheel   16 Feb 24 03:21 ..
>>>>>> drwxr-xr-x   2 robert  robert  10 Feb 24 03:21 robert
>>>>>> #
>>>>>>
>>>>>> After reboot:
>>>>>>
>>>>>> #  ls -ldh /tmp
>>>>>> drwxr-xr-x  6 root  wheel     6B Feb 24 03:34 /tmp
>>>>>>
>>>>>> # getfacl /tmp
>>>>>> # file: /tmp
>>>>>> # owner: root
>>>>>> # group: wheel
>>>>>>               owner@:rwxp--aARWcCos:-------:allow
>>>>>>               group@:r-x---a-R-c--s:-------:allow
>>>>>>            everyone@:r-x---a-R-c--s:-------:allow
>>>>>>
>>>>>> # ls -la /usr/home/
>>>>>> total 9
>>>>>> drwxr-xr-x   2 root  wheel   2 Feb 24 01:54 .
>>>>>> drwxr-xr-x  16 root  wheel  16 Feb 24 03:21 ..
>>>>>>
>>>>>> On 02/15/17 20:40, Allan Jude wrote:
>>>>>>> On 2017-02-15 23:17, Robert wrote:
>>>>>>>> Hi.
>>>>>>>>
>>>>>>>> I've installed FreeBSD in ZFS mirror mode many times on different
>>>>>>>> hardware.
>>>>>>>>
>>>>>>>> The last step was always "Exit to the system to make final 
>>>>>>>> changes"
>>>>>>>> where I'm performing something like below:
>>>>>>>>
>>>>>>>> pw useradd -n myuser -s /bin/tcsh -m
>>>>>>>> pw groupmod wheel -m myuser
>>>>>>>> passwd myuser
>>>>>>>>
>>>>>>>> After reboot my user was there and everything worked as expected.
>>>>>>>>
>>>>>>>> /tmp folder was always writable after reboot btw.
>>>>>>>>
>>>>>>>>
>>>>>>>> Starting from FreeBSD 11.0 I've noticed a following "bug":
>>>>>>>>
>>>>>>>> once user added on the final step, all folders are created 
>>>>>>>> properly
>>>>>>>> (folder /home/myuser is there).
>>>>>>>>
>>>>>>>> After reboot, I can login as myuser, but /home/myuser is not 
>>>>>>>> there!
>>>>>>>> /home folder is empty!
>>>>>>>>
>>>>>>>> Moreover, /tmp is read-only!
>>>>>>>>
>>>>>>>> So I have to perform:
>>>>>>>>
>>>>>>>> su
>>>>>>>> chmod 1777 /tmp
>>>>>>>> pw userdel -n myuser
>>>>>>>> pw useradd -n myuser -s /bin/tcsh -m
>>>>>>>> pw groupmod wheel -m myuser
>>>>>>>> passwd myuser
>>>>>>>>
>>>>>>>> after first reboot to recover my user. After further reboots
>>>>>>>> everything
>>>>>>>> stays as it should.
>>>>>>>>
>>>>>>>> Is this expected behavior or a known bug?
>>>>>>>>
>>>>>>>> If expected - how can I get what I want after installation?
>>>>>>>>
>>>>>>>> Thanks!
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> freebsd-sysinstall@freebsd.org mailing list
>>>>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall
>>>>>>>> To unsubscribe, send any mail to
>>>>>>>> "freebsd-sysinstall-unsubscribe@freebsd.org"
>>>>>>> This is unexpected, but I have not seen this myself.
>>>>>>>
>>>>>>> On a fresh install, in the 'after install shell', what are the
>>>>>>> permissions on /tmp?
>>>>>>>
>>>>>>> And what are they after the reboot?
>>>>>>>
>>>>>>>
>>>>> _______________________________________________
>>>>> freebsd-sysinstall@freebsd.org mailing list
>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall
>>>>> To unsubscribe, send any mail to
>>>>> "freebsd-sysinstall-unsubscribe@freebsd.org"
>>>> I'd need to see:
>>>>
>>>> zfs list
>>>>
>>>> and
>>>>
>>>> mount
>>>>
>>>>   From the post-install jail, and from the after reboot
>>>>
>>>> To try to tell what is happening.
>>>>
>>> _______________________________________________
>>> freebsd-sysinstall@freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall
>>> To unsubscribe, send any mail to
>>> "freebsd-sysinstall-unsubscribe@freebsd.org"
>> This suggests you are missing:
>> zfs_enable="YES"
>>
>> in /etc/rc.conf
>>
>> and as such, /etc/rc.d/zfs is not being run, and mounting your non-root
>> filesystems.
>>
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5b516247-b8c4-f6fa-bcce-9fc96a7a051d>