Daniel O'Connor
2013-Jul-23 03:18 UTC
kern.geom.conftxt broken in the presence of geom_raid
I am trying to write a script which generates a list of devices to install on (hopefully with some vaguely descriptive message next to it) and I noticed that kern.geom.conftxt is mangled when there is a graid volume present, eg.. root at test92:/root # sysctl kern.geom.conftxt | less kern.geom.conftxt: 0 DISK ada2 500107862016 512 hd 16 sc 63 1 RAID raid/r0 500104691712 512(null)<descr>Intel RAID1 volume</descr> (null)<Label>Volume0</Label> (null)<RAIDLevel>RAID1</RAIDLevel> (null)<Transformation>RAID1</Transformation> (null)<Components>2</Components> (null)<Strip>65536</Strip> (null)<State>OPTIMAL</State> (null)<Dirty>No</Dirty> (null)<Subdisks>ada1 (ACTIVE), ada2 (ACTIVE)</Subdisks> 2 PART raid/r0p6 471372660736 512 i 6 o 27917370368 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b 3 LABEL gptid/821a18d0-efb3-11e2-855b-002590d071b5 471372660736 512 i 0 o 0 3 LABEL ufsid/51e7fdbd167c3fbb 471372660736 512 i 0 o 0 2 PART raid/r0p5 21474836480 512 i 5 o 6442533888 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b It looks like the <config> tag has been pushed in where it shouldn't be. So, I guess I'll have to find some other way to generate my list :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C