Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Peter Humphrey
On Friday 30 Aug 2013 21:21:10 Alan McKinnon wrote:

 Ahem, Mr Bothwick!
 
 Our friend with the thing about free lunches needs you to demonstrate
 your penmanship, considering you have some proven results in this area.

...and I'd happily act as editor...

:-)   ;-)

-- 
Regards,
Peter




Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Pandu Poluan
On Sat, Aug 31, 2013 at 12:10 PM, Mark David Dumlao madum...@gmail.com wrote:
 On Sat, Aug 31, 2013 at 4:16 AM, Mick michaelkintz...@gmail.com wrote:
 On Friday 30 Aug 2013 15:44:35 Tanstaafl wrote:
 On 2013-08-30 10:34 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
  On 30/08/2013 16:29, Tanstaafl wrote:
  Why would there be a problem if someone decided to create a 3rd party
  overlay *not* part of the official gentoo portage tree that contained
  *only* the zfs stuff, and when this overlay was installed combined with
  a zfs keyword for the kernel, portage would then pull in the required
  files, and automagically build a kernel with an up to date version of
  zfs properly and fully integrated?
 
  Would this not work, *and* have no problems with licensing?
 
  there is no problem with licensing in that case.
  The ebuild could even go in the portage tree, as Gentoo is not
  redistributing sources when it publishes an ebuild.

 Thanks Alan! Just the answer I wanted.

 Ok, so... how hard would this be then? What would the chances be that
 this could actually happen? I'll happily go open a bug for it if you
 think the work would be minimal...

 It seems to me that I can't be the only one who would like to see this
 happen?

 Nope! I will vote for you.  ;-)

 --
 Regards,
 Mick

 Sounds like an awful lot of trouble for a problem that's already solved by
 installing sys-kernel/module-rebuild and running module-rebuild rebuild
 after every kernel update, which is how nvidia, broadcom, and other
 kernel modules are dealt painlessly with anyways...


Well, if you follow Tanstaafl in the other thread, you'll see that he
wants ZFS to be integrated into the kernel, not existing as a kernel
module.


Rgds,
-- 
FdS Pandu E Poluan
~ IT Optimizer ~

 • LOPSA Member #15248
 • Blog : http://pepoluan.tumblr.com
 • Linked-In : http://id.linkedin.com/in/pepoluan



Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Joerg Schilling
Pandu Poluan pa...@poluan.info wrote:

 Well, if you follow Tanstaafl in the other thread, you'll see that he
 wants ZFS to be integrated into the kernel, not existing as a kernel
 module.


But why does someone want things to be inside a static kernel?

Since 1991/1992, Solaris does not have anything in the static kernel than 
the startup code, the basic scheduler code and the pager daemon. You need a 
bootloader that knows about ELF dependencies, but grub has been enhanced for 
that feature.

Everything is dynamic, you would however put a lot of effort into the linux 
kernel to get to that state...e.g. automated major device numbering.



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



Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Tanstaafl

On 2013-08-31 1:10 AM, Mark David Dumlao madum...@gmail.com wrote:

Sounds like an awful lot of trouble for a problem that's already solved by
installing sys-kernel/module-rebuild and running module-rebuild rebuild
after every kernel update, which is how nvidia, broadcom, and other
kernel modules are dealt painlessly with anyways...


You must have missed the point that this is for *servers*, that most 
people *disable modules* on. I *know* that it is available as a module.




Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Tanstaafl
On 2013-08-31 7:04 AM, Joerg Schilling 
joerg.schill...@fokus.fraunhofer.de wrote:

Everything is dynamic, you would however put a lot of effort into the linux
kernel to get to that state...e.g. automated major device numbering.


??? I've been running my servers without modules since... I started 
running servers.


Servers are not like desktops - constantly changing devices. They - in 
most cases - *are* static, and most people *want* them that way.


Regardless, please do *not* distract this thread with arguments about 
it. If you don't want or see the benefit, fine, just ignore this thread.




[gentoo-user] Re: where did lvm installation guide go?

2013-08-31 Thread Nicolas Sebrecht
On Fri, Aug 30, 2013 at 10:37:19AM -0400, Tanstaafl wrote:

 Just fyi... the *only* problem that I have with this is that I have an 
 *existing* system that has a separate /usr, and it only has that 
 separate /usr because when I followed the original gentoo installation 
 handbook back in 2003 or so, it actually had a separate /usr in the 
 example directory structure layout, so I thought it was the official 
 gentoo *recommendation* to do it that way.

