Re: "Cannot determine prefetch area" error with OpenBSD current autoinstall

2014-12-16 Thread Nick Holland
On 12/16/14 22:06, Adriaan wrote:
> On Tue, Dec 16, 2014 at 8:26 AM, Raf  wrote:
>>
>> On Tue, Dec 16, 2014 at 01:01:51AM EST, Adriaan wrote:
>>
>> > An initial interactive install was succesful. A next autonstall using
>> > bsd,rd gave a "Cannot determine prefetch area" after selecting the
>> > sets.
>> > [...]
>> > Cannot determine prefetch area. Continue without verification? [no] no
>>
>> I see that tedu@ already mentioned the fact about your local storage is
>> probably too small. I'll only add a link to the FAQ[0] in case you have
>> missed it.
>>
> 
> With the following custom partition scheme of the same 3GB disk the
> verification succeeds:
> 
>> p m
> OpenBSD area: 63-6322176; size: 3087.0M; free: 0.0M
> #size   offset  fstype [fsize bsize  cpg]
>   a:  2901.9M   64  4.2BSD   2048 163841 # /
>   b:   185.1M  5943168swap   # none
>   c:  3093.4M0  unused
> 
...
> So the verification procedure simply needed a larger partition.

Look at the install scripts -- it doesn't prefetch just anywhere, it has
a few specific places.  /tmp, /home I think are two of the choices, may
be more (NOTE: I am too tired to bother looking this up myself now, and
it would be good experience for you to do so).  I don't think /usr is.
Thus, your original config, which had nowhere near enough space in /tmp
or /home for the prefetch caused it not to.

Nick.



Re: "Cannot determine prefetch area" error with OpenBSD current autoinstall

2014-12-16 Thread Adriaan
On Tue, Dec 16, 2014 at 8:26 AM, Raf  wrote:
>
> On Tue, Dec 16, 2014 at 01:01:51AM EST, Adriaan wrote:
>
> > An initial interactive install was succesful. A next autonstall using
> > bsd,rd gave a "Cannot determine prefetch area" after selecting the
> > sets.
> > [...]
> > Cannot determine prefetch area. Continue without verification? [no] no
>
> I see that tedu@ already mentioned the fact about your local storage is
> probably too small. I'll only add a link to the FAQ[0] in case you have
> missed it.
>

With the following custom partition scheme of the same 3GB disk the
verification succeeds:

> p m
OpenBSD area: 63-6322176; size: 3087.0M; free: 0.0M
#size   offset  fstype [fsize bsize  cpg]
  a:  2901.9M   64  4.2BSD   2048 163841 # /
  b:   185.1M  5943168swap   # none
  c:  3093.4M0  unused

Set name(s)? (or 'abort' or 'done') [done]
Get/Verify SHA256.sig   100% |**|  2067
00:00
Signature Verified
Get/Verify bsd  100% |**| 10295 KB
00:03
Get/Verify bsd.rd   100% |**|  6773 KB
00:01
Get/Verify base56.tgz   100% |**| 51074 KB
00:15
Installing bsd  100% |**| 10295 KB
00:02
Installing bsd.rd   100% |**|  6773 KB
00:01
Installing base56.tgz   100% |**| 51074 KB
00:56
Extracting etc.tgz  100% |**|   110 KB
00:00
Location of sets? (disk http or 'done') [done]

So the verification procedure simply needed a larger partition.

>
> > failed; check /ai.log
>
> Have you checked '/ai.log'?
>

Yes, but that was identical to the serial console output captured by tip.

>
> > Checksum test for site56.tgz failed. Continue anyway? = yes
> > Unverified sets: site56.tgz. Continue without verification? = yes
> > Checksum test for site56-andromache.tgz failed. Continue anyway? = yes
> > Unverified sets: site56-andromache.tgz. Continue without verification? =
> > yes
>
> Given that the initial installation finishes just fine, I conclude that
> the second attempt fails due to your 'site*.tgz'[1] file sets being too
> big - try again without them.
>

Only containing a few scripts and configuration files, the site*tgz file is
only 4K:

 -rw-r--r--  1 root  wheel  4913 Dec 16 03:25 site56.tgz

>
> [0] http://www.openbsd.org/faq/faq4.html#InstMedia
> [1] http://www.openbsd.org/faq/faq4.html#site
>

Thanks, it has been a while since I read those sections. But it indeeds
mentions the "Cannot determine prefetch area" error that I had never seen
before.

Adding the following to the install.conf file makes an autoinstall  with
the auto layout succeed:

Cannot determine prefetch area. Continue without verification? = yes

>From the log:

Set name(s)? (or 'abort' or 'done') [done] -all bsd bsd.rd
base56.tgz site56.tgz done
Cannot determine prefetch area. Continue without verification? [no] yes
Installing bsd  100% |**| 10295 KB
00:01
Installing bsd.rd   100% |**|  6773 KB
00:00
Installing base56.tgz   100% |**| 51074 KB
00:45
Extracting etc.tgz  100% |**|   110 KB00:00

