Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only

2013-04-23 Thread J. Roeleveld
On Tue, April 23, 2013 02:17, Joseph wrote:
> In my "pg_hba.conf" I have:
>
> local all all trust
> hostall all 127.0.0.1/32trust
>
> I was under impression that this is configuration is for localhost
> "127.0.0.1" access only.
> But to my surprise I can access my database from other machine on my
> network and even from another sub-network that I'm connected to via VPN
>
> How this authentication/access work?

Normally that should be sufficient.
On which machine does the client-software run?

--
Joost Roeleveld




Re: [gentoo-user] Firefox/Adobe Flashplayer: Playback hangs

2013-04-23 Thread Shalom Ben-Zvi Kazaz

  
  
I'm having the same problem. noticed it with youtube. have to
refresh the page for the video to play again.

On 04/21/2013 08:29 PM,
  meino.cra...@gmx.de wrote:


  Hi,

I am using Adobes Flashplayer with Firefox (both newest versions).

When playing video, the playback freezes often while data is still
transmitted. Often the playback starts half a minute or so without
intervention, sometimes I have to cycle the pause/play botton several
times.

How can I prevent this ?

Best regards,
mcc







  




Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only

2013-04-23 Thread Joseph

On 04/23/13 10:07, J. Roeleveld wrote:

On Tue, April 23, 2013 02:17, Joseph wrote:

In my "pg_hba.conf" I have:

local   all all trust
hostall all 127.0.0.1/32trust

I was under impression that this is configuration is for localhost
"127.0.0.1" access only.
But to my surprise I can access my database from other machine on my
network and even from another sub-network that I'm connected to via VPN

How this authentication/access work?


Normally that should be sufficient.
On which machine does the client-software run?

--
Joost Roeleveld


postgresql server runs on my machine but all other machines on the network including the one on remote location that I'm connected to via VPN can connect to postgresql 
database.

I don't want other machine to have access to my server database.

Even with a single line in pg_hba.conf
local   all   all   trust

all other machine on the network can connect to my postgresql database.

--
Joseph



Re: [gentoo-user] KDM stucking!

2013-04-23 Thread Florian Philipp
Am 23.04.2013 05:04, schrieb Jackie:
> Starting up Gentoo today and found that after I entered my password in
> KDM and the screen just stuck there with nothing for a while(maybe more
> than 1min) and then splash came up.This never appeared before and I
> don't know why.The only thing I did and might have something to do with
> it is that I happened to have deleted the /var/tmp/kdecache-username
> directory.So,is this reason? And what should I do now? Here is my
> ~/.xsession-errors file:http://pastebin.com/7N3A9bCc
> Thanks.
> 

What happens when you use login on the terminal and then use startx?

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only

2013-04-23 Thread Douglas J Hunley
On Tue, Apr 23, 2013 at 8:37 AM, Joseph  wrote:

> Even with a single line in pg_hba.conf
> local   all   all   trust
>
> all other machine on the network can connect to my postgresql database.
>

did you restart postgresql? editing pg_hba.conf requires a restart to take
effect


-- 
Douglas J Hunley (doug.hun...@gmail.com)
Twitter: @hunleyd   Web:
douglasjhunley.com
G+: http://goo.gl/sajR3


Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only

2013-04-23 Thread J. Roeleveld
On Tue, April 23, 2013 14:37, Joseph wrote:
> On 04/23/13 10:07, J. Roeleveld wrote:
>>On Tue, April 23, 2013 02:17, Joseph wrote:
>>> In my "pg_hba.conf" I have:
>>>
>>> local   all all trust
>>> hostall all 127.0.0.1/32trust
>>>
>>> I was under impression that this is configuration is for localhost
>>> "127.0.0.1" access only.
>>> But to my surprise I can access my database from other machine on my
>>> network and even from another sub-network that I'm connected to via VPN
>>>
>>> How this authentication/access work?
>>
>>Normally that should be sufficient.
>>On which machine does the client-software run?
>>
>>--
>>Joost Roeleveld
>
> postgresql server runs on my machine but all other machines on the network
> including the one on remote location that I'm connected to via VPN can
> connect to postgresql
> database.
> I don't want other machine to have access to my server database.
>
> Even with a single line in pg_hba.conf
>  local   all   all   trust
>
> all other machine on the network can connect to my postgresql database.

If the PostgreSQL database is running on machine X.
And you are using machine Y.

What command do you type to connect on machine Y?

--
Joost




Re: [gentoo-user] LVM on VM or not? - WAS Re: Best filesystem for virtualized gentoo mail server - WAS: vmWare HowTo / best practices

2013-04-23 Thread Tanstaafl

On 2013-04-21 6:15 PM, Pandu Poluan  wrote:

One thing you have to think about, is whether to implement
LVM/partition-less, or LVM/partitions.


Well, I was going to just allocate a new 'drive' (create one within 
vmWare and then attach it to my gentoo VM), and use that entire virtual 
'disk' for LVM... is that what you mean by 'partition-less'?


Hadn't really thought about the differences much... what are the 
advantages or disadvantages to using partitions? Seems like it would be 
more flexible without partitions?




[gentoo-user] Re: OT: emoticon display with Thunderbird

2013-04-23 Thread James
Paul Hartman  gmail.com> writes:


> http://kb.mozillazine.org/Add_emoticons


I'm going to upgrade TB then fix the emoticons


thx.

James






Re: [gentoo-user] KDM stucking!

2013-04-23 Thread Dale
Florian Philipp wrote:
> Am 23.04.2013 05:04, schrieb Jackie:
>> Starting up Gentoo today and found that after I entered my password in
>> KDM and the screen just stuck there with nothing for a while(maybe more
>> than 1min) and then splash came up.This never appeared before and I
>> don't know why.The only thing I did and might have something to do with
>> it is that I happened to have deleted the /var/tmp/kdecache-username
>> directory.So,is this reason? And what should I do now? Here is my
>> ~/.xsession-errors file:http://pastebin.com/7N3A9bCc
>> Thanks.
>>
>
> What happens when you use login on the terminal and then use startx?
>
> Regards,
> Florian Philipp
>