Following the Gentoo original handbook at that time was the good thing
to do. But things change over time. What was true in 2003 might not
still be true today or tomorrow.

Things did change to the point that nowadays using an initramfs to keep
a seperate /usr filesystem is the way to go.

It's surprising you to have taken the handbook from Gentoo as best
practice guide to get a proper system and not beeing fine with the
recommendations of today.

 If I wasn't in this predicament, I'd just make a mental note to never 
 install /usr to a separate partition and be done with it.

Honestly, I used to have create a dedicated /usr filesystem for a long
long time. It really was a big plus in the past. Except of some corner
cases, I don't think it worth the trouble anymore.

-- 
Nicolas Sebrecht



Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Joerg Schilling
Tanstaafl tansta...@libertytrek.org wrote:

 On 2013-08-31 1:10 AM, Mark David Dumlao madum...@gmail.com wrote:
  Sounds like an awful lot of trouble for a problem that's already solved by
  installing sys-kernel/module-rebuild and running module-rebuild rebuild
  after every kernel update, which is how nvidia, broadcom, and other
  kernel modules are dealt painlessly with anyways...

 You must have missed the point that this is for *servers*, that most 
 people *disable modules* on. I *know* that it is available as a module.

Why, for security reasons?


On Solaris, you can disable loading unsigned modules,  is this not supported by 
Linux?

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



Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Alon Bar-Lev
On Sat, Aug 31, 2013 at 2:28 PM, Tanstaafl tansta...@libertytrek.org wrote:

 On 2013-08-31 7:04 AM, Joerg Schilling joerg.schill...@fokus.fraunhofer.de 
 wrote:

 Everything is dynamic, you would however put a lot of effort into the linux
 kernel to get to that state...e.g. automated major device numbering.


 ??? I've been running my servers without modules since... I started running 
 servers.

 Servers are not like desktops - constantly changing devices. They - in most 
 cases - *are* static, and most people *want* them that way.

 Regardless, please do *not* distract this thread with arguments about it. If 
 you don't want or see the benefit, fine, just ignore this thread.


I do not understand this thread.

If this is not mainline, and it is not trivial gentoo kernels
maintainer patch, and you must have this as static, you can just put
the patch within /etc/portage/patches/sys-kernel/gentoo-sources/, so
it will patch your kernel every time you emerge new one.

Regards,
Alon



Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Gregory Shearman
In linux.gentoo.user, Mr Schilling wrote:

 On Solaris, you can disable loading unsigned modules,  is this not supported 
 by 
 Linux?

CONFIG_MODULE_SIG

-- 
Regards,
Gregory.



Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Joerg Schilling
Gregory Shearman zek...@gmail.com wrote:

 In linux.gentoo.user, Mr Schilling wrote:
 
  On Solaris, you can disable loading unsigned modules,  is this not 
  supported by 
  Linux?

 CONFIG_MODULE_SIG

So there seems to be no real need to create a static linux kernel with ZFS 
inside.

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



Re: [gentoo-user] where did lvm installation guide go?

2013-08-31 Thread gottlieb
On Fri, Aug 30 2013, Alan McKinnon wrote:

 On 30/08/2013 17:18, gottl...@nyu.edu wrote:
 On Fri, Aug 30 2013, J. Roeleveld wrote:
 
 gottl...@nyu.edu wrote:
 I want to reinstall an old system to have combined root+usr.

 I have always used an lvm installation guide that was a companion to
 the handbook.  That is it would tell you how to augment each handbook
 installation chapter for lvm (actually lvm2).

 I can't find this documentation now on gentoo.org.  There is a big wiki
 page, but that is different as are daniel's 2-volume learning linux
 lvm.

 thanks,
 allan

 Allan,

 Use the raid+LVM guide and skip all the raid steps.

 --
 Joost
 
 Yes, that is what I will be doing; but it is not the same as the companion
 and hence less familiar to me.  Also the wiki certainly does help.
 I haven't studied the raid+LVM closely yet but a quick look didn't
 reveal how to interrupt the installation, shut off the machine, and
 continue later.

 the only difference is activating your LVs just before you need to mount
 them (before doing the chroot):

 vgchange -a y

 everything else stays the same. Instead of mounting /dev/sdxy at
 /mnt/gentoo/..., you will mount /dev/mapper/${LV}