So problem has been solved. Just have to verifiy the sets on the local
snapshot web server  by myself.

Adriaan



Re: "Cannot determine prefetch area" error with OpenBSD current autoinstall

2014-12-15 Thread Adriaan
On Tue, Dec 16, 2014 at 7:35 AM, Ted Unangst  wrote:
>
> On Tue, Dec 16, 2014 at 07:01, Adriaan wrote:
> > OpenBSD 5.6-current (RAMDISK_CD) #573: Sun Dec 14 20:08:49 MST 2014
> > dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
> >
> > An initial interactive install was succesful. A next autonstall using
> > bsd,rd gave a
> > "Cannot determine prefetch area" after selecting the sets.
>
> this probably means there wasn't a partition with enough free space
> available. looks like you have a pretty small disk.
>

Yes, the disk is 3GB but I only installed the minimum:

$ df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/wd0a  837M   44.4M750M 6%/
/dev/wd0e  323M   14.8M292M 5%/home
/dev/wd0d  1.7G205M1.4G13%/usr

During the install there is even more space, because then, the site56.tgz
has not  yet installed some packages, that are PKG_CACHEd in /home/packages.

ls -l /home/packages ; du -h $_
total 30160
-rw-r--r--  1 root  wheel  3265288 Dec 16 07:19 alpine-2.11p3.tgz
-rw-r--r--  1 root  wheel  3273159 Dec 16 07:19 aspell-0.60.6.1p1.tgz
-rw-r--r--  1 root  wheel   125754 Dec 16 07:19 bzip2-1.0.6p1.tgz
-rw-r--r--  1 root  wheel  5213261 Dec 16 07:19 gettext-0.19.3.tgz
-rw-r--r--  1 root  wheel  1540225 Dec 16 07:18 libiconv-1.14p1.tgz
-rw-r--r--  1 root  wheel  1374388 Dec 16 07:19 lynx-2.8.9pl1p0.tgz
-rw-r--r--  1 root  wheel 7580 Dec 16 07:18 quirks-2.43.tgz
-rw-r--r--  1 root  wheel   166936 Dec 16 07:19 unzip-6.0p5.tgz
-rw-r--r--  1 root  wheel   320970 Dec 16 07:19 xz-5.0.7.tgz
14.7M   /home/packages



Re: "Cannot determine prefetch area" error with OpenBSD current autoinstall

2014-12-15 Thread Raf
On Tue, Dec 16, 2014 at 01:01:51AM EST, Adriaan wrote:

> An initial interactive install was succesful. A next autonstall using
> bsd,rd gave a "Cannot determine prefetch area" after selecting the
> sets.
> [...]
> Cannot determine prefetch area. Continue without verification? [no] no

I see that tedu@ already mentioned the fact about your local storage is
probably too small. I'll only add a link to the FAQ[0] in case you have
missed it.

> failed; check /ai.log

Have you checked '/ai.log'?

> Checksum test for site56.tgz failed. Continue anyway? = yes
> Unverified sets: site56.tgz. Continue without verification? = yes
> Checksum test for site56-andromache.tgz failed. Continue anyway? = yes
> Unverified sets: site56-andromache.tgz. Continue without verification? =
> yes

Given that the initial installation finishes just fine, I conclude that
the second attempt fails due to your 'site*.tgz'[1] file sets being too
big - try again without them.

[0] http://www.openbsd.org/faq/faq4.html#InstMedia
[1] http://www.openbsd.org/faq/faq4.html#site

Regards,

Raf



Re: "Cannot determine prefetch area" error with OpenBSD current autoinstall

2014-12-15 Thread Ted Unangst
On Tue, Dec 16, 2014 at 07:01, Adriaan wrote:
> OpenBSD 5.6-current (RAMDISK_CD) #573: Sun Dec 14 20:08:49 MST 2014
> dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
> 
> An initial interactive install was succesful. A next autonstall using
> bsd,rd gave a
> "Cannot determine prefetch area" after selecting the sets.

this probably means there wasn't a partition with enough free space
available. looks like you have a pretty small disk.



"Cannot determine prefetch area" error with OpenBSD current autoinstall

2014-12-15 Thread Adriaan
OpenBSD 5.6-current (RAMDISK_CD) #573: Sun Dec 14 20:08:49 MST 2014
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD

An initial interactive install was succesful. A next autonstall using
bsd,rd gave a
"Cannot determine prefetch area" after selecting the sets.

(Complete  dmesg and install.conf will follow)

===
Let's install the sets!
Location of sets? (disk http or 'done') [http] http
HTTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none] none
(Unable to get list from ftp.openbsd.org, but that is OK)
HTTP Server? (hostname or 'done') hercules.utp.xnet
Server directory? [pub/OpenBSD/snapshots/i386] snapshots/i386

Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-' to the set name, file name pattern or 'all'.
Selected
sets are labelled '[X]'.
[X] bsd   [X] base56.tgz[X] xbase56.tgz   [X] xserv56.tgz
[X] bsd.rd[X] comp56.tgz[X] xshare56.tgz  [ ] site56.tgz
[ ] bsd.mp[X] man56.tgz [X] xfont56.tgz
Set name(s)? (or 'abort' or 'done') [done] -all bsd bsd.rd bsd.mp
base56.tgz site56.tgz done
Cannot determine prefetch area. Continue without verification? [no] no
failed; check /ai.log
===
Note that all sets were specified in a single reply in the install.conf
here.

