[gentoo-user] Gentoo installation on a ZFS Root
Hello, If anybody is interested this howto appears it explains how to Install Gentoo on ZFS Root. https://github.com/ryao/zfs-overlay/blob/master/zfs-install
Re: [gentoo-user] ZFS
Am 18.09.2013 06:11, schrieb Grant: I have to set up a server w/ 8x 1TB in about 2 weeks and consider ZFS as well, at least for data. So root-fs would go onto 2x 1TB hdds with conventional partitioning and something like ext4. Is a layout like this with the data on ZFS and the root-fs on ext4 a better choice than ZFS all around? Not better ... I just suggested this being conservative and cautious. With a classic root-fs things would be splitted ... if the root-fs breaks or I need to use some live-media to fix things this would all be non-zfs-related operations. In the specific case I am still unsure if I want to use zfs at all. And I could suggest the customer a test-phase ... if it is not working as intended I could easily roll back the 6 disks to an LVM-based software RAID etc (moving data aside for the conversion). I am hesitating because I don't have zfs anywhere productive at customers ... only for my own purposes in the basement where there is no real performance issue. And the customer in case wants reliability ... ok that would be provided by zfs but I am not as used to admin that as I am with native linux file systems. It also leads to other topics ... I can only backup VMs via LVM-based-snapshots (virt-backup.pl) when I use LVM, for example. rootfs on ZFS or everything on ZFS would have advantages, sure. No partitioning at all, resizeable zfs-filesystems for everything, checksums for everything ... you name it. In my case I have to decide until Sep, 25th - installation day ;-) Stefan
Re: [gentoo-user] ZFS
On Tue, 17 Sep 2013 23:22:29 -0500, Bruce Hill wrote: Just wondering if anyone experienced running ZFS on Gentoo finds this wiki article worthy of use: http://wiki.gentoo.org/wiki/ZFS Yes, it is useful. However I have recently stopped using the option to built ZFS into the kernel as I ran into problems with vdevs reported as corrupt on the system I was trying this on. They weren't corrupt and mounted fine in System Rescue Cd with modules, and the problem disappeared when I switched to modules. So use caution and plenty of testing if you want to go this root. I haven't had a chance to try and find the exact cause yet. -- Neil Bothwick Am I ignorant or apathetic? I don't know and don't care! signature.asc Description: PGP signature
Re: [gentoo-user] Cyrus IMAPd .. sieve extensions
Am 17.09.2013 11:59, schrieb Stefan G. Weichinger: Does anyone know how I get the date-extension into my gentoo-based cyrus-imapd-server? anyone ... ?
[gentoo-user] ssh hanging ... why?
I am fiddling with accessing a server ... ssh -v from my desktop hangs at: # ssh -v $HOSTIP OpenSSH_6.2p2-hpn14v1, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data /root/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to *edited* debug1: fd 3 clearing O_NONBLOCK debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/id_rsa type 1 debug1: identity file /root/.ssh/id_rsa-cert type -1 debug1: identity file /root/.ssh/id_dsa type -1 debug1: identity file /root/.ssh/id_dsa-cert type -1 debug1: identity file /root/.ssh/id_ecdsa type -1 debug1: identity file /root/.ssh/id_ecdsa-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.2p2-hpn14v1 debug1: Remote protocol version 1.99, remote software version OpenSSH_4.2 debug1: match: OpenSSH_4.2 pat OpenSSH_4* debug1: Remote is NON-HPN aware debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: AUTH STATE IS 0 debug1: REQUESTED ENC.NAME is 'aes128-ctr' debug1: kex: server-client aes128-ctr hmac-md5 none debug1: REQUESTED ENC.NAME is 'aes128-ctr' debug1: kex: client-server aes128-ctr hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP runs into timeout. --- On a second machine in my LAN I am able to ssh into that server. At first I suspected the IPSEC-tunnel from my router ... but that isn't the problem. I will test from the thinkpad as well ... looks like something on my desktop is broken. Rebuilt openssh already. Maybe I should downgrade for testing ... The problematic box: net-misc/openssh-6.2_p2-r4 The working box: net-misc/openssh-5.9_p1-r4 Does anyone else also see this issues? Stefan
Re: [gentoo-user] ssh hanging ... why?
Am 18.09.2013 11:53, schrieb Stefan G. Weichinger: Rebuilt openssh already. Maybe I should downgrade for testing ... The problematic box: net-misc/openssh-6.2_p2-r4 The working box: net-misc/openssh-5.9_p1-r4 Yep. Downgrading works for me.
Re: [gentoo-user] ZFS
Volker Armin Hemmann volkerar...@googlemail.com wrote: turn off readahead. ZFS' own readahead and the kernel's clash - badly. Turn off kernel's readahead for a visible performance boon. You are probably not talking about ZFS readahead but about the ARC. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de(uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
[gentoo-user] which filesystem is more suitable for /var/tmp/portage?
ext4?btrfs or reiserfs?
Re: [gentoo-user] which filesystem is more suitable for /var/tmp/portage?
On Wed, 18 Sep 2013 20:34:12 +0800, 东方巽雷 wrote: ext4?btrfs or reiserfs? tmpfs is you have the RAM. Otherwise ext2 would be a good bet, you don't need journalling or large file support for compilation. -- Neil Bothwick I'll never forget the 1st time I ran Windows, but I'm trying... signature.asc Description: PGP signature
[gentoo-user] Re: ZFS
Bruce Hill daddy at happypenguincomputers.com writes: On Tue, Sep 17, 2013 at 02:11:33PM -0400, Tanstaafl wrote: Is there a good place to read about these kinds of tuning parameters? Just wondering if anyone experienced running ZFS on Gentoo finds this wiki article worthy of use: http://wiki.gentoo.org/wiki/ZFS I think many folks are interested in upgrading to EXT4 with RAID from an ordinary JBOD workstation(server); or better yet to ZFS on RAID. I wish one of the brighter minds amongst us would put out a skeleton (wiki) information page as such: http://wiki.gentoo.org/wiki/ZFS+RAID I know I have struggled with completing this sort of installation several time in the last 6 months. I'm sure this (proposed) wiki page would get lots of updates from the Gentoo user community. Surely, I'm not qualified to do this, or it would have already been on the gentoo wiki Much of the older X + RAID pages are deprecated, when one considers the changes that accompany such an installation ( Grub2, UUID, fstab, partitioning of drives, Kernel options, just to name a few). We're talking about quite a bit of deviation from the standard handbook installation, fraught with hidden, fatal mis-steps. Lord knows the Gentoo doc team wold appreciate such a wiki installation guide, as the handbook is undergoing modernization. just a thought. James
Re: [gentoo-user] which filesystem is more suitable for /var/tmp/portage?
On Wednesday 18 Sep 2013 14:52:30 Ralf Ramsauer wrote: In my opinion, reiser is a bit outdated ... What is the significance of its date? I use reiserfs on my Atom box for /var, /var/cache/squid and /usr/portage, and on my workstation for /usr/portage and /home/prh/.VirtualBox. It's never given me any trouble at all. Perhaps you meant that, say, ext4 has better all-round performance? -- Regards, Peter
Re: [gentoo-user] which filesystem is more suitable for /var/tmp/portage?
On 18/09/2013 16:05, Peter Humphrey wrote: On Wednesday 18 Sep 2013 14:52:30 Ralf Ramsauer wrote: In my opinion, reiser is a bit outdated ... What is the significance of its date? I use reiserfs on my Atom box for /var, /var/cache/squid and /usr/portage, and on my workstation for /usr/portage and /home/prh/.VirtualBox. It's never given me any trouble at all. Sooner or later, reiser is going to bitrot. The ReiserFS code itself will not change, but everything around it and what it plugs into will change. When that happens (not if - when), there is no-one to fix the bug and you will find yourself up the creek sans paddle An FS is not like a widget set, you can't really live with and workaround any defects that develop. When an FS needs patching, it needs patching, no ifs and buts. Reiser may nominally have a maintainer but in real terms there is effectively no-one Circumstances have caused ReiserFS to become a high-risk scenario and even though it might perform faultlessly right now, continued use should be evaluated in terms of that very real risk. Perhaps you meant that, say, ext4 has better all-round performance? -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] ZFS
Am 18.09.2013 09:26, schrieb Stefan G. Weichinger: rootfs on ZFS or everything on ZFS would have advantages, sure. No partitioning at all, resizeable zfs-filesystems for everything, checksums for everything ... you name it. In my case I have to decide until Sep, 25th - installation day ;-) playing around now with a gentoo-guest on an ZFS-mirror ... with raw-format via virtio ... nice so far.
Re: [gentoo-user] ZFS
Am 18.09.2013 11:56, schrieb Joerg Schilling: Volker Armin Hemmann volkerar...@googlemail.com wrote: turn off readahead. ZFS' own readahead and the kernel's clash - badly. Turn off kernel's readahead for a visible performance boon. You are probably not talking about ZFS readahead but about the ARC. Jörg which does prefetching. So yes.
Re: [gentoo-user] ssh hanging ... why?
On 18 Sep 2013, at 10:55, Stefan G. Weichinger li...@xunil.at wrote: Am 18.09.2013 11:53, schrieb Stefan G. Weichinger: Rebuilt openssh already. Maybe I should downgrade for testing ... The problematic box: net-misc/openssh-6.2_p2-r4 The working box: net-misc/openssh-5.9_p1-r4 Yep. Downgrading works for me. Not sure why a downgraded openssh would improve things for you if this is the issue, however I faced the same issue as yourself and it was caused by mDNS trying to do a reverse lookup on the host connecting in to the affected server, ultimately causing the SSH connection to hang. Check that the order of sources on the hosts line of you /etc/nsswitch.conf[1] file on the server that you are having issues _connecting to_, not the desktop that you're connecting from. Mine is: `hosts: files dns mdns4_minimal mdns4` Note `dns` is before `mdns4`. [1] http://linux.die.net/man/5/nsswitch.conf Joe
Re: [gentoo-user] ssh hanging ... why?
Am 18.09.2013 19:47, schrieb Joe Nyland: Not sure why a downgraded openssh would improve things for you if this is the issue, however I faced the same issue as yourself and it was caused by mDNS trying to do a reverse lookup on the host connecting in to the affected server, ultimately causing the SSH connection to hang. Check that the order of sources on the hosts line of you /etc/nsswitch.conf[1] file on the server that you are having issues _connecting to_, not the desktop that you're connecting from. Mine is: `hosts: files dns mdns4_minimal mdns4` Note `dns` is before `mdns4`. [1] http://linux.die.net/man/5/nsswitch.conf Thanks for your feedback. The server doesn't have mdns in there, just: hosts: files dns (which hasn't been changed in years, I am quite sure). So you suggest that the contacted server wants to know which FQDN the contacting IP points to? Stefan
Re: [gentoo-user] ssh hanging ... why?
Am 18.09.2013 20:03, schrieb Shawn Wilson: Since the downgrade fixed your issue idk... but, what does your authorized_keys look like? Also, move or chmod 0 your config to make sure nothing funny is happening there. authorized_keys looks very OK ... only my 2 keys in there ... untouched for years. did chmod 0600 now.
Re: [gentoo-user] which filesystem is more suitable for /var/tmp/portage?
On Wednesday 18 Sep 2013 17:09:37 Alan McKinnon wrote: On 18/09/2013 16:05, Peter Humphrey wrote: On Wednesday 18 Sep 2013 14:52:30 Ralf Ramsauer wrote: In my opinion, reiser is a bit outdated ... What is the significance of its date? I use reiserfs on my Atom box for /var, /var/cache/squid and /usr/portage, and on my workstation for /usr/portage and /home/prh/.VirtualBox. It's never given me any trouble at all. ---8 Circumstances have caused ReiserFS to become a high-risk scenario and even though it might perform faultlessly right now, continued use should be evaluated in terms of that very real risk. Sensible advice - thanks. I'll bear it in mind as I continue working on these boxes. -- Regards, Peter
Re: [gentoo-user] ssh hanging ... why?
Since the downgrade fixed your issue idk... but, what does your authorized_keys look like? Also, move or chmod 0 your config to make sure nothing funny is happening there. Stefan G. Weichinger li...@xunil.at wrote: Am 18.09.2013 19:47, schrieb Joe Nyland: Not sure why a downgraded openssh would improve things for you if this is the issue, however I faced the same issue as yourself and it was caused by mDNS trying to do a reverse lookup on the host connecting in to the affected server, ultimately causing the SSH connection to hang. Check that the order of sources on the hosts line of you /etc/nsswitch.conf[1] file on the server that you are having issues _connecting to_, not the desktop that you're connecting from. Mine is: `hosts: files dns mdns4_minimal mdns4` Note `dns` is before `mdns4`. [1] http://linux.die.net/man/5/nsswitch.conf Thanks for your feedback. The server doesn't have mdns in there, just: hosts: files dns (which hasn't been changed in years, I am quite sure). So you suggest that the contacted server wants to know which FQDN the contacting IP points to? Stefan
[gentoo-user] re ssh hangs
Stefan G. Weichinger lists at xunil.at writes: ssh -v from my desktop hangs at: I'm not sure what you are doing but some (vendor's) implemetations of ssh, have a different set of priorities and order of negotiation, particularly if the product you are trying to ssh into was based on funky code or a different version of ssh. If you have identical versions of ssh on similar OSes (thefrom-to) on the machines then ignore this suggestion. ( Sometime diagnosing aberant (ssh) behavior of a vendor's ssh implementation can make you want to scream, particularly when a product vendor did purchased binaries for ssh. good hunting, as it is surely a timeout/order of negotiation issue, most likely. ymmv. htn, James
Re: [gentoo-user] ssh hanging ... why?
I was saying to chmod 000 it so that you're not picking up (possibly strange?) options. Stefan G. Weichinger li...@xunil.at wrote: Am 18.09.2013 20:03, schrieb Shawn Wilson: Since the downgrade fixed your issue idk... but, what does your authorized_keys look like? Also, move or chmod 0 your config to make sure nothing funny is happening there. authorized_keys looks very OK ... only my 2 keys in there ... untouched for years. did chmod 0600 now.
Re: [gentoo-user] ssh hanging ... why?
Am 18.09.2013 21:01, schrieb Shawn Wilson: I was saying to chmod 000 it so that you're not picking up (possibly strange?) options. and it is still readable then? never tried 000.
Re: [gentoo-user] Re: Need help: Filesystem (ext4) corrupted!
You dont happen to have a reasonable identical SD Card around, so you could dd the image on to see whether this is card related, do you? On Tue, 3 Sep 2013 04:45:04 +0200 meino.cra...@gmx.de wrote: I did a binary image backup with dd of the sdcard.
Re: [gentoo-user] ZFS
Stefan G. Weichinger wrote: Interesting news related to ZFS: http://open-zfs.org/wiki/Main_Page I wonder if this will be added to the kernel at some point in the future? May even be their intention? Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] ssh hanging ... why?
did chmod 0600 now. You just made it read+writable by just you - you're running ssh by you, right? I referred to the man page because I thought there would be something I could just quote and learned something Omitted digits are assumed to be leading zeros. which makes sense, as I intuitively knew if I left out the sticky bit, it would be unset but always thought: user, group, everyone else. So, 'chmod 0 config' doesn't look as cluttered and conveys the same meaning :) On Wed, Sep 18, 2013 at 4:48 PM, Stefan G. Weichinger li...@xunil.atwrote: Am 18.09.2013 21:01, schrieb Shawn Wilson: I was saying to chmod 000 it so that you're not picking up (possibly strange?) options. and it is still readable then? never tried 000.
Re: [gentoo-user] ZFS
Interesting news related to ZFS: http://open-zfs.org/wiki/Main_Page I wonder if this will be added to the kernel at some point in the future? May even be their intention? I think the CDDL license is what's keeping ZFS out of the kernel, although some argue that it should be integrated anyway. OpenZFS retains the same license. - Grant
Re: [gentoo-user] ZFS
turn off readahead. ZFS' own readahead and the kernel's clash - badly. Turn off kernel's readahead for a visible performance boon. You are probably not talking about ZFS readahead but about the ARC. which does prefetching. So yes. I'm taking notes on this so I want to clarify, when using ZFS, readahead in the kernel should be disabled by using blockdev to set it to 8? - Grant
Re: [gentoo-user] Re: ZFS
I think many folks are interested in upgrading to EXT4 with RAID from an ordinary JBOD workstation(server); or better yet to ZFS on RAID. I wish one of the brighter minds amongst us would put out a skeleton (wiki) information page as such: http://wiki.gentoo.org/wiki/ZFS+RAID I know I have struggled with completing this sort of installation several time in the last 6 months. I'm sure this (proposed) wiki page would get lots of updates from the Gentoo user community. Surely, I'm not qualified to do this, or it would have already been on the gentoo wiki Much of the older X + RAID pages are deprecated, when one considers the changes that accompany such an installation ( Grub2, UUID, fstab, partitioning of drives, Kernel options, just to name a few). We're talking about quite a bit of deviation from the standard handbook installation, fraught with hidden, fatal mis-steps. Any important points or key concepts a ZFS newbie should remember when installing with it for the first time? - Grant
[gentoo-user] {OT} Chromium resubmits forms without prompt
On both my laptop and my wife's laptop, Chromium is reposting form data if I click back to a form page or if the browser restores a tab which is a form page. Actually refreshing a form page prompts me as it should. This is pretty dangerous and has caused me quite a few problems. I've scoured Google but I can't find anything helpful. Does anyone know why this is happening? - Grant