Thank you alan and joost.
I actually remembered -a y or -a -y and a search of the lvm commands
yielded vgchange.  But your replies definitely increased my confidence

allan



[gentoo-user] dvdstyler fails to build, complains about wxSVG with no libav

2013-08-31 Thread Francisco Ares
Hi,

It's been for a while: while trying to re-emerge a ~amd64
rmedia-video/dvdstyler-2.5.1 in a default/linux/amd64/13.0/desktop/kde
profile machine, during the configuration pass, it stops, complaining about
wxSVG not being built with LIBAV support:

...
checking for wx-config... /usr/lib64/wx/config/gtk2-unicode-release-2.8
checking for wxWidgets version = 2.8.7... yes (version 2.8.12)
checking for wxWidgets static library... no
checking for wxWidgets media... yes
checking for LIBAV... yes
checking for libavformat/avformat.h... yes
checking for wxSVG... yes
checking for wxSVG library with LIBAV support... no
configure: error:
DVDStyler requires the wxSVG library with LIBAV support.


Checking use flags for wxsvg and wxGTK, there is no mention as to libav,
neither for the amd nor for the ~amd.

Issuing a equery g wxsvg and checking use flags for each of the direct
dependencies, there is no mentioning of libav anywhere.

Any hints?

Thanks
Francisco


Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Mark David Dumlao
On Sat, Aug 31, 2013 at 7:25 PM, Tanstaafl tansta...@libertytrek.org wrote:
 On 2013-08-31 1:10 AM, Mark David Dumlao madum...@gmail.com wrote:

 Sounds like an awful lot of trouble for a problem that's already solved
 by
 installing sys-kernel/module-rebuild and running module-rebuild rebuild
 after every kernel update, which is how nvidia, broadcom, and other
 kernel modules are dealt painlessly with anyways...


 You must have missed the point that this is for *servers*, that most people
 *disable modules* on. I *know* that it is available as a module.



Ok, I was just asking. But as for what most people do on their servers,
speak for yourself.

-- 
This email is:[ ] actionable   [ ] fyi[x] social
Response needed:  [ ] yes  [ ] up to you  [x] no
Time-sensitive:   [ ] immediate[ ] soon   [x] none



Re: [gentoo-user] Re: crond: time disparity detected (on hibernate and wake-up)

2013-08-31 Thread Walter Dnes
On Fri, Aug 30, 2013 at 09:43:06PM -0500, »Q« wrote
 On Fri, 30 Aug 2013 21:46:37 -0400
 Walter Dnes waltd...@waltdnes.org wrote:
 
Whenever I hibernate or do a wake-up from hibernation, I always get
  messages about a crond time disparity detected.  It's usually 580 or
  602 minutes.  But the clock appears to be correct within a few
  seconds after wake-up.  I'm in Eastern time, running local time...
 
 If you're using sys-power/hibernate-script, having it stop and restart
 crond might help.  I use fcron, so in a conf file for hibernate I have
 
 RestartServices fcron

  I am using sys-power/hibernate-script but...

RestartServices dcron

...doesn't help.

-- 
Walter Dnes waltd...@waltdnes.org
I don't run desktop environments; I run useful applications



Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Walter Dnes
On Sat, Aug 31, 2013 at 02:19:56PM +0200, Joerg Schilling wrote

 So there seems to be no real need to create a static linux kernel
 with ZFS inside.

See 
http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?full=1#book_part1_chap7

 Now go to File Systems and select support for the filesystems you use.
 Don't compile the file system you use for the root filesystem as
 module, otherwise your Gentoo system will not be able to mount
 your partition.

  You can get away with most stuff as modules; ***BUT NOT THE ROOT
FILESYSTEM***.  Think about it for a minute.  Gentoo reads modules off
the disk.  If the code for the root filesystem is a module, Gentoo would
have to read the module off the disk to enable it to read the module off
the disk... OOPS.  This is a classic chicken and egg situation.

