Re: ZFS mirror install /mnt is empty

2013-05-15 Thread Roland van Laar

On 13-05-13 07:58, Trond Endrestøl wrote:

On Sun, 12 May 2013 23:11+0200, Roland van Laar wrote:


Hello,

I followed these[1] step up to the Finishing touches.
I'm using a 9.1 Release.

After the install I go into the shell and /mnt is empty.
The mount command shows that the zfs partitions are mounted.
When I reboot the system it can't find the bootloader.

What can I do to fix this?

Thanks,

Roland van Laar

[1] https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE

Looking through the wiki notes I would do a couple of things in a
different way.

Since you're running 9.1-RELEASE you should take into account the need
for the /boot/zfs/zpool.cache file until 9.2-RELEASE exist or you
switch to the latest 9-STABLE.

Create your zpool using a command like this one:

zpool create -o cachefile=/tmp/zpool.cache -m /tmp/zroot zroot /dev/gpt/disk0

Copy the /tmp/zpool.cache file to /tmp/zroot/boot/zfs/zpool.cache, or
in your case to /mnt/boot/zfs/zpool.cache after extracting the base
and kernel stuff.

In the wiki section Finishing touches, perform step 4 before step 3.
The final command missing in step 3 should be zfs unmount -a once
more. Avoid step 5 at all cost!

Maybe this recipe is easier to follow, it sure works for 9.0-RELEASE
and 9.1-RELEASE, I only hope you're happy typing long commands, and
yes, command line editing is available in the shell:

https://ximalas.info/2011/10/17/zfs-root-fs-on-freebsd-9-0/


Thank you for that link. This worked (better).
I'm getting into the 'mountroot' shell during the boot. Oh well, I'm 
getting better at this.


The ZFS guides on the wiki leave you with a empty root zfs filesystem 
after the installation.
After I know a bit more about ZFS and why the FreeBSD wiki is wrong on 
ZFS installation I hope

to edit them.

Thank you all for your answers,

Regards,

Roland van Laar

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ZFS partitioning

2013-05-12 Thread Roland van Laar

Hello,

I'm following the raidz[1] and mirror[2] guides for a ZFS root.
For a test installation on a 5 disk Virtualbox environment.

I see that all the disks get the same partitions, including swap and boot?
Why is that? And do I need those 5 boot and swap partitions?

Thank you for your time,

Rolad

[1]https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/RAIDZ1
[2]https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ZFS mirror install /mnt is empty

2013-05-12 Thread Roland van Laar

Hello,

I followed these[1] step up to the Finishing touches.
I'm using a 9.1 Release.

After the install I go into the shell and /mnt is empty.
The mount command shows that the zfs partitions are mounted.
When I reboot the system it can't find the bootloader.

What can I do to fix this?

Thanks,

Roland van Laar

[1] https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ruby cpu 100% hang during pkgdb -F

2011-03-31 Thread Roland van Laar

Hello,

I'm asking again about pkgdb -F because it's still running.

On 03/29/2011 07:50 AM, Roland van Laar wrote:

Hello,

I updated FreeBSD 8.0 to 8.2 with freebsd-update.
Everything went fine till I got to the ports:
I used the commands:

snip


# pkgdb -F

gives me this:

---  Checking the package registry database
[Rebuilding the pkgdb format:bdb_btree in /var/db/pkg ... - 185 
packages found (-0 +185) 
100. 
done]

Stale origin: 'devel/automake19': perhaps moved or obsoleted.
- The port 'devel/automake19' was removed on 2010-10-07 because:
No longer required by any port
- Hint: automake-1.9.6_3 is not required by any other package
- Hint: checking for overwritten files...
 - No files installed by automake-1.9.6_3 have been overwritten by 
other packages.

Deinstall automake-1.9.6_3 ? [no] yes


snip
Checking zh_tw-freebsd-doc-20100625
Regenerating +REQUIRED_BY files
Checking for cyclic dependencies


After more than 55 hours of runtine pkgdb -F still hasn't finished and 
is 'Checking for cyclic dependencies'.

Is it normal that pkgdb -F takes such a long time?
And is there something I can do to fix this?

Roland

What do I need to do to update my ports?

tldr: updated ports, rm /var/db/pkg/pkgdb.db and pkgdf -F hangs at 
100% cpu.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ruby cpu 100% hang during pkgdb -F

2011-03-29 Thread Roland van Laar

Hello,

I updated FreeBSD 8.0 to 8.2 with freebsd-update.
Everything went fine till I got to the ports:
I used the commands:

# portupgrade -f ruby
# rm /var/db/pkg/pkgdb.db
# portupgrade -f ruby18-bdb

portupgrade -f ruby gave problems because of a security issue.
So I updated the ports with portsnap extract and update.
I upgraded ruby removed pkgdb.db
Here is where things went wrong.
portupgrade hangs while ruby eats 100% cpu.

# pkgdb -F

gives me this:

---  Checking the package registry database
[Rebuilding the pkgdb format:bdb_btree in /var/db/pkg ... - 185 
packages found (-0 +185) 
100. 
done]

Stale origin: 'devel/automake19': perhaps moved or obsoleted.
- The port 'devel/automake19' was removed on 2010-10-07 because:
No longer required by any port
- Hint: automake-1.9.6_3 is not required by any other package
- Hint: checking for overwritten files...
 - No files installed by automake-1.9.6_3 have been overwritten by 
other packages.

Deinstall automake-1.9.6_3 ? [no] yes

And it hangs at 100% cpu.

What do I need to do to update my ports?

tldr: updated ports, rm /var/db/pkg/pkgdb.db and pkgdf -F hangs at 100% cpu.

Roland van Laar



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


qmail authentication problems

2008-09-13 Thread Roland van Laar

Hello,

After installing qmail, and being quit happy with it, I wanted to start 
using authentication;

which I can't get to work.

Installed mail/qmail-tls
in tcp.smtp:
192.168.2.:allow,RELAYCLIENT=
:allow

For checkpassword I am using /usr/local/bin/checkpassword
which works fine (when the correct passwd is used) if I try it at the 
command line:
printf %s\0%s\0%s\0 roland S03p3rS3cre7  Y123456 | 
/usr/local/bin/checkpassword /usr/bin/id 30

And it prints my user id.

When I try to login via netcat:
smtptest  EOF
EHLO
AUTH LOGIN
cm9sYW5kCg==
UzAzcDNyUzNjcmU3Cg==
EOF

$ nc localhost 25  smtptest
220 yttrium.micite.net ESMTP
250-yttrium.micite.net
250-AUTH LOGIN CRAM-MD5 PLAIN
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-STARTTLS
250-PIPELINING
250 8BITMIME
334 VXNlcm5hbWU6
334 UGFzc3dvcmQ6
535 authorization failed (#5.7.0)

The log files are silent. I tried to use checkpassword-pam, as a 
replacement, but

this gave errors such as:
Sep 13 10:35:55 yttrium smtp[37132]: Internal error: unknown message 
style: 'PAM_ERROR_MSG'
Sep 13 10:35:55 yttrium smtp[37132]: Authentication failed: 
authentication error
Sep 13 10:39:33 yttrium /usr/local/bin/checkpassword-pam[37154]: PAM 
service name not specified


What can be the problem??

Roland




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]