I would add, try a different user. If you don't have one, just add one
for testing things like this. I have a dale and dale2 on here. Helps me
to see if a problem is a config thing or a software thing.

Dale

:-) :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!



[gentoo-user] Partitions - last questions...

2013-04-23 Thread Tanstaafl
Ok, this is the last question I need to answer for myself before 
installing a final version of my new virtualized gentoo server...


I'll be using the following partition layout:

/boot (ext2), 100M
/swap, 2G
/ (ext4), 40G

then on LVM

/tmp (ext2), 5G? <- how big?
/var/tmp (ext2), 5G? <- how big?
/var/log (ext4) <- size? should I even have this separate?
/var (xfs), 750G
/snapshots (xfs), 10G? <- for lvm snapshots of /var for backups

I'm not using a separate /home because there are no system users beyond 
my admin user (and the system user accounts)...


So - first, is 5G way too big for the two /tmp dirs? I have lots of 
space, but hate waste


This mail server is not all that busy, and the backups only take about 
an hour, so I guesstimate that there won't be more than about 100-300MB 
of changes at the *extreme* outside of the envelope, so the 10G is most 
likely extreme overkill... but I'll know soon enough, and besides, I've 
got plenty of disk space to play with.


One question... I have some MySQL databases running on this system too, 
for my userdbs, and on the new server, SOGo (groupware)...


Is it recommended to incorporate scripts to perform dumps of the dbs, or 
is the lvm snapshot reliable enough for backing these up in their raw state?


Thanks as always for comments/suggestions/criticisms...



Re: [gentoo-user] KDM stucking!

2013-04-23 Thread Jackie
在 Tue, 23 Apr 2013 21:01:42 +0800,Florian Philipp  
 写道:



Am 23.04.2013 05:04, schrieb Jackie:

Starting up Gentoo today and found that after I entered my password in
KDM and the screen just stuck there with nothing for a while(maybe more
than 1min) and then splash came up.This never appeared before and I
don't know why.The only thing I did and might have something to do with
it is that I happened to have deleted the /var/tmp/kdecache-username
directory.So,is this reason? And what should I do now? Here is my
~/.xsession-errors file:http://pastebin.com/7N3A9bCc
Thanks.



What happens when you use login on the terminal and then use startx?

Regards,
Florian Philipp



Your quetion inspired me and I did the follow tests:
	1).Login through KDM and then logout and login again,no change,still it  
takes 1min before 		splah shows up;
	2).Fresh startup and switch to TTY by Ctrl+Alt+F1 when KDM dialog shows  
up and use startx,glad 		   to see that things goes well and no delay  
before splash appears.