-- 
Walter Dnes waltd...@waltdnes.org
I don't run desktop environments; I run useful applications



Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Canek Peláez Valdés
On Sat, Aug 31, 2013 at 7:13 PM, Walter Dnes waltd...@waltdnes.org wrote:
 On Sat, Aug 31, 2013 at 02:19:56PM +0200, Joerg Schilling wrote

 So there seems to be no real need to create a static linux kernel
 with ZFS inside.

 See 
 http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?full=1#book_part1_chap7

 Now go to File Systems and select support for the filesystems you use.
 Don't compile the file system you use for the root filesystem as
 module, otherwise your Gentoo system will not be able to mount
 your partition.

   You can get away with most stuff as modules; ***BUT NOT THE ROOT
 FILESYSTEM***.  Think about it for a minute.  Gentoo reads modules off
 the disk.  If the code for the root filesystem is a module, Gentoo would
 have to read the module off the disk to enable it to read the module off
 the disk... OOPS.  This is a classic chicken and egg situation.

I usally use ext4 as filesystem.

# lsmod|grep ext
ext3  100768  0
jbd39586  1 ext3
ext2   49572  0
ext4  263621  1
crc16   1255  2 ext4,bluetooth
mbcache 4450  3 ext2,ext3,ext4
jbd2   48679  1 ext4

Isn't great what an initramfs can do?

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Mark David Dumlao
On Sun, Sep 1, 2013 at 8:13 AM, Walter Dnes waltd...@waltdnes.org wrote:
 On Sat, Aug 31, 2013 at 02:19:56PM +0200, Joerg Schilling wrote

 So there seems to be no real need to create a static linux kernel
 with ZFS inside.

 See 
 http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?full=1#book_part1_chap7

 Now go to File Systems and select support for the filesystems you use.
 Don't compile the file system you use for the root filesystem as
 module, otherwise your Gentoo system will not be able to mount
 your partition.

   You can get away with most stuff as modules; ***BUT NOT THE ROOT
 FILESYSTEM***.  Think about it for a minute.  Gentoo reads modules off
 the disk.  If the code for the root filesystem is a module, Gentoo would
 have to read the module off the disk to enable it to read the module off
 the disk... OOPS.  This is a classic chicken and egg situation.

And this is why the initrd was actually invented.
http://en.wikipedia.org/wiki/Initrd

It's a means of loading kernel modules so that the root filesystem can be
mounted as a module.
-- 
This email is:[ ] actionable   [x] fyi[ ] social
Response needed:  [ ] yes  [ ] up to you  [x] no
Time-sensitive:   [ ] immediate[ ] soon   [x] none



[gentoo-user] virtualbox - failed to access the USB subsystem

2013-08-31 Thread Joseph

After recent upgrade I'm getting an error when trying to start the virtualbox.

Failed to access the USB subsystem.
Could not load the Host USB Proxy service: VERR_NOT_FOUND.

Details:
Result Code:
NS_ERROR_FAILURE (0x4005)
Component:
Host
Interface:
IHost {dab4a2b8-c735-4f08-94fc-9bec84182e2f}
Callee:
IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}

cat /etc/group shows that I'm in vboxusers group
vboxusers:x:1009:thelma,fd

What else to try? I'm using Virtualbox 4.1.26

--
Joseph



[gentoo-user] Re: dvdstyler fails to build, complains about wxSVG with no libav [SOLVED]

2013-08-31 Thread Francisco Ares
2013/8/31 Francisco Ares fra...@gmail.com

 Hi,

 It's been for a while: while trying to re-emerge a ~amd64
 rmedia-video/dvdstyler-2.5.1 in a default/linux/amd64/13.0/desktop/kde
 profile machine, during the configuration pass, it stops, complaining about
 wxSVG not being built with LIBAV support:

 ...
 checking for wx-config... /usr/lib64/wx/config/gtk2-unicode-release-2.8
 checking for wxWidgets version = 2.8.7... yes (version 2.8.12)
 checking for wxWidgets static library... no
 checking for wxWidgets media... yes
 checking for LIBAV... yes
 checking for libavformat/avformat.h... yes
 checking for wxSVG... yes
 checking for wxSVG library with LIBAV support... no
 configure: error:
 DVDStyler requires the wxSVG library with LIBAV support.


 Checking use flags for wxsvg and wxGTK, there is no mention as to libav,
 neither for the amd nor for the ~amd.

 Issuing a equery g wxsvg and checking use flags for each of the direct
 dependencies, there is no mentioning of libav anywhere.

 Any hints?

 Thanks
 Francisco



