Re: zpool requires re-import on reboot

2013-11-20 Thread Allan Jude
On 2013-11-20 02:49, Beeblebrox wrote:
 Alan: This corrects the zpool import problem (thanks for that):
 zpool_cache_type=/boot/zfs/zpool.cache
 zpool_cache_name=/boot/zfs/zpool.cache 

 But boot still drops to single user and needs zfs mount -a to locate the
 fstab entries.
 Some datasets have canmount=noauto (but have a corresponding fstab entry).
 However, the primary dataset of the zpool (where dataset name = zpoll name)
 for both pools has canmount=on.
 One other non-standard property I have is that the dataset name is
 different than mountpoint (zfs set mountpoint=/some other folder)
 Nothing else out of the ordinary that I can think of.

 Regards.



 -
 FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
 --
 View this message in context: 
 http://freebsd.1045724.n5.nabble.com/zpool-requires-re-import-on-reboot-tp5861930p5862442.html
 Sent from the freebsd-current mailing list archive at Nabble.com.
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

having zfs_enable=YES in /etc/rc.conf should automatically run 'zfs
mount -a' during boot, and you shouldn't have this problem


What does the output of this command look like:

zfs get -r -t filesystem canmount,mountpoint $poolname

in the zfsboot script, some datasets have canmount=off on purpose, /usr
has it so that /usr/bin goes in the root dataset, but the dataset is
required to create a separate /usr/local dataset

-- 
Allan Jude




signature.asc
Description: OpenPGP digital signature


Re: zpool requires re-import on reboot

2013-11-20 Thread Beeblebrox
My apologies, please disregard last message - problem was an error on my
part.



-
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/zpool-requires-re-import-on-reboot-tp5861930p5862468.html
Sent from the freebsd-current mailing list archive at Nabble.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: zpool requires re-import on reboot

2013-11-19 Thread Beeblebrox
Alan: This corrects the zpool import problem (thanks for that):
zpool_cache_type=/boot/zfs/zpool.cache
zpool_cache_name=/boot/zfs/zpool.cache 

But boot still drops to single user and needs zfs mount -a to locate the
fstab entries.
Some datasets have canmount=noauto (but have a corresponding fstab entry).
However, the primary dataset of the zpool (where dataset name = zpoll name)
for both pools has canmount=on.
One other non-standard property I have is that the dataset name is
different than mountpoint (zfs set mountpoint=/some other folder)
Nothing else out of the ordinary that I can think of.

Regards.



-
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/zpool-requires-re-import-on-reboot-tp5861930p5862442.html
Sent from the freebsd-current mailing list archive at Nabble.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: zpool requires re-import on reboot

2013-11-18 Thread Beeblebrox
 Do have zfs_enable=YES in rc.conf?
Yes, and my ZFS root mounts without problem. Also in /boot/loader.conf:

zfs_load=YES
opensolaris_load=YES
vfs.root.mountfrom=zfs:bsds
#-

#_ZFS_PERFORMANCE
#I have 4G of Ram
vfs.zfs.prefetch_disable=0
#Ram 4GB = 512. Ram 8GB = value 1024
vfs.zfs.arc_min=512M
#Ram x 0.5 - 512 MB
vfs.zfs.arc_max=1536M
#Ram x 2 = vm.kmem_size_max=16G
#Ram x 1.5
vm.kmem_size=6G
vfs.zfs.vdev_max_pending=1
#-




-
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/zpool-requires-re-import-on-reboot-tp5861930p5861933.html
Sent from the freebsd-current mailing list archive at Nabble.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: zpool requires re-import on reboot

2013-11-18 Thread Andriy Gapon
on 18/11/2013 09:47 Beeblebrox said the following:
 I have root on zfs, which mounts fine on start. I have two other pools, which
 do not get mounted and must be imported each time. Boot falls to single-user
 mode because it cannot find the zfs-related mounts for the two pools in
 question. The zpool import does not require the -f flag to import, but
 does keep the pools in an exported state for some reason.
 
 FreeBSD 11.0-CURRENT #0 r257917 amd64

Is there anything non-standard about your configuration?
All pools that are present in /boot/zfs/zpool.cache on a root filesystem of a
root pool should be automatically imported.

-- 
Andriy Gapon
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: zpool requires re-import on reboot

2013-11-18 Thread Beeblebrox
 Is there anything non-standard about your configuration?
 All pools that are present in /boot/zfs/zpool.cache on a root filesystem of a
 root pool should be automatically imported.

Yes I know that, hence the reason I posted.

ll /boot/zfs  shows recently updated zpool.cache =
-rw-r--r--  1 root  wheel  3736 Nov 18 10:03 zpool.cache

* No special setting on pool or datasets of the pool
* /etc/src.conf even has LOADER_ZFS_SUPPORT= yes
* custom kernel has label disabled (#optionsGEOM_LABEL ).
However, generic kernel shows same behavior.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: zpool requires re-import on reboot

2013-11-18 Thread Allan Jude
On 2013-11-18 03:51, Beeblebrox wrote:
 Is there anything non-standard about your configuration?
 All pools that are present in /boot/zfs/zpool.cache on a root filesystem of a
 root pool should be automatically imported.
 Yes I know that, hence the reason I posted.

 ll /boot/zfs  shows recently updated zpool.cache =
 -rw-r--r--  1 root  wheel  3736 Nov 18 10:03 zpool.cache

 * No special setting on pool or datasets of the pool
 * /etc/src.conf even has LOADER_ZFS_SUPPORT= yes
 * custom kernel has label disabled (#optionsGEOM_LABEL ).
 However, generic kernel shows same behavior.
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
In /boot/loader.conf try adding:

zpool_cache_load=YES
zpool_cache_type=/boot/zfs/zpool.cache
zpool_cache_name=/boot/zfs/zpool.cache


This should make it read the zpool.cache file and mount all of the pools, 
instead of only the one which contains your root file system



-- 
Allan Jude




signature.asc
Description: OpenPGP digital signature


Re: zpool requires re-import on reboot

2013-11-18 Thread Andriy Gapon
on 18/11/2013 10:51 Beeblebrox said the following:
 Is there anything non-standard about your configuration?
 All pools that are present in /boot/zfs/zpool.cache on a root filesystem of a
 root pool should be automatically imported.
 
 Yes I know that, hence the reason I posted.
 
 ll /boot/zfs  shows recently updated zpool.cache =
 -rw-r--r--  1 root  wheel  3736 Nov 18 10:03 zpool.cache
 
 * No special setting on pool or datasets of the pool
 * /etc/src.conf even has LOADER_ZFS_SUPPORT= yes
 * custom kernel has label disabled (#optionsGEOM_LABEL ).
 However, generic kernel shows same behavior.
 

What does zdb -C report?

-- 
Andriy Gapon
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: zpool requires re-import on reboot

2013-11-17 Thread Andreas Nilsson
On Mon, Nov 18, 2013 at 8:47 AM, Beeblebrox zap...@berentweb.com wrote:

 I have root on zfs, which mounts fine on start. I have two other pools,
 which
 do not get mounted and must be imported each time. Boot falls to
 single-user
 mode because it cannot find the zfs-related mounts for the two pools in
 question. The zpool import does not require the -f flag to import, but
 does keep the pools in an exported state for some reason.

 FreeBSD 11.0-CURRENT #0 r257917 amd64



 Do you have a valid /boot/zfs/zpool.cache?

Do have zfs_enable=YES in rc.conf?

Best regards
Andreas
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org