3).Move ~/.kde4 to ~/.kde.bak and restart machine,no luck:(
I still don't get a clue what; wrong here and why this all happend. Hope  
the information above will be helpful.




Re: [gentoo-user] Firefox/Adobe Flashplayer: Playback hangs

2013-04-23 Thread Nilesh Govindrajan
On Apr 23, 2013 2:32 PM, "Shalom Ben-Zvi Kazaz"  wrote:
>
> I'm having the same problem. noticed it with youtube. have to refresh the
page for the video to play again.
>
>
> On 04/21/2013 08:29 PM, meino.cra...@gmx.de wrote:
>>
>> Hi,
>>
>> I am using Adobes Flashplayer with Firefox (both newest versions).
>>
>> When playing video, the playback freezes often while data is still
>> transmitted. Often the playback starts half a minute or so without
>> intervention, sometimes I have to cycle the pause/play botton several
>> times.
>>
>> How can I prevent this ?
>>
>> Best regards,
>> mcc
>>
>>
>>
>>
>

YouTube has HTML5 too. This is not related to flash player though. Just my
two cents.


Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only

2013-04-23 Thread Joseph

On 04/23/13 15:57, J. Roeleveld wrote:

On Tue, April 23, 2013 14:37, Joseph wrote:

On 04/23/13 10:07, J. Roeleveld wrote:

On Tue, April 23, 2013 02:17, Joseph wrote:

In my "pg_hba.conf" I have:

local   all all trust
hostall all 127.0.0.1/32trust

I was under impression that this is configuration is for localhost
"127.0.0.1" access only.
But to my surprise I can access my database from other machine on my
network and even from another sub-network that I'm connected to via VPN

How this authentication/access work?


Normally that should be sufficient.
On which machine does the client-software run?

--
Joost Roeleveld


postgresql server runs on my machine but all other machines on the network
including the one on remote location that I'm connected to via VPN can
connect to postgresql
database.
I don't want other machine to have access to my server database.

Even with a single line in pg_hba.conf
 local   all   all   trust

all other machine on the network can connect to my postgresql database.


If the PostgreSQL database is running on machine X.
And you are using machine Y.

What command do you type to connect on machine Y?

--
Joost


I'm using SQL-Ledger (firefox) to access the postgresql.
Brief history:
I had a problem in the past when I upgraded to posgresql-9.1, all of a sudden I 
could not access the sql-ledger.

The solution was to add "postgres group" to apache user.
The reason for it was the change in directory permission:

postgresql 8.x
drwxrwx--x 2 postgres postgres 4096 Dec 14 19:57 /var/run/postgresql/

postgresql 9.x
drwxrwx--- 2 postgres postgres 4096 Dec 19 13:21 /var/run/postgresql/ 

So: 
groups apache

apache postgres

groups postgres
postgres

I hope this is correct as adding group "apache" to postgres user does not work.

But I just realized that any user from local network can access my sql-ledger 
using browser.
--
Joseph



[gentoo-user] Re: KDM stucking!

2013-04-23 Thread James
Jackie  gmail.com> writes:


> I still don't get a clue what; wrong here and why this all happend. Hope  
> the information above will be helpful.

It could be a database or kde software initialization mechanics
and such.  Let it run a few times, update portage 
(rinse and repeat) and see after several days of log
in and out  use htop and other simialr programes
to monitor system resource utilization for additional
info.

Just a WAG (Wild Ass Guess)...

hth,
James








Re: [gentoo-user] Partitions - last questions...

2013-04-23 Thread Florian Philipp
Am 23.04.2013 16:44, schrieb Tanstaafl:
> Ok, this is the last question I need to answer for myself before
> installing a final version of my new virtualized gentoo server...
> 
> I'll be using the following partition layout:
> 
> /boot (ext2), 100M
> /swap, 2G
> / (ext4), 40G
> 
> then on LVM
> 
> /tmp (ext2), 5G? <- how big?
> /var/tmp (ext2), 5G? <- how big?

If this is a production server I wouldn't use ext2. In the case of a
crash or reboot, you don't want to loose precious uptime just because of
fsck or corrupted file systems.

> /var/log (ext4) <- size? should I even have this separate?

Doesn't need to be separate but could prevent a runaway process from
filling /var just because it is spamming log entries. Could also be
achieved with quotas.

> /var (xfs), 750G
> /snapshots (xfs), 10G? <- for lvm snapshots of /var for backups
> 
> I'm not using a separate /home because there are no system users beyond
> my admin user (and the system user accounts)...
> 
> So - first, is 5G way too big for the two /tmp dirs? I have lots of
> space, but hate waste
> 

If you worry about waste consider bind-mounting both from the same
partition and install quotas to avoid one filling up the other. A bit
like poor-man's btrfs sub volumes.

Since you are using LVM you should also keep some unallocated memory,
start with smaller partitions and monitor usage. A cron job that looks
at `df` and sends a mail when a partition is more than x% full helps a lot.

> This mail server is not all that busy, and the backups only take about
> an hour, so I guesstimate that there won't be more than about 100-300MB
> of changes at the *extreme* outside of the envelope, so the 10G is most
> likely extreme overkill... but I'll know soon enough, and besides, I've
> got plenty of disk space to play with.
> 
> One question... I have some MySQL databases running on this system too,
> for my userdbs, and on the new server, SOGo (groupware)...
> 
> Is it recommended to incorporate scripts to perform dumps of the dbs, or
> is the lvm snapshot reliable enough for backing these up in their raw
> state?
> 

Restoring from lvm snapshot is like restoring after a black out or
similar crash. Having proper dumps is always a good idea.

> Thanks as always for comments/suggestions/criticisms...
> 

Hope this helps,
Florian Philipp




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: KDM stucking!

2013-04-23 Thread Neil Bothwick
On Tue, 23 Apr 2013 16:31:34 + (UTC), James wrote:

> > I still don't get a clue what; wrong here and why this all happend.
> > Hope the information above will be helpful.  
> 
> It could be a database or kde software initialization mechanics
> and such.

I have a vague recollection of something like this being related to DNS
lookups.


-- 
Neil Bothwick

In space, no one can hear you fart.


signature.asc
Description: PGP signature


Re: [gentoo-user] Partitions - last questions...

2013-04-23 Thread Neil Bothwick
On Tue, 23 Apr 2013 18:34:38 +0200, Florian Philipp wrote:

> > So - first, is 5G way too big for the two /tmp dirs? I have lots of
> > space, but hate waste
> >   
> 
> If you worry about waste consider bind-mounting both from the same
> partition and install quotas to avoid one filling up the other.

Or set PORTAGE_TMPDIR to use /tmp. Then /var/tmp will be so small you
can leave it as a sub-directory of /var.

If this is a server, 5G is fine for this, but for a desktop it may need
to be bigger, to accommodate LibreOffice builds.


-- 
Neil Bothwick

WinErr 01A: Operating system overwritten - Please reinstall all your
software. We are terribly sorry.


signature.asc
Description: PGP signature


Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only

2013-04-23 Thread J. Roeleveld
Joseph  wrote:

>On 04/23/13 15:57, J. Roeleveld wrote:
>>On Tue, April 23, 2013 14:37, Joseph wrote:
>>> On 04/23/13 10:07, J. Roeleveld wrote:
On Tue, April 23, 2013 02:17, Joseph wrote:
> In my "pg_hba.conf" I have:
>
> local all all trust
> hostall all 127.0.0.1/32   
>trust
>
> I was under impression that this is configuration is for localhost
> "127.0.0.1" access only.
> But to my surprise I can access my database from other machine on
>my
> network and even from another sub-network that I'm connected to
>via VPN
>
> How this authentication/access work?

Normally that should be sufficient.
On which machine does the client-software run?

--
Joost Roeleveld
>>>
>>> postgresql server runs on my machine but all other machines on the
>network
>>> including the one on remote location that I'm connected to via VPN
>can
>>> connect to postgresql
>>> database.
>>> I don't want other machine to have access to my server database.
>>>
>>> Even with a single line in pg_hba.conf
>>>  local   all   all   trust
>>>
>>> all other machine on the network can connect to my postgresql
>database.
>>
>>If the PostgreSQL database is running on machine X.
>>And you are using machine Y.
>>
>>What command do you type to connect on machine Y?
>>
>>--
>>Joost
>
>I'm using SQL-Ledger (firefox) to access the postgresql.
>Brief history:
>I had a problem in the past when I upgraded to posgresql-9.1, all of a
>sudden I could not access the sql-ledger.
>
>The solution was to add "postgres group" to apache user.
>The reason for it was the change in directory permission:
>
>postgresql 8.x
>drwxrwx--x 2 postgres postgres 4096 Dec 14 19:57 /var/run/postgresql/
>
>postgresql 9.x
>drwxrwx--- 2 postgres postgres 4096 Dec 19 13:21 /var/run/postgresql/ 
>
>So: 
>groups apache
>apache postgres
>
>groups postgres
>postgres
>
>I hope this is correct as adding group "apache" to postgres user does
>not work.
>
>But I just realized that any user from local network can access my
>sql-ledger using browser.
>-- 
>Joseph

Joseph.

I am guessing Apache is running on the same machine as your Postgresql server?

In this case. The connection will always originate from localhost and 
Postgresql is behaving as it should.

You will need to secure access to the website to avoid people accessing it.

Kind regards

Joost Roeleveld
-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] KDM stucking!

