Re: missing ad0p2 device while GEOM sees GPT

From: Marcel Moolenaar (marcel_at_xcllnt.net)
Date: 10/12/04

  • Next message: Brian Fundakowski Feldman: "Re: fails to mount md /tmp"
    Date: Mon, 11 Oct 2004 17:38:27 -0700
    To: Emanuel Strobl <Emanuel.Strobl@gmx.net>
    
    

    On Oct 11, 2004, at 2:10 PM, Emanuel Strobl wrote:

    > Am Montag, 11. Oktober 2004 19:03 schrieb Marcel Moolenaar:
    > [...]
    >>> But when I try it fails becaus there also is no /dev/ad0p at all.
    >>
    >> Odd. I'll see if I can reproduce this. In the mean time, see if md(4)
    >> exhibits the same behaviour.
    >>
    >>> Btw, it's a i386 box, not ia64.
    >>
    >> I know. :-)
    >
    > Nice :) I have news, please let me know if I'm doing things the right
    > way. Now
    > I set up a standard MBR with one standard slice and standard labels
    > inside.
    > Then I issued 'gpt migrate -k -s ad0' and now I have a booting box and
    > could
    > add ('gpt add -b ??????? -s 2000000 -i 3 -t ufs ad0') a third GPT part
    > of
    > type ufs.

    Ok. No obvious bogons here.

    > After a reboot I also have the device ad0p3, but why do I need to
    > reboot?

    Dunno. AFAICT you don't have to reboot at all because if GEOM allows
    you to
    create a new partition/slice, it'll create the device nodes right away.
    You
    might want to sync(8) and see if the device node shows up then. We've
    had
    some latency/synchronisation issues in the past with mdconfig(8)...

    > And why doesn't 'gpt show ad0' work without setting
    > kern.geom.debugflags to
    > 16?

    Because gpt(8) opens the device RW by default and this is not allowed by
    GEOM (by default) when partitions are mounted. You can either give
    gpt(8)
    the -r option for opening the disk RO, or tell GEOM to loosen up (which
    is what the debugflags value does).

    > And like I posted in another mail, as soon as there is a GPT on the
    > disk
    > sysinstall panickes (BARF <171>, panic: Going nowhere without my
    > init!).

    I saw the mail, but did not answer. The problem is libdisk. When it
    encounters something in the GEOM conftxt sysctl that it doesn't expect
    it
    simply barfs (<171> in this case) and bails out. Since sysinstall(8) is
    the only consumer of this library, sysinstall is the only one affected.
    There are a lot of bugs in libdisk like that. My advice: don't do it...

    > And while I'm at sysinstall I'd liek to repeat another posting:
    > Sysinstall
    > always sets the boot flag to any slice, so if you add (or define two
    > at once)
    > a slice you have a invalid partition tabel (in the MBR) with two active
    > flags.

    File a PR?

    -- 
      Marcel Moolenaar         USPA: A-39004          marcel@xcllnt.net
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Brian Fundakowski Feldman: "Re: fails to mount md /tmp"

    Relevant Pages

    • GEOM topology still+more output/USB Crashes
      ... I did appreciate the chance to review GEOM sources and the GEOM ... I did change the mbr to be at offset 0 instead of 63 which drastically ... reduced the radical/loopy slice entries. ... USB crashes both on disconnect of flash ...
      (freebsd-current)
    • Re: [patch] NetBSD disklabel support for geom_bsd
      ... labels. ... media offsets in the entries of this label are not slice-relative ... _outside_ NetBSD slice! ... GEOM means *more* freedom, not less. ...
      (freebsd-current)
    • Cant *write* to a hard disk, problem related to GEOM(4)?
      ... since the problem *seems* to be related to GEOM. ... The first thread for this subject begin from question@, ... I am not be able to create a new slice on it. ... 2/ I succeed to write on it under the 4.9 bootable CDROM (fdisk, bsdlabel, ...
      (freebsd-current)
    • Re: update slices on (a)cd devices
      ... I created a dvd with two slices a and b. ... This slices are ufs formated and gbde encrypted. ... the cd0* device nodes are updated. ... Since I didn't understand the conecpt of geom ...
      (freebsd-hackers)
    • Re: Devd event from GEOM?
      ... :> Geom doesn't feed node-creations to devd in 5.3. ... :> needs the disk device nodes. ... :> Geom is modular enough that this shouldn't be difficult... ... I do think that GEOM is the wrong layer to ...
      (freebsd-current)