Re: dumpdev AUTO in rc.conf does not work

From: Gary Jennejohn <gljennjohn_at_gmail.com>
Date: Mon, 9 Aug 2021 20:15:01 +0200
On Mon, 09 Aug 2021 17:17:00 +0000
"Dave Cottlehuber" <dch_at_skunkwerks.at> wrote:

> On Mon, 9 Aug 2021, at 15:54, Gary Jennejohn wrote:
> > Maybe his problem arises from use of /dev/gpt/swap?  That's a difference
> > between his setup and your setup.  
> 
> good point, after amending fstab and checking gpt labels carefully, it still
> works ok for me:
> 
> root_at_a01 /u/h/dch# gpart show
> =>      40  97677232  da0  GPT  (47G)  
>         40    532480    1  efi  (260M)
>     532520      2008       - free -  (1.0M)
>     534528   8388608    2  freebsd-swap  (4.0G)
>    8923136  88754136    3  freebsd-zfs  (42G)
> 
> root_at_a01 /u/h/dch# grep swap /etc/fstab
> /dev/gpt/swap0          none            swap    sw                      0       0
> 
> root_at_a01 /u/h/dch# swapinfo
> Device          512-blocks     Used    Avail Capacity
> /dev/gpt/swap0     8388608        0  8388608     0%
> 
> root_at_a01 /u/h/dch# sysrc dumpdev
> dumpdev: AUTO
> 
> root_at_a01 /u/h/dch# dumpon -l
> gpt/swap0
> 

Thanks!  Very useful information.

> I do have these set in loader.conf, though, switching them off makes
> no difference:
> 
> root_at_a01 /u/h/dch# grep geom /boot/loader.conf
> kern.geom.label.disk_ident.enable="0"
> kern.geom.label.gptid.enable="0"
> 

These are the default values - well, on amd64 they are:

sysctl kern.geom.label
kern.geom.label.disk_ident.enable: 0
kern.geom.label.gptid.enable: 0
kern.geom.label.gpt.enable: 1
kern.geom.label.ufs.enable: 1
kern.geom.label.ufsid.enable: 1
kern.geom.label.reiserfs.enable: 1
kern.geom.label.ntfs.enable: 1
kern.geom.label.msdosfs.enable: 1
kern.geom.label.iso9660.enable: 1
kern.geom.label.flashmap.enable: 1
kern.geom.label.ext2fs.enable: 1
kern.geom.label.debug: 0

-- 
Gary Jennejohn
Received on Mon Aug 09 2021 - 18:15:01 UTC

Original text of this message