2013-04-23 Thread Paul Klos
Op dinsdag 23 april 2013 22:49:33 schreef Jackie:
> 在 Tue, 23 Apr 2013 21:01:42 +0800,Florian Philipp  
>  写道:
> 
> 
> Your quetion inspired me and I did the follow tests:
>   1).Login through KDM and then logout and login again,no change,still it 
>  
> takes 1min before splah shows up;
>   2).Fresh startup and switch to TTY by Ctrl+Alt+F1 when KDM dialog shows 
>  
> up and use startx,glad   to see that things goes well and no 
> delay  
> before splash appears.
>   3).Move ~/.kde4 to ~/.kde.bak and restart machine,no luck:(
> I still don't get a clue what; wrong here and why this all happend. Hope  
> the information above will be helpful.
> 
I have had KDE behave similarly when my LDAP authentication was screwed up. 
There was an issue caused by a gnome library that was pulled in by gnucash. 
This only affected KDE logins, not console logins. Are you attempting to log in 
with a local user?

This same thing also happened to me once when the disk was full.

Cheers,

Paul



[gentoo-user] How reliable is ext3?

2013-04-23 Thread Walter Dnes
  I recently got a new Dell "desktop PC" at home, and ran Windows for a
while to make sure nothing is broken.  Now I'm getting ready to
partition and reformat for a Gentoo install.  My understanding is that
BTRFS and EXT4 are still a bit "bleeding edge".  I've used ReiserFS3 for
years with no problems, but I keep hearing horror stories about it.
This will be my biggest main hard drive yet (1 terabyte), so I'm
considering EXT3 for the main partition.  Comments?

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] Re: KDM stucking!

2013-04-23 Thread Dale
Neil Bothwick wrote:
> On Tue, 23 Apr 2013 16:31:34 + (UTC), James wrote:
>
>>> I still don't get a clue what; wrong here and why this all happend.
>>> Hope the information above will be helpful. 
>>
>> It could be a database or kde software initialization mechanics
>> and such.
>
> I have a vague recollection of something like this being related to DNS
> lookups.
>
>

Now that you reminded me, I have had the same problem with even a
console login.  I seem to recall editing my hosts file and adjusting
resolv.conf file or the config that manages the settings.  I'm not sure
which one fixed it and never really figured out why it matters.

That has been a while ago tho.  I need some elephant genes.  :/

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!



Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Randy Barlow
On Tue, 2013-04-23 at 14:40 -0400, Walter Dnes wrote:
>   I recently got a new Dell "desktop PC" at home, and ran Windows for a
> while to make sure nothing is broken.  Now I'm getting ready to
> partition and reformat for a Gentoo install.  My understanding is that
> BTRFS and EXT4 are still a bit "bleeding edge".  I've used ReiserFS3 for
> years with no problems, but I keep hearing horror stories about it.
> This will be my biggest main hard drive yet (1 terabyte), so I'm
> considering EXT3 for the main partition.  Comments?

I think btrfs is definitely still considered "experimental", but ext4 is
considered stable by the kernel team, I believe. I've been using ext4 on
many systems for a few years, and it's been fine. It has the advantage
of having extents over ext3, as well as a few other performance
improvements.

-- 
Randy Barlow




Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Michael Mol
On 04/23/2013 02:40 PM, Walter Dnes wrote:
>   I recently got a new Dell "desktop PC" at home, and ran Windows for a
> while to make sure nothing is broken.  Now I'm getting ready to
> partition and reformat for a Gentoo install.  My understanding is that
> BTRFS and EXT4 are still a bit "bleeding edge".  I've used ReiserFS3 for
> years with no problems, but I keep hearing horror stories about it.
> This will be my biggest main hard drive yet (1 terabyte), so I'm
> considering EXT3 for the main partition.  Comments?
> 

ext3 has been stable for ages.

That said, I've been using ext4 for the past 3-4 years on nearly all my
systems without a problem. The only scenario I don't use ext4 is for
/boot...and there I use ext3.

BTRFS is marked as 'EXPERIMENTAL' in the kernel because they don't want
you using it for production use. ext4 hasn't had that 'EXPERIMENTAL'
flag for years. ext3, even longer.

Incidentally, if you use ext3, and your kernel supports ext4, chances
are it's the kernel's ext4 code that's handling your ext3 fs. I don't
even bother compiling in ext2 and ext3.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Dale
Walter Dnes wrote:
>   I recently got a new Dell "desktop PC" at home, and ran Windows for a
> while to make sure nothing is broken.  Now I'm getting ready to
> partition and reformat for a Gentoo install.  My understanding is that
> BTRFS and EXT4 are still a bit "bleeding edge".  I've used ReiserFS3 for
> years with no problems, but I keep hearing horror stories about it.
> This will be my biggest main hard drive yet (1 terabyte), so I'm
> considering EXT3 for the main partition.  Comments?
>

I use ext4 on about everything here.  I have used ext3 a lot in the past
but also have used reiserfs too with no problem back then.  It seems
reiserfs may not be getting as much TLC as it used to so when I built my
new rig, I went to ext4.  That was about 2 years or so ago.  When it
does fsck during boot up, it is really fast.  Also, almost zero
fragmentation.  It comes with a defrag tool but not sure why they
bothered really.  I have a 3Tb drive using LVM and never a problem here
with ext4.  I also have a 750Gb and a few smaller drives too. 
Everything but / and /boot is on LVM. 