A retry with only listing a single set for each prompt, gave the same error:

===Select sets by entering a set name, a file name pattern or 'all'.
De-select
sets by prepending a '-' to the set name, file name pattern or 'all'.
Selected
sets are labelled '[X]'.
[X] bsd   [X] base56.tgz[X] xbase56.tgz   [X] xserv56.tgz
[X] bsd.rd[X] comp56.tgz[X] xshare56.tgz  [ ] site56.tgz
[ ] bsd.mp[X] man56.tgz [X] xfont56.tgz
Set name(s)? (or 'abort' or 'done') [done] -all
[ ] bsd   [ ] base56.tgz[ ] xbase56.tgz   [ ] xserv56.tgz
[ ] bsd.rd[ ] comp56.tgz[ ] xshare56.tgz  [ ] site56.tgz
[ ] bsd.mp[ ] man56.tgz [ ] xfont56.tgz
Set name(s)? (or 'abort' or 'done') [done] bsd
[X] bsd   [ ] base56.tgz[ ] xbase56.tgz   [ ] xserv56.tgz
[ ] bsd.rd[ ] comp56.tgz[ ] xshare56.tgz  [ ] site56.tgz
[ ] bsd.mp[ ] man56.tgz [ ] xfont56.tgz
Set name(s)? (or 'abort' or 'done') [done] bsd.rd
[X] bsd   [ ] base56.tgz[ ] xbase56.tgz   [ ] xserv56.tgz
[X] bsd.rd[ ] comp56.tgz[ ] xshare56.tgz  [ ] site56.tgz
[ ] bsd.mp[ ] man56.tgz [ ] xfont56.tgz
Set name(s)? (or 'abort' or 'done') [done] bsd.mp
[X] bsd   [ ] base56.tgz[ ] xbase56.tgz   [ ] xserv56.tgz
[X] bsd.rd[ ] comp56.tgz[ ] xshare56.tgz  [ ] site56.tgz
[X] bsd.mp[ ] man56.tgz [ ] xfont56.tgz
Set name(s)? (or 'abort' or 'done') [done] base56.tgz
[X] bsd   [X] base56.tgz[ ] xbase56.tgz   [ ] xserv56.tgz
[X] bsd.rd[ ] comp56.tgz[ ] xshare56.tgz  [ ] site56.tgz
[X] bsd.mp[ ] man56.tgz [ ] xfont56.tgz
Set name(s)? (or 'abort' or 'done') [done] site56.tgz
[X] bsd   [X] base56.tgz[ ] xbase56.tgz   [ ] xserv56.tgz
[X] bsd.rd[ ] comp56.tgz[ ] xshare56.tgz  [X] site56.tgz
[X] bsd.mp[ ] man56.tgz [ ] xfont56.tgz
Set name(s)? (or 'abort' or 'done') [done] done
Cannot determine prefetch area. Continue without verification? [no] no
failed; check /ai.log

The install.conf for this retry:

===Terminal type? = vt220
System hostname = andromache
Which network interface do you wish to configure? = xl0
IPv4 address for = 192.168.222.188
Netmask for = 255.255.255.0
IPv6 address for = none
Which network interface do you wish to configure? = done
Default IPv4 route? = 192.168.222.10
DNS domain name? = utp.xnet
DNS nameservers? = 192.168.222.10
Password for root account? = dfsdfsdfdf
Public ssh key for root account? = ecdsa-sha2-nistp256
E2VjZHNhLXNoYTItbmlzdHAyNTYIbmlzdHAyNTYAAABBBCMPEpNB1XOPiaIcv2NJhG1c5Os595IebooZdnloA0OT+npTyk9FQbysijlFq+GWyc7Wu27qaELlhikj//qAyGc=
adri...@hercules.utp.xnet
Start sshd(8) by default? = yes
Start ntpd(8) by default? = yes
NTP server? = default
Do you expect to run the X Window System? = no
Do you want the X Window System to be started by xdm(1)? = no
Do you want to suspend on lid close? = no
Change the default console to com0? = yes
Which speed should com0 use? = 19200
What timezone are you in? = Europe/Amsterdam
Setup a user? = no
Which disk is the root disk? = sd0
Use DUIDs rather than device names in fstab? = yes
Use (W)hole disk or (E)dit the MBR? = W
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? = a
Which disk do you wish to initialize? = done
Location of sets? = http
HTTP proxy URL? = none
HTTP Server? = hercules.utp.xnet
Server directory? = snapshots/i386
Set name(s)? = -all
Set name(s)? = bsd
Set name(s)? = bsd.rd
Set name(s)? = bsd.mp
Set name(s)? = base56.tgz
Set name(s)? = site56.tgz
Set name(s)? = done
Checksum test for site56.tg