Just to follow up  the solution found: I have re-emerged all first level
dependencies (thanks to equery g), and finally dvdstyler was successfully
built.

Thanks
Francisco


Re: [gentoo-user] virtualbox - failed to access the USB subsystem

2013-08-31 Thread Joseph

On 08/31/13 19:10, Joseph wrote:

After recent upgrade I'm getting an error when trying to start the virtualbox.

Failed to access the USB subsystem.
Could not load the Host USB Proxy service: VERR_NOT_FOUND.

Details:
Result Code:
NS_ERROR_FAILURE (0x4005)
Component:
Host
Interface:
IHost {dab4a2b8-c735-4f08-94fc-9bec84182e2f}
Callee:
IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}

cat /etc/group shows that I'm in vboxusers group
vboxusers:x:1009:thelma,fd

What else to try? I'm using Virtualbox 4.1.26


The strange part is when I login to the machine via FreeNX this message does 
not appear.
But only when I'm in front of the box directly. 


--
Joseph



Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Pandu Poluan
On Sep 1, 2013 7:51 AM, Mark David Dumlao madum...@gmail.com wrote:

 On Sun, Sep 1, 2013 at 8:13 AM, Walter Dnes waltd...@waltdnes.org wrote:
  On Sat, Aug 31, 2013 at 02:19:56PM +0200, Joerg Schilling wrote
 
  So there seems to be no real need to create a static linux kernel
  with ZFS inside.
 
  See
http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?full=1#book_part1_chap7
 
  Now go to File Systems and select support for the filesystems you use.
  Don't compile the file system you use for the root filesystem as
  module, otherwise your Gentoo system will not be able to mount
  your partition.
 
You can get away with most stuff as modules; ***BUT NOT THE ROOT
  FILESYSTEM***.  Think about it for a minute.  Gentoo reads modules off
  the disk.  If the code for the root filesystem is a module, Gentoo would
  have to read the module off the disk to enable it to read the module off
  the disk... OOPS.  This is a classic chicken and egg situation.

 And this is why the initrd was actually invented.
 http://en.wikipedia.org/wiki/Initrd

 It's a means of loading kernel modules so that the root filesystem can be
 mounted as a module.

Not everyone is willing to use an initr* thingy. It's another potential
breaking point.

I have no problem with /usr being 'merged' with /, in fact I have been
doing that for a couple of years now.

But I will keep myself a mile away from an initr* thingy.

Rgds,
--


Re: [gentoo-user] crond: time disparity detected (on hibernate and wake-up)

2013-08-31 Thread Pandu Poluan
On Aug 31, 2013 8:47 AM, Walter Dnes waltd...@waltdnes.org wrote:

   Whenever I hibernate or do a wake-up from hibernation, I always get
 messages about a crond time disparity detected.  It's usually 580 or 602
 minutes.  But the clock appears to be correct within a few seconds after
 wake-up.  I'm in Eastern time, running local time...

 [i660][waltdnes][~] cat /etc/timezone
 Canada/Eastern


Maybe the mobo battery is dying?

Rgds,
--


Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Walter Dnes
 I usally use ext4 as filesystem.
 
 # lsmod|grep ext
 ext3  100768  0
 jbd39586  1 ext3
 ext2   49572  0
 ext4  263621  1
 crc16   1255  2 ext4,bluetooth
 mbcache 4450  3 ext2,ext3,ext4
 jbd2   48679  1 ext4
 
 Isn't great what an initramfs can do?

  In this case, initramfs is your root filesystem, from which you load
another fs and then transfer (pivot root?) to it.  You have to build
initramfs support into the kernel, to boot an initramfs.  So my argument
still stands, regardless of whether your *INITIAL* filesystem is ext4fs,
or ZFS, or initramfs, that *INITIAL* filesystem has to be built into the
kernel.  Also, I really wonder what the point is in having to use
initramfs on a system where /usr is part of /.