root@fireball / # mount
rootfs on / type rootfs (rw)
/dev/sda6 on / type ext4 (rw,commit=0)
<< snip needless stuff >>
/dev/sda1 on /boot type ext2 (rw)
/dev/mapper/OS-usr on /usr type ext4 (rw,commit=0)
/dev/mapper/OS-var on /var type ext4 (rw,commit=0)
/dev/mapper/home-home on /home type ext4 (rw,commit=0)
/dev/mapper/backup-backup on /backup type ext4 (rw,commit=0)
tmpfs on /var/tmp/portage type tmpfs (rw,noatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,nodev,noexec,nosuid)
root@fireball / #

While ext3 is good, I'd at least think about ext4.

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




PVSCSI vs LSI Logic Parallel/SAS - WAS: Re: [gentoo-user] Best filesystem for virtualized gentoo mail server - WAS: vmWare HowTo / best practices

2013-04-23 Thread Tanstaafl

On 2013-04-22 8:56 AM, Andre Lucas Falco  wrote:

2013/4/21 Tanstaafl  wrote:

Windows VMs see get an 'LSI Logic SAS', and my gentoo VM gets an
'LSI Logic Parallel' controller.



Did you tested using pvscsi? It's improve performance with less cost to
CPU usage.


No, I didn't...

It appears there is pvscsi support in the mainline linux kernel, but is 
it rock-solid? Anyone else here running gentoo linux with this driver 
for their primary/boot disk controller?


Also, for my windows server 2008r2 vms, I used the default, which was 
the LSI SAS... I did search and found the knowledgebase article 
describing how to change them, but is the gain really worth the trouble 
(and more importantly, the risk)?




Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Stefan G. Weichinger
Am 23.04.2013 20:48, schrieb Michael Mol:

> That said, I've been using ext4 for the past 3-4 years on nearly
> all my systems without a problem. The only scenario I don't use
> ext4 is for /boot...and there I use ext3.

really? I never tried that and still use ext2 there.

No big difference at boot time, I assume  ... even if it has to be
checked, it's only 100 MB in size on my systems ...

> I don't even bother compiling in ext2 and ext3.

gotta try that ;-)
Stefan




Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Walter Dnes
On Tue, Apr 23, 2013 at 02:48:19PM -0400, Michael Mol wrote

> Incidentally, if you use ext3, and your kernel supports ext4, chances
> are it's the kernel's ext4 code that's handling your ext3 fs. I don't
> even bother compiling in ext2 and ext3.

  Interesting.  From "make menuconfig"...

[ ]   Use ext4 for ext2/ext3 file systems

...and the help text says...

> Allow the ext4 file system driver code to be used for ext2 or
> ext3 file system mounts.  This allows users to reduce their
> compiled kernel size by using one file system driver for
> ext2, ext3, and ext4 file systems.

  I usually have a 200 or 250 MEGAbyte (correct!) / partition using
ext2.  /boot is physically on the / partitiion.  The / partition only
gets written to...
* during the emerge "install" step
* when I'm manually tweaking a file in /etc

  Then a swap partition, and the rest of the drive is a honking big
/home partition.  /home/bindmounts/opt and /home/bindmounts/var and
/home/bindmounts/usr and /home/bindmounts/tmp are bind-mounted onto the
corresponding directories in /.  The big /home partition is the one that
I'm considering EXT3 or EXT4.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Hilco Wijbenga
On 23 April 2013 11:40, Walter Dnes  wrote:
>   I recently got a new Dell "desktop PC" at home, and ran Windows for a
> while to make sure nothing is broken.  Now I'm getting ready to
> partition and reformat for a Gentoo install.  My understanding is that
> BTRFS and EXT4 are still a bit "bleeding edge".  I've used ReiserFS3 for
> years with no problems, but I keep hearing horror stories about it.
> This will be my biggest main hard drive yet (1 terabyte), so I'm
> considering EXT3 for the main partition.  Comments?

I too have been using ReiserFS for years without problems. It must
have gotten close to 10 years. This is with power failures every
couple of months and of course the occasional PEBKAC.

Whenever I needed to install something on a VM I would try some other
filesystem. Usually Ext3 as that was supposed to be really good. It
never worked well for me, I would always run out of inodes. AFAIK,
Ext4 does not have dynamic inode allocation either. For me, that means
they don't make the short list.

Still, ReiserFS is showing its age and I do get the impression that
it's not getting much dev love any more. So when I needed to install a
new machine, I looked around and settled on JFS. This box has been
running for about half a year now (so that includes several power
failures) without any problems. I certainly am very pleased with JFS
so perhaps you might want to consider it.



Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Alan McKinnon
On 23/04/2013 20:40, Walter Dnes wrote:
>   I recently got a new Dell "desktop PC" at home, and ran Windows for a
> while to make sure nothing is broken.  Now I'm getting ready to
> partition and reformat for a Gentoo install.  My understanding is that
> BTRFS and EXT4 are still a bit "bleeding edge".  I've used ReiserFS3 for
> years with no problems, but I keep hearing horror stories about it.
> This will be my biggest main hard drive yet (1 terabyte), so I'm
> considering EXT3 for the main partition.  Comments?
> 

In over 10 years, I have never had a file system failure with any of
these (all used a lot):

ext2
ext3
ext4
zfs
reiser3

I have had failures with these (used a lot):

Oh wait, there aren't any of those.



What I'm saying is that unless you do something bat shit crazy insane
you are rather unlikely to have to deal with filesystem issues. Hardware
issues are MUCH more common.

Don't use btrfs just yet, it's not production-ready and the on-disk
format is liable to change.

