Date: Wed, 1 Oct 2008 14:24:01 +0300 From: Kyryll A Mirnenko aka Mirya <mirya@zoc.com.ua> To: Roland Smith <rsmith@xs4all.nl> Cc: Pawel Jakub Dawidek <pjd@freebsd.org>, freebsd-stable@freebsd.org Subject: Re: GELI partition mount on boot fails after 7.0 -> 7.1-PRERELEASE upgrade Message-ID: <200810011424.02903.mirya@zoc.com.ua> In-Reply-To: <20080930173202.GA16426@slackbox.xs4all.nl> References: <200809301454.47473.mirya@zoc.com.ua> <20080930173202.GA16426@slackbox.xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 30 September 2008 20:32, Roland Smith wrote: > My GELI encrypted home partition works fine on amd64 7.1-PRERELEASE > (updated september 25th). I've been tracking stable since 7.0-RELEASE > without problems. > > My custom kernel includes GEOM_ELI, GEOM_LABEL, GEOM_MIRROR and > GEOM_PART_GPT and uses SCHED_ULE. Filesystem options are FFS, > SOFTUPDATES, UFS_ACL and UFS_DIRHASH. The ADAPTIVE_GIANT and VFS_AIO > options are also part of the kernel. > First, I get to the following: if you have GEOM_PART_BSD in the kernel alone, attaching GELI at the boot time works as expected. If you add GEOM_PART_MBR (so both GEOM_PART_BSD and GEOM_PART_MBR are in), you face the problem i've described. Second, i've tried to get kern.geom.confxml sysctl as Pawel suggested, but with no lack. First, the whole XML dump doesn't feet the console buffer, so i can't later extract it from dmesg; i've tried to dump it to some file, but due to the fact everything is mounted -ro at the point /etc/rc.d/geli is executed, i placed "mount -u -rw /" in the beginning of it. While that made a trick and i got the dump (see below), the GELI partition attached successfully (while instantly failed with "Cannot access ad0s1f (error=1)" without remounting / -rw), so I guess remounting / read-write changed something and such dump will be of no use: <mesh> <class id="0xc09aafa0"> <name>ACD</name> <geom id="0xc230ea00"> <class ref="0xc09aafa0"/> <name>acd0</name> <rank>1</rank> <provider id="0xc230e980"> <geom ref="0xc230ea00"/> <mode>r0w0e0</mode> <name>acd0</name> <mediasize>8796093020160</mediasize> <sectorsize>2048</sectorsize> </provider> </geom> </class> <class id="0xc09abac0"> <name>MD</name> </class> <class id="0xc09bb260"> <name>ELI</name> </class> <class id="0xc09bbe80"> <name>JOURNAL</name> </class> <class id="0xc09bbe00"> <name>VOL_FFS</name> </class> <class id="0xc09bbd20"> <name>VFS</name> <geom id="0xc2312900"> <class ref="0xc09bbd20"/> <name>ffs.ad0s1a</name> <rank>4</rank> <consumer id="0xc23ae680"> <geom ref="0xc2312900"/> <provider ref="0xc230e880"/> <mode>r1w1e1</mode> </consumer> </geom> </class> <class id="0xc09bbca0"> <name>MBR</name> <geom id="0xc23b1a80"> <class ref="0xc09bbca0"/> <name>msdosfs/WD Passport</name> <rank>4</rank> <config> </config> <consumer id="0xc2310580"> <geom ref="0xc23b1a80"/> <provider ref="0xc230e780"/> <mode>r0w0e0</mode> <config> </config> </consumer> <provider id="0xc23b1800"> <geom ref="0xc23b1a80"/> <mode>r0w0e0</mode> <name>msdosfs/WD Passports4</name> <mediasize>10924544</mediasize> <sectorsize>512</sectorsize> <config> <index>3</index> <length>10924544</length> <seclength>21337</seclength> <offset>714049363456</offset> <secoffset>1394627663</secoffset> <type>73</type> </config> </provider> </geom> <geom id="0xc2391880"> <class ref="0xc09bbca0"/> <name>da0s1</name> <rank>3</rank> <config> </config> <consumer id="0xc23907c0"> <geom ref="0xc2391880"/> <provider ref="0xc239c400"/> <mode>r0w0e0</mode> <config> </config> </consumer> <provider id="0xc2391500"> <geom ref="0xc2391880"/> <mode>r0w0e0</mode> <name>da0s1s4</name> <mediasize>10924544</mediasize> <sectorsize>512</sectorsize> <config> <index>3</index> <length>10924544</length> <seclength>21337</seclength> <offset>714049363456</offset> <secoffset>1394627663</secoffset> <type>73</type> </config> </provider> </geom> <geom id="0xc2396880"> <class ref="0xc09bbca0"/> <name>da0</name> <rank>2</rank> <config> </config> <consumer id="0xc2398880"> <geom ref="0xc2396880"/> <provider ref="0xc2395b80"/> <mode>r0w0e0</mode> <config> </config> </consumer> <provider id="0xc239c480"> <geom ref="0xc2396880"/> <mode>r0w0e0</mode> <name>da0s1</name> <mediasize>120031478784</mediasize> <sectorsize>512</sectorsize> <config> <index>0</index> <length>120031478784</length> <seclength>234436482</seclength> <offset>32256</offset> <secoffset>63</secoffset> <type>12</type> </config> </provider> </geom> <geom id="0xc2311080"> <class ref="0xc09bbca0"/> <name>ad0</name> <rank>2</rank> <config> </config> <consumer id="0xc22c4700"> <geom ref="0xc2311080"/> <provider ref="0xc2311580"/> <mode>r1w1e3</mode> <config> </config> </consumer> <provider id="0xc230ee80"> <geom ref="0xc2311080"/> <mode>r1w1e2</mode> <name>ad0s1</name> <mediasize>40007729664</mediasize> <sectorsize>512</sectorsize> <config> <index>0</index> <length>40007729664</length> <seclength>78140097</seclength> <offset>32256</offset> <secoffset>63</secoffset> <type>165</type> </config> </provider> </geom> </class> <class id="0xc09bbc40"> <name>MBREXT</name> </class> <class id="0xc09bb060"> <name>BDE</name> </class> <class id="0xc09bc740"> <name>PART</name> <geom id="0xc2399a80"> <class ref="0xc09bc740"/> <name>da0</name> <rank>2</rank> <config> <scheme>MBR</scheme> <entries>4</entries> <first>63</first> <last>234441647</last> <fwsectors>63</fwsectors> <fwheads>255</fwheads> </config> <consumer id="0xc23ad040"> <geom ref="0xc2399a80"/> <provider ref="0xc2395b80"/> <mode>r0w0e0</mode> <config> </config> </consumer> <provider id="0xc239c400"> <geom ref="0xc2399a80"/> <mode>r0w0e0</mode> <name>da0s1</name> <mediasize>120031478784</mediasize> <sectorsize>512</sectorsize> <config> <index>1</index> <type>!12</type> <offset>32256</offset> <length>120031478784</length> <rawtype>12</rawtype> </config> </provider> </geom> <geom id="0xc230e680"> <class ref="0xc09bc740"/> <name>ad0s1</name> <rank>3</rank> <config> <scheme>BSD</scheme> <entries>8</entries> <first>0</first> <last>78140096</last> <fwsectors>63</fwsectors> <fwheads>16</fwheads> </config> <consumer id="0xc22c44c0"> <geom ref="0xc230e680"/> <provider ref="0xc230ee80"/> <mode>r1w1e2</mode> <config> </config> </consumer> <provider id="0xc2311900"> <geom ref="0xc230e680"/> <mode>r0w0e0</mode> <name>ad0s1f</name> <mediasize>5368709120</mediasize> <sectorsize>512</sectorsize> <config> <index>6</index> <type>freebsd-ufs</type> <offset>1048576000</offset> <length>5368709120</length> <rawtype>7</rawtype> </config> </provider> <provider id="0xc2311480"> <geom ref="0xc230e680"/> <mode>r0w0e0</mode> <name>ad0s1e</name> <mediasize>734003200</mediasize> <sectorsize>512</sectorsize> <config> <index>5</index> <type>freebsd-ufs</type> <offset>314572800</offset> <length>734003200</length> <rawtype>7</rawtype> </config> </provider> <provider id="0xc230ed00"> <geom ref="0xc230e680"/> <mode>r0w0e0</mode> <name>ad0s1d</name> <mediasize>314572800</mediasize> <sectorsize>512</sectorsize> <config> <index>4</index> <type>freebsd-ufs</type> <offset>0</offset> <length>314572800</length> <rawtype>7</rawtype> </config> </provider> <provider id="0xc2311500"> <geom ref="0xc230e680"/> <mode>r0w0e0</mode> <name>ad0s1b</name> <mediasize>402653184</mediasize> <sectorsize>512</sectorsize> <config> <index>2</index> <type>freebsd-swap</type> <offset>6417285120</offset> <length>402653184</length> <rawtype>1</rawtype> </config> </provider> <provider id="0xc230e880"> <geom ref="0xc230e680"/> <mode>r1w1e1</mode> <name>ad0s1a</name> <mediasize>33187791360</mediasize> <sectorsize>512</sectorsize> <config> <index>1</index> <type>freebsd-ufs</type> <offset>6819938304</offset> <length>33187791360</length> <rawtype>7</rawtype> </config> </provider> </geom> </class> <class id="0xc09bb720"> <name>DISK</name> <geom id="0xc23b0100"> <class ref="0xc09bb720"/> <name>cd0</name> <rank>1</rank> <config> </config> <provider id="0xc239cb80"> <geom ref="0xc23b0100"/> <mode>r0w0e0</mode> <name>cd0</name> <mediasize>0</mediasize> <sectorsize>2048</sectorsize> <config> <fwheads>0</fwheads> <fwsectors>0</fwsectors> </config> </provider> </geom> <geom id="0xc2393d00"> <class ref="0xc09bb720"/> <name>da0</name> <rank>1</rank> <config> </config> <provider id="0xc2395b80"> <geom ref="0xc2393d00"/> <mode>r0w0e0</mode> <name>da0</name> <mediasize>120034123776</mediasize> <sectorsize>512</sectorsize> <config> <fwheads>255</fwheads> <fwsectors>63</fwsectors> </config> </provider> </geom> <geom id="0xc2311600"> <class ref="0xc09bb720"/> <name>ad0</name> <rank>1</rank> <config> </config> <provider id="0xc2311580"> <geom ref="0xc2311600"/> <mode>r1w1e3</mode> <name>ad0</name> <mediasize>40007761920</mediasize> <sectorsize>512</sectorsize> <config> <fwheads>16</fwheads> <fwsectors>63</fwsectors> </config> </provider> </geom> </class> <class id="0xc09bc5e0"> <name>LABEL</name> <geom id="0xc2311100"> <class ref="0xc09bc5e0"/> <name>da0s1</name> <rank>3</rank> <config> </config> <consumer id="0xc2390140"> <geom ref="0xc2311100"/> <provider ref="0xc239c480"/> <mode>r0w0e0</mode> <config> </config> </consumer> <provider id="0xc230e780"> <geom ref="0xc2311100"/> <mode>r0w0e0</mode> <name>msdosfs/WD Passport</name> <mediasize>120031478784</mediasize> <sectorsize>512</sectorsize> <config> <index>0</index> <length>120031478784</length> <seclength>234436482</seclength> <offset>0</offset> <secoffset>0</secoffset> </config> </provider> </geom> </class> <class id="0xc09e1c60"> <name>SWAP</name> </class> <class id="0xc09bb620"> <name>DEV</name> <geom id="0xc2311b80"> <class ref="0xc09bb620"/> <name>msdosfs/WD Passports4</name> <rank>5</rank> <consumer id="0xc2394880"> <geom ref="0xc2311b80"/> <provider ref="0xc23b1800"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2391680"> <class ref="0xc09bb620"/> <name>da0s1s4</name> <rank>4</rank> <consumer id="0xc2390600"> <geom ref="0xc2391680"/> <provider ref="0xc2391500"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2395a80"> <class ref="0xc09bb620"/> <name>msdosfs/WD Passport</name> <rank>4</rank> <consumer id="0xc2390040"> <geom ref="0xc2395a80"/> <provider ref="0xc230e780"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc23b1600"> <class ref="0xc09bb620"/> <name>cd0</name> <rank>2</rank> <consumer id="0xc23adcc0"> <geom ref="0xc23b1600"/> <provider ref="0xc239cb80"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2395780"> <class ref="0xc09bb620"/> <name>da0s1</name> <rank>3</rank> <consumer id="0xc2394680"> <geom ref="0xc2395780"/> <provider ref="0xc239c400"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2312380"> <class ref="0xc09bb620"/> <name>da0s1</name> <rank>3</rank> <consumer id="0xc2310700"> <geom ref="0xc2312380"/> <provider ref="0xc239c480"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2393080"> <class ref="0xc09bb620"/> <name>da0</name> <rank>2</rank> <consumer id="0xc23ae5c0"> <geom ref="0xc2393080"/> <provider ref="0xc2395b80"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2399e80"> <class ref="0xc09bb620"/> <name>ad0s1df</name> <rank>5</rank> <consumer id="0xc23ae580"> <geom ref="0xc2399e80"/> <provider ref="0xc2393000"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2399880"> <class ref="0xc09bb620"/> <name>ad0s1de</name> <rank>5</rank> <consumer id="0xc23ae7c0"> <geom ref="0xc2399880"/> <provider ref="0xc2393100"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2399d00"> <class ref="0xc09bb620"/> <name>ad0s1dd</name> <rank>5</rank> <consumer id="0xc23948c0"> <geom ref="0xc2399d00"/> <provider ref="0xc2393200"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc239c280"> <class ref="0xc09bb620"/> <name>ad0s1dc</name> <rank>5</rank> <consumer id="0xc23986c0"> <geom ref="0xc239c280"/> <provider ref="0xc2393300"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc239c700"> <class ref="0xc09bb620"/> <name>ad0s1db</name> <rank>5</rank> <consumer id="0xc2394d40"> <geom ref="0xc239c700"/> <provider ref="0xc2393400"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2399700"> <class ref="0xc09bb620"/> <name>ad0s1da</name> <rank>5</rank> <consumer id="0xc2394780"> <geom ref="0xc2399700"/> <provider ref="0xc2393500"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2391600"> <class ref="0xc09bb620"/> <name>ad0s1f</name> <rank>4</rank> <consumer id="0xc2310b80"> <geom ref="0xc2391600"/> <provider ref="0xc2311900"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2391a80"> <class ref="0xc09bb620"/> <name>ad0s1e</name> <rank>4</rank> <consumer id="0xc23104c0"> <geom ref="0xc2391a80"/> <provider ref="0xc2311480"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2393600"> <class ref="0xc09bb620"/> <name>ad0s1d</name> <rank>4</rank> <consumer id="0xc23106c0"> <geom ref="0xc2393600"/> <provider ref="0xc230ed00"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2393a80"> <class ref="0xc09bb620"/> <name>ad0s1b</name> <rank>4</rank> <consumer id="0xc2310900"> <geom ref="0xc2393a80"/> <provider ref="0xc2311500"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2312280"> <class ref="0xc09bb620"/> <name>ad0s1a</name> <rank>4</rank> <consumer id="0xc2310b40"> <geom ref="0xc2312280"/> <provider ref="0xc230e880"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc2312080"> <class ref="0xc09bb620"/> <name>acd0</name> <rank>2</rank> <consumer id="0xc2310d80"> <geom ref="0xc2312080"/> <provider ref="0xc230e980"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc20fb300"> <class ref="0xc09bb620"/> <name>ad0s1</name> <rank>3</rank> <consumer id="0xc23904c0"> <geom ref="0xc20fb300"/> <provider ref="0xc230ee80"/> <mode>r0w0e0</mode> </consumer> </geom> <geom id="0xc230eb00"> <class ref="0xc09bb620"/> <name>ad0</name> <rank>2</rank> <consumer id="0xc22c4d80"> <geom ref="0xc230eb00"/> <provider ref="0xc2311580"/> <mode>r0w0e0</mode> </consumer> </geom> </class> <class id="0xc09bb540"> <name>BSD</name> <geom id="0xc2393580"> <class ref="0xc09bb540"/> <name>ad0s1d</name> <rank>4</rank> <config> <labeloffset>512</labeloffset> <rawoffset>32256</rawoffset> <mbroffset>32256</mbroffset> </config> <consumer id="0xc2310640"> <geom ref="0xc2393580"/> <provider ref="0xc230ed00"/> <mode>r0w0e0</mode> <config> </config> </consumer> <provider id="0xc2393000"> <geom ref="0xc2393580"/> <mode>r0w0e0</mode> <name>ad0s1df</name> <mediasize>5368709120</mediasize> <sectorsize>512</sectorsize> <config> <index>5</index> <length>5368709120</length> <seclength>10485760</seclength> <offset>1048576000</offset> <secoffset>2048000</secoffset> <type>7</type> </config> </provider> <provider id="0xc2393100"> <geom ref="0xc2393580"/> <mode>r0w0e0</mode> <name>ad0s1de</name> <mediasize>734003200</mediasize> <sectorsize>512</sectorsize> <config> <index>4</index> <length>734003200</length> <seclength>1433600</seclength> <offset>314572800</offset> <secoffset>614400</secoffset> <type>7</type> </config> </provider> <provider id="0xc2393200"> <geom ref="0xc2393580"/> <mode>r0w0e0</mode> <name>ad0s1dd</name> <mediasize>314572800</mediasize> <sectorsize>512</sectorsize> <config> <index>3</index> <length>314572800</length> <seclength>614400</seclength> <offset>0</offset> <secoffset>0</secoffset> <type>7</type> </config> </provider> <provider id="0xc2393300"> <geom ref="0xc2393580"/> <mode>r0w0e0</mode> <name>ad0s1dc</name> <mediasize>40007729664</mediasize> <sectorsize>512</sectorsize> <config> <index>2</index> <length>40007729664</length> <seclength>78140097</seclength> <offset>0</offset> <secoffset>0</secoffset> <type>0</type> </config> </provider> <provider id="0xc2393400"> <geom ref="0xc2393580"/> <mode>r0w0e0</mode> <name>ad0s1db</name> <mediasize>402653184</mediasize> <sectorsize>512</sectorsize> <config> <index>1</index> <length>402653184</length> <seclength>786432</seclength> <offset>6417285120</offset> <secoffset>12533760</secoffset> <type>1</type> </config> </provider> <provider id="0xc2393500"> <geom ref="0xc2393580"/> <mode>r0w0e0</mode> <name>ad0s1da</name> <mediasize>33187791360</mediasize> <sectorsize>512</sectorsize> <config> <index>0</index> <length>33187791360</length> <seclength>64819905</seclength> <offset>6819938304</offset> <secoffset>13320192</secoffset> <type>7</type> </config> </provider> </geom> </class> </mesh> Hope the above will help solving it, though as far as it's specific to my weird kernel configuration and the bad options combination is known it's low priority. Also, if someone can offer a simple way to get kern.geom.confxml at the time the problem occurs, i can experiment more. -- Regards, Mirya ICQ #313898202
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810011424.02903.mirya>