-- 
Walter Dnes waltd...@waltdnes.org
I don't run desktop environments; I run useful applications



Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Canek Peláez Valdés
On Sat, Aug 31, 2013 at 10:55 PM, Walter Dnes waltd...@waltdnes.org wrote:
 I usally use ext4 as filesystem.

 # lsmod|grep ext
 ext3  100768  0
 jbd39586  1 ext3
 ext2   49572  0
 ext4  263621  1
 crc16   1255  2 ext4,bluetooth
 mbcache 4450  3 ext2,ext3,ext4
 jbd2   48679  1 ext4

 Isn't great what an initramfs can do?

   In this case, initramfs is your root filesystem, from which you load
 another fs and then transfer (pivot root?) to it.  You have to build
 initramfs support into the kernel, to boot an initramfs.  So my argument
 still stands, regardless of whether your *INITIAL* filesystem is ext4fs,
 or ZFS, or initramfs, that *INITIAL* filesystem has to be built into the
 kernel.

Interesting perspective. Of course, support for an initramfs is not
actually a file system (it's not even in the File systems section of
the kernel configuration, is in General setup); it's not possible to
have initramfs as a module (that would make no sense at all); and it's
code that is several orders of magnitude more simpler than the one
used by ext4 (or any other journal file system).

But you are right that for booting with an initramfs, you need
initramfs support.

 Also, I really wonder what the point is in having to use
 initramfs on a system where /usr is part of /.

Well, since some months ago I've been running as a module almost
everything that can be compiled as a module. This allows me to run a
*truly* minimal kernel, and only the necessary modules autoload
automatically (one big exception: binfmt_script, I compiled that into
the kernel because it was not loading automatically). I can also
unload some modules when not in use anymore (and this is great to
debug sometimes).

This also lets me to add a lot of stuff in the kernel, as long as I
add them as modules, without me worrying about bloating my kernel.
Only when they are needed they are loaded. I have USB speakers, but I
almost never use them; no problem, they (like almost everything else)
live as modules, and only are loaded (automagically, thanks to udev)
when needed. And again, I can unload them when not in use.

And also, it turns out that by using dracut+systemd you could boot
faster than without initramfs (although I can't find the link
anymore).

Finally, using only modules and dracut liberates me from thinking what
should it be compiled in and what not; I just put *everything* as a
module, and the kernel, udev and dracut take care of loading what's
necessary. Thus, my kernel (the one running in memory) is as minimal
as it can be, all the time.

Oh, and one more thing; by having everything as a module, if suddenly
I need support for new hardware, usually I can do a quick make
menuconfig; make modules_install, and the new module can be
modprobe'd into the kernel without needing a reboot. That's
convenient.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Mark David Dumlao
On Sun, Sep 1, 2013 at 11:55 AM, Walter Dnes waltd...@waltdnes.org wrote:
 I usally use ext4 as filesystem.

 # lsmod|grep ext
 ext3  100768  0
 jbd39586  1 ext3
 ext2   49572  0
 ext4  263621  1
 crc16   1255  2 ext4,bluetooth
 mbcache 4450  3 ext2,ext3,ext4
 jbd2   48679  1 ext4

 Isn't great what an initramfs can do?

   In this case, initramfs is your root filesystem, from which you load
 another fs and then transfer (pivot root?) to it.  You have to build
 initramfs support into the kernel, to boot an initramfs.  So my argument
 still stands, regardless of whether your *INITIAL* filesystem is ext4fs,
 or ZFS, or initramfs, that *INITIAL* filesystem has to be built into the
 kernel.  Also, I really wonder what the point is in having to use
 initramfs on a system where /usr is part of /.

It allows you to keep some kernel bits in modules. If ever you change your mind
on whether to include / exclude / reconfigure those kernel bits in the
future, your
kernel recompile will take a lot, lot, shorter.

Case in point - do you enable all the ext4 options, like acls and
whatnot? Let's say no.

What if you suddenly have to mount an external hard disk to recover some system
on your server and the hard disk uses those ext4 options? If ext4 is
hard built into your
kernel, your recompile will have to basically redo the whole thing,
whereas if ext4
was a module you would only recompile ext4 itself.
-- 
This email is:[ ] actionable   [x] fyi[ ] social
Response needed:  [ ] yes  [ ] up to you  [x] no
Time-sensitive:   [ ] immediate[ ] soon   [x] none



[gentoo-user] DBus and network namespaces

2013-08-31 Thread Pavel Volkov
I launch some apps from inside a network namespace in order to force them to 
communicate through my VPN interface only.

But they fail to use DBus then. Some examples of what goes wrong:
1. Chromium cannot launch system proxy settings dialog.
2. Most apps from KDE SC crash right away.
3. No app can use ibus input methods.

I'm not very familiar with DBus, is there a way to heal this setup?