ext4 is fine. All the horror stories ended years ago and almost all
major distros ship it as a default.

reiser is unsupported and liable to bitrot if it isn't already.

p.s. you will hear horror stories about any filesystem you care to list.
All you need do is find just one idiot that did something stupid once
and wreaked his fs, and suddenly it's the software's fault. But every
time we discuss filesystems here the vast majority of users of a certain
type state they never had any issues with it. Me too :-)


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Removing pulseaudio

2013-04-23 Thread William Hubbs
On Fri, Apr 19, 2013 at 09:49:19AM +0100, Kevin Chadwick wrote:
> > Feel free to remove PA if you don't need it. I really don't see any
> > scope for Lennart to make all of alsa redundant anytime soon (unlike
> > udev...)
> 
> Of course from many threads from a pro audio user called Ralf, Gentoo
> users and so a fraction of Linux users are the only ones lucky enough
> to be able to do that *easily* whilst keeping packages they want,
> especially Gnome ones!

I"m not a gnome user as of yet, but I can tell you that the day is
coming (Gnome 3.8 I believe) when gnome will not work without PA, so you
will have to install it if you want newer Gnome.

William


signature.asc
Description: Digital signature


Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Jarry

On 23-Apr-13 22:40, Alan McKinnon wrote:


ext4 is fine. All the horror stories ended years ago and almost all
major distros ship it as a default.


Hm, I remember one horror story about "ext4 data corruption bug"
which circulated in public just a few months ago:
https://lkml.org/lkml/2012/10/23/690

Jarry
--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Andrew Hoffman
On Tue, Apr 23, 2013 at 4:10 PM, Jarry  wrote:

> On 23-Apr-13 22:40, Alan McKinnon wrote:
>
>  ext4 is fine. All the horror stories ended years ago and almost all
>> major distros ship it as a default.
>>
>
> Hm, I remember one horror story about "ext4 data corruption bug"
> which circulated in public just a few months ago:
> https://lkml.org/lkml/2012/10/**23/690
>
> Jarry
>
> Does anyone know if this ever was a production issue?
Gentoo-sources is 6 versions behind
http://packages.gentoo.org/package/sys-kernel/gentoo-sources for the stable
kernel
latest dev is 3.6.9-rc8


Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Paul Hartman
On Tue, Apr 23, 2013 at 4:10 PM, Jarry  wrote:
> On 23-Apr-13 22:40, Alan McKinnon wrote:
>
>> ext4 is fine. All the horror stories ended years ago and almost all
>> major distros ship it as a default.
>
>
> Hm, I remember one horror story about "ext4 data corruption bug"
> which circulated in public just a few months ago:
> https://lkml.org/lkml/2012/10/23/690

AFAIR the widely-reported bug was actually limited to a very obscure
circumstance using a certain non-default filesystem configuration and
only 1 or 2 people were known to report corruption. And it was fixed
in 3.6.6, I think. :)



Re: [gentoo-user] Removing pulseaudio

2013-04-23 Thread Michael Hampicke
Am 23.04.2013 22:59, schrieb William Hubbs:
> On Fri, Apr 19, 2013 at 09:49:19AM +0100, Kevin Chadwick wrote:
>>> Feel free to remove PA if you don't need it. I really don't see any
>>> scope for Lennart to make all of alsa redundant anytime soon (unlike
>>> udev...)
>>
>> Of course from many threads from a pro audio user called Ralf, Gentoo
>> users and so a fraction of Linux users are the only ones lucky enough
>> to be able to do that *easily* whilst keeping packages they want,
>> especially Gnome ones!
> 
> I"m not a gnome user as of yet, but I can tell you that the day is
> coming (Gnome 3.8 I believe) when gnome will not work without PA, so you
> will have to install it if you want newer Gnome.
> 
> William
> 

That's true, gnome3.8 will require you to install pulseaudio-2



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only

2013-04-23 Thread Joseph

On 04/23/13 20:10, J. Roeleveld wrote:

[snip]

I'm using SQL-Ledger (firefox) to access the postgresql.
Brief history:
I had a problem in the past when I upgraded to posgresql-9.1, all of a
sudden I could not access the sql-ledger.

The solution was to add "postgres group" to apache user.
The reason for it was the change in directory permission:

postgresql 8.x
drwxrwx--x 2 postgres postgres 4096 Dec 14 19:57 /var/run/postgresql/

postgresql 9.x
drwxrwx--- 2 postgres postgres 4096 Dec 19 13:21 /var/run/postgresql/

So:
groups apache
apache postgres

groups postgres
postgres

I hope this is correct as adding group "apache" to postgres user does
not work.

But I just realized that any user from local network can access my
sql-ledger using browser.
--
Joseph


Joseph.

I am guessing Apache is running on the same machine as your Postgresql server?

In this case. The connection will always originate from localhost and 
Postgresql is behaving as it should.

You will need to secure access to the website to avoid people accessing it.

Kind regards

Joost Roeleveld


Yes, every machine I run has apache on it, so  Postgresql server runs on it as 
well.
If I'm connecting from another network machine to a server, how does it 
originate from localhost?

Something is not correct.

--
Joseph



Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Paul Hartman
I'll add my anecdotes :)

On Tue, Apr 23, 2013 at 3:40 PM, Alan McKinnon  wrote:
> In over 10 years, I have never had a file system failure with any of
> these (all used a lot):
>
> ext2
> ext3
> ext4
> zfs
> reiser3

ext2, ext3, ext4, btrfs here.

ext4 for years (ever since it lost the dev suffix in the kernel)
without a single hiccup, and btrfs on a laptop with no battery
monitor, meaning the battery would die with no warning (unclean
shutdowns x1000) and never had an issue that prevented it from
mounting on the next reboot.

Also have used btrfs on a mobile phone running Mer development
snapshots which tends to crash, reboot, freeze and requires the
battery pulled, also never failed to remount after that constant
abuse.

btrfs has some features similar to zfs, reiser, lvm, dm... I still
haven't decided whether that feature-creep makes me think "oh cool!"
or "oh no!" :)

> I have had failures with these (used a lot):
>
> Oh wait, there aren't any of those.

JFS is on my "never again" list, I have used it on a few drives and
two of them ended with catastrophic failure after an unexpected
shutdown. "journal replay failed" is a phrase I still see in my
nightmares... The recovery stripped names from inodes resulting in
millions of files like I01039130.RCN or something like that... not
sorted into directories or anything, though the timestamps survived,
strangely. It has been several years since then and I've avoided JFS
ever since.

I actually had a third JFS incident, but by then I had disabled
auto-fsck. I was unable to mount it read-only, but found a shareware
tool for OS/2 that was able to recover files from a corrupt JFS
volume, complete with filenames and directories. I slapped the drive
into an OS/2 machine and it took several DAYS to complete the
recovery, but it did in fact complete and I happily sent the guy ten
dollars. It looks like nowadays there is an open-source tool for linux
called jfsrec which does the same kind of recovery from broken JFS
volumes.

I used XFS on a drive which had a bad cable, and it wound up being
unmountable and unfixable by fsck, though (after replacing the cable)
I was able to do read-only dump all of the files from it using the xfs
utils, after which I reformatted and copied everything back. Can't
fault the filesystem for a bad cable but any time fsck is unable to
fix an unmountable filesystem, it scares me.

So, for me the rule of thumb is: ext4 on "important" drives (servers,
my main desktop system, RAID array, backups), and btrfs on drives
where I'm more willing to experiment and take a chance at something
weird happening (laptop, web surfing workstation, mobile phone,
virtual machines).



Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread William Kenworthy
On 24/04/13 06:34, Paul Hartman wrote:
> I'll add my anecdotes :)
> 
> On Tue, Apr 23, 2013 at 3:40 PM, Alan McKinnon  
> wrote:
>> In over 10 years, I have never had a file system failure with any of
>> these (all used a lot):
>>
>> ext2
>> ext3
>> ext4
>> zfs
>> reiser3
> 
> ext2, ext3, ext4, btrfs here.
> 
> ext4 for years (ever since it lost the dev suffix in the kernel)

I find filesystems are very much a case of YMMV :)

I will NOT use an ext fs again willingly - lost too many whole systems,
corruption - Ive had less problems with DOS!

Reiserfs, has had its "moments" but is by far the most stable system,
though NTFS isnt bad these days either.

btrfs - I am using this for backups systems and under a cephfs rbd store
for VM's.  Not bad ... but definitely not stable though its months since
I have lost a whole system ... I am also using it as the primary file
system on an apple macbook air (ssd) and for the OS on an ssd for a vm
server host and its been problem free on both.

BillK






Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Dale
William Kenworthy wrote:
> I find filesystems are very much a case of YMMV :)
>
> I will NOT use an ext fs again willingly - lost too many whole systems,
> corruption - Ive had less problems with DOS!
>
> Reiserfs, has had its "moments" but is by far the most stable system,
> though NTFS isnt bad these days either.
>
> btrfs - I am using this for backups systems and under a cephfs rbd store
> for VM's.  Not bad ... but definitely not stable though its months since
> I have lost a whole system ... I am also using it as the primary file
> system on an apple macbook air (ssd) and for the OS on an ssd for a vm
> server host and its been problem free on both.
>
> BillK
>

I think Alan said it best but I just can't resist sharing this:

http://blogs.computerworld.com/15413/the_best_linux_file_system_of_all

That is about Google switching all their servers to . . . . ext4.  This
is like asking which brand of hard drive is best.  No matter who it is,
every single person has had at least one drive fail and will never use
that brand again.  lol 

Just for giggles. 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Philip Webb
130423 Walter Dnes wrote:
> I recently got a new Dell "desktop PC" at home
> Now I'm getting ready to partition and reformat for a Gentoo install.
> I've used ReiserFS3 for years with no problems,
> but I keep hearing horror stories about it.

I haven't read any horror stories re Reiser 3 ,
which I've been using for  10 years  without any problem ever.
Reiser 4 was stalling even before its creator's legal problems
& seems unlikely to get kernel support,
but Reiser 3 is still being developed & is probably simply mature.

> This will be my biggest main hard drive yet (1 terabyte),
> so I'm considering EXT3 for the main partition.

Reiser is supposed to be good for large numbers of small files,
so partly it will depend on just what you plan to use the space for.

> My understanding is that BTRFS and EXT4 are still a bit "bleeding edge".

My impression is that Btrfs is a bit unstable, but Ext4 is usable.
I haven't used either.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] Removing pulseaudio

2013-04-23 Thread Walter Dnes
On Wed, Apr 24, 2013 at 12:12:56AM +0200, Michael Hampicke wrote

> >> Of course from many threads from a pro audio user called Ralf, Gentoo
> >> users and so a fraction of Linux users are the only ones lucky enough
> >> to be able to do that *easily* whilst keeping packages they want,
> >> especially Gnome ones!
> > 
> > I"m not a gnome user as of yet, but I can tell you that the day is
> > coming (Gnome 3.8 I believe) when gnome will not work without PA, so you
> > will have to install it if you want newer Gnome.
> > 
> > William
> > 
> 
> That's true, gnome3.8 will require you to install pulseaudio-2

  From a logic chapter in a highschool math text, the "contrapositive"
version of this is that removing pulseaudio will require removing gnome.
See my sig...

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] KDM stucking!

2013-04-23 Thread Jackie



I still don't get a clue what; wrong here and why this all happend. Hope
the information above will be helpful.

I have had KDE behave similarly when my LDAP authentication was screwed  
up. There was an issue caused by a gnome library that was pulled in by  
gnucash. This only affected KDE logins, not console logins. Are you  
attempting to log in with a local user?


This same thing also happened to me once when the disk was full.

Cheers,

Paul



Well,I was always using a local user account since I'm just using Gentoo  
on my PC for my own daily stuff.And this never happened before.


Jackie



Re: [gentoo-user] Re: KDM stucking!

2013-04-23 Thread Jackie
在 Wed, 24 Apr 2013 01:56:18 +0800,Neil Bothwick   
写道:



Neil Bothwick


Regarding to yours and Dale's suggetion,seems it indeed has something to  
do with DNS(/etc/host.conf & /etc/resolv.conf settings maybe). Anyway I am  
giving it a shot after Google for DNS HowTo :)

Reply to you guys soon!

Jackie


--
使用Opera的电子邮件客户端:http://www.opera.com/mail/



Re:(SOLVED)[gentoo-user] KDM stucking!

2013-04-23 Thread Jackie

I still don't get a clue what; wrong here and why this all happend. Hope
the information above will be helpful.

I have had KDE behave similarly when my LDAP authentication was screwed  
up. There was an issue caused by a gnome library that was pulled in by  
gnucash. This only affected KDE logins, not console logins. Are you  
attempting to log in with a local user?


This same thing also happened to me once when the disk was full.

Cheers,

Paul



Good news here, I added

nameserver 8.8.8.8
nameserver 8.8.4.4

to my /etc/resolv.conf,logout and login,no pause before splash  
appeared.Then I rebooted,/etc/resolv was automatically changed back and  
the PAUSE came back. I then  used the "chattr +i /etc/resolv.conf" command  
to avoid resolv.conf being changed when rebooting.Rebooted and everything  
is clear now!Thanks all for your advice!




Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only

2013-04-23 Thread J. Roeleveld
On Wed, April 24, 2013 00:16, Joseph wrote:
> On 04/23/13 20:10, J. Roeleveld wrote:




>>I am guessing Apache is running on the same machine as your Postgresql
>> server?
>>
>>In this case. The connection will always originate from localhost and
>> Postgresql is behaving as it should.
>>
>>You will need to secure access to the website to avoid people accessing
>> it.
>>
>
> Yes, every machine I run has apache on it, so  Postgresql server runs on
> it as well.
> If I'm connecting from another network machine to a server, how does it
> originate from localhost?
>
> Something is not correct.

I'll try to explain.

When you connect to the website (Apache) the connection Apache sees
originates from your machine.

When Apache then needs to access PostgreSQL to access the data needed for
the website, Postgresql sees the connection originating from Apache, which
is running on the same machine.

--
Joost




Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Walter Dnes
On Tue, Apr 23, 2013 at 09:37:52PM -0400, Philip Webb wrote

> I haven't read any horror stories re Reiser 3 ,
> which I've been using for  10 years  without any problem ever.
> Reiser 4 was stalling even before its creator's legal problems
> & seems unlikely to get kernel support,
> but Reiser 3 is still being developed & is probably simply mature.
> 
> > This will be my biggest main hard drive yet (1 terabyte),
> > so I'm considering EXT3 for the main partition.
> 
> Reiser is supposed to be good for large numbers of small files,
> so partly it will depend on just what you plan to use the space for.

  I have mix of various sizes.  The best feature about ReiserFS is that
it doesn't do inodes, so I don't have to be psychic about my future file
mix when I format the partition.  For that reason alone, I'm tempted to
stay with ReiserFS3.  I'm aware of the booby traps...

- *NEVER EVER* have an uncompressed ReiserFS image on a ReiserFS
  partition

- avoid Postfix and Qmail

  And I expect it to continue running OK.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Alan McKinnon
On 23/04/2013 23:10, Jarry wrote:
> On 23-Apr-13 22:40, Alan McKinnon wrote:
> 
>> ext4 is fine. All the horror stories ended years ago and almost all
>> major distros ship it as a default.
> 
> Hm, I remember one horror story about "ext4 data corruption bug"
> which circulated in public just a few months ago:
> https://lkml.org/lkml/2012/10/23/690
> 
> Jarry

I dimly recall that one. Didn't it happen only in some very obscure
circumstances that rarely happens in real life? Like rapidly mounting
and unmounting the filesystem in a very specific use-scenario?

What I do recall clearly is my conclusion at the time that the bug was
just that - a bug. All software has bugs and not all bugs are equal; one
has to learn to categorize them, and this one was relatively minor as
far as filesystem bugs go.

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: (SOLVED)[gentoo-user] KDM stucking!

2013-04-23 Thread Dale
Jackie wrote:
>>> I still don't get a clue what; wrong here and why this all happend.
>>> Hope
>>> the information above will be helpful.
>>>
>> I have had KDE behave similarly when my LDAP authentication was
>> screwed up. There was an issue caused by a gnome library that was
>> pulled in by gnucash. This only affected KDE logins, not console
>> logins. Are you attempting to log in with a local user?
>>
>> This same thing also happened to me once when the disk was full.
>>
>> Cheers,
>>
>> Paul
>>
>
> Good news here, I added
>
> nameserver 8.8.8.8
> nameserver 8.8.4.4
>
> to my /etc/resolv.conf,logout and login,no pause before splash
> appeared.Then I rebooted,/etc/resolv was automatically changed back
> and the PAUSE came back. I then used the "chattr +i /etc/resolv.conf"
> command to avoid resolv.conf being changed when rebooting.Rebooted and
> everything is clear now!Thanks all for your advice!
>
>

You can set the defaults for resolv.conf in the net file. Here is mine:

config_eth0="dhcp"
dhcp_eth0="nodns"
dns_servers_eth0="8.8.8.8 8.8.4.4"

That should fix it as it should be without force. Yea, I had to dig. I'm
getting old or something. :/

Dale

:-) :-)

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!