Re: [gentoo-user] Raid 5 creation is slow - Can this be done quicker? [SOLVED]

2010-02-08 Thread J. Roeleveld
On Monday 01 February 2010 12:58:49 J. Roeleveld wrote:
> Hi All,
> 
> I am currently installing a new server and am using Linux software raid to
> merge 6 * 1.5TB drives in a RAID5 configuration.
> 
> Creating the RAID5 takes over 20 hours (according to " cat /proc/mdstat ")
> 
> Is there a way that will speed this up? The drives are new, but contain
>  random data left over from some speed and reliability tests I did. I don't
>  care about keeping the current 'data', as long as when the array is
>  reliable later.
> 
> Can I use the " --assume-clean " option with mdadm and then expect it to
>  keep working, even through reboots?
> Or is this a really bad idea?
> 
> Many thanks,
> 
> Joost Roeleveld
> 

Hi all,

Many thanks for all the input, I did wait the 20 hours, but when it was 
finished, the performance was still slow. And trying out different options for 
the array didn't actually help.

Thanks to the thread "1-Terabyte drives - 4K sector sizes? -> bar performance 
so far" I figured out the problem (4KB sectors).
After changing the partitions to use sector 64 as start (as opposed to 63) a 
build of the array should only take 6 hours.
Hopefully, the raid-array will also show a better performance when this is 
finished.

--
Joost Roeleveld



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far

2010-02-09 Thread J. Roeleveld
On Monday 08 February 2010 21:34:01 Paul Hartman wrote:
> On Mon, Feb 8, 2010 at 12:52 PM, Valmor de Almeida  
wrote:
> > Mark Knecht wrote:
> > [snip]
> >
> >>This has been helpful for me. I'm glad Valmor is getting better
> >> results also.
> >
> > [snip]
> >
> > These 4k-sector drives can be problematic when upgrading older
> > computers. For instance, my laptop BIOS would not boot from the toshiba
> > drive I mentioned earlier. However when used as an external usb drive, I
> > could boot gentoo. Since I have been using this drive as backup storage
> > I did not investigate the reason for the lower speed. I am happy to get
> > a factor of 8 in speed up now after you did the research :)
> >
> > Thanks for your postings.
> 
> Thanks for the info everyone, but do you understand the agony I am now
> suffering at the fact that all disk in my system (including all parts
> of my RAID5) are starting on sector 63 and I don't have sufficient
> free space (or free time) to repartition them? :) I am really curious
> if there are any gains to be made on my own system...
> 
> Next time I partition I will definitely pay attention to this, and
> feel foolish that I didn't pay attention before. Thanks.
> 

I have similar disks in my new system and was lucky that I was still in the 
testing phase and hadn't filled the disks yet.
After changing the partitions to start at sector 64, the creation of the 
RAID-5 set went from around 22 hours to 9 hours.

I also get a much higher throughput (in the range of at least 4 times faster), 
so I would recommend doing the change if you can.

I now only need to figure out the best way to configure LVM over this to get 
the best performance from it. Does anyone know of a decent way of figuring 
this out?
I got 6 disks in Raid-5.

Thanks,

Joost Roeleveld



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far

2010-02-09 Thread J. Roeleveld
On Tuesday 09 February 2010 13:46:40 Stroller wrote:
> On 9 Feb 2010, at 00:27, Neil Bothwick wrote:
> > On Mon, 8 Feb 2010 14:34:01 -0600, Paul Hartman wrote:
> >> Thanks for the info everyone, but do you understand the agony I am
> >> now
> >> suffering at the fact that all disk in my system (including all parts
> >> of my RAID5) are starting on sector 63 and I don't have sufficient
> >> free space (or free time) to repartition them? :)
> >
> > With the RAID, you could fail one disk, repartition, re-add it,
> > rinse and
> > repeat. But that doesn't take care of the time issue.
> 
> Aren't you thinking of LVM, or something?
> 
> Stroller.
> 

Not sure where LVM would fit into this, as then you'd need to offload the data 
from that PV (Physical Volume) to a different PV first.

With Raid (NOT striping) you can remove one disk, leaving the Raid-array in a 
reduced state. Then repartition the disk you removed, repartition and then re-
add the disk to the array.
Wait for the rebuild to complete and do the same with the next disk in the 
array.
Eg: (for a 3-disk raid5):
1) remove disk-1 from raid
2) repartition disk-1
3) add disk-1 as new disk to raid
4) wait for the synchronisation to finish
5) remove disk-2 from raid
6) repartition disk-2
7) add disk-2 as new disk to raid
8) wait for the synchronisation to finish
9) remove disk-3 from raid
10) repartition disk-3
11) add disk-3 as new disk to raid
12) wait for the synchronisation to finish

(These steps can easily be adapted for any size and type of raid, apart from 
striping/raid-0)

I do, however, see a potential problem, if you repartition starting from 
sector 64 instead of from sector 63, the disk has 1 sector less, which means 
4KB less in size.
The Raid-array may not accept the re-partitioned disk back into the array 
because it's not big enough for the array.

I had this issue with an older system once where I replaced a dead 80GB (Yes, 
I did say "old" :) ) with a new 80GB drive. This drive was actually a few KB 
smaller in size and the RAID would refuse to accept it.

--
Joost Roeleveld



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far

2010-02-09 Thread J. Roeleveld
On Tuesday 09 February 2010 16:11:14 Stroller wrote:
> On 9 Feb 2010, at 13:57, J. Roeleveld wrote:
> > ...
> > With Raid (NOT striping) you can remove one disk, leaving the Raid-
> > array in a
> > reduced state. Then repartition the disk you removed, repartition
> > and then re-
> > add the disk to the array.
> 
> Exactly. Except the partitions extend, in the same positions, across
> all the disks.
> 
> You cannot remove one disk from the array and repartition it, because
> the partition is across the array, not the disk. The single disk,
> removed from a RAID 5 (specified by Paul Hartman) array does not
> contain any partitions, just one stripe of them.
> 
> I apologise if I'm misunderstanding something here, or if your RAID
> works differently to mine.
> 
> Stroller.
> 

Stroller, it is my understanding that you use hardware raid adapters?
If that is the case, then the mentioned method won't work for you and if your 
raid-adapters already align everything properly, then you shouldn't notice any 
problems with these drives.
It would, however, be interesting to know how hardware raid adapters handle 
these 4KB sector-sizes.

I believe Paul Hartman is, like me, using Linux Sofware raid (mdadm+kernel 
drivers).

In that case, you can do either of the following:
Put the whole disk into the RAID, eg:
mdadm --create --level=5 --devices=6 /dev/sd[abcdef]
Or, you create 1 or more partitions on the disk and use these, eg:
mdadm --create --level=5 --devices=6 /dev/sd[abcdef]1

To have linux auto-detect for raid devices work, as far as I know, the 
partitioning method is required.
For that, I created a single full-disk partition on my drives:
--
# fdisk -l -u /dev/sda

Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xda7d8d6d

   Device Boot  Start End  Blocks   Id  System
/dev/sda1  64  2930277167  1465138552   fd  Linux raid autodetect
--

I, after reading this, redid the array with the partition starting at sector 
64. Paul was unfortunate to have already filled his disks before this thread 
appeared.

The downside is: you loose one sector, but the advantage is a much improved 
performance (Or more precisely, not incur the performance penalty from having 
misaligned partitions)

--
Joost Roeleveld



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far

2010-02-09 Thread J. Roeleveld
On Tuesday 09 February 2010 19:25:00 Mark Knecht wrote:
> On Tue, Feb 9, 2010 at 9:38 AM, Stroller 
>  wrote: 
> 
> > IMO this is a fdisk "bug". A feature should be added so that it tries to
> > align optimally in most circumstances. RAID controllers should not be
> > trying to do anything clever to accommodate potential misalignment unless
> > it is really cheap to do so.
> >
> > Stroller.
> 
> We think alike. I personally wouldn't call it a bug because drives
> with 4K physical sectors are very new, but adding a feature to align
> things better is dead on the right thing to do. It's silly to expect
> every Linux user installing binary distros to have to learn this stuff
> to get good performance.
> 
> - Mark
> 

I actually agree, although I think the 'best' solution (untill someone comes 
up with an even better one, that is :) ) would be for the drive to actually be 
able to inform the OS (via S.M.A.R.T.?) that it has 4KB sectors.
If then fdisk-programs and RAID-cards (ok, new firmware) then uses this to 
come to sensible settings, that would then work.

If these RAID-cards then also pass on the correct settings for the raid-array 
for optimal performance (stripe-size => sector-size?) using the same method, 
then everyone would end up with better performance.

Now, if anyone has any idea on how to get this idea implemented by the 
hardware vendors, then I'm quite certain the different tools can be modified 
to take this information into account?

And Mark, it's not just people installing binary distros, I think it's 
generally people who don't fully understand the way harddrives work on a 
physical level. I consider myself lucky to have worked with older computers 
where this information was actually necessary to even get the BIOS to 
recognize the harddrive.

--
Joost



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far

2010-02-09 Thread J. Roeleveld
On Tuesday 09 February 2010 19:03:39 Neil Walker wrote:
> Hey guys,
> 
> There seems to be a lot of confusion over this RAID thing.
> 
> Hardware RAID does not use partitions. The entire drive is used (or,
> actually, the amount defined in setting up the array) and all I/O is
> handled by the BIOS on the RAID controller. The array appears as a
> single drive to the OS and can then be partitioned and formatted like
> any other drive.
> 
> Software RAID can be created within existing MSDOS-style partitions -
> indeed must be if the array is to be bootable.
> 
> The OP seems to be doing the latter so the comments about removing a
> drive and re-formatting are perfectly valid.
> 
> In order not to confuse the matter further, I deliberately left out the
> pseudo-hardware controllers on many modern motherboards. ;)

Don't get me started on those ;)
The reason I use Linux Software Raid is because:
1) I can't afford hardware raid adapters
2) It's generally faster then hardware fakeraid

--
Joost



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far

2010-02-09 Thread J. Roeleveld
On Tuesday 09 February 2010 22:13:39 Frank Steinmetzger wrote:

> When I use parted on the drives, it says (both the old external and my 2
> months old internal):
> Sector size (logical/physical): 512B/512B
> So no speedup for me then. :-/
> 

That doesn't mean a thing, I'm afraid.
I have the 4KB drives (product-code and behaviour match) and parted also 
claims my drives have a 512B logical/physical sector size.



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far

2010-02-10 Thread J. Roeleveld
On Wednesday 10 February 2010 00:22:31 Iain Buchanan wrote:
> On Tue, 2010-02-09 at 08:47 +0100, J. Roeleveld wrote:
> > I now only need to figure out the best way to configure LVM over this to
> > get the best performance from it. Does anyone know of a decent way of
> > figuring this out?
> > I got 6 disks in Raid-5.
> 
> why LVM?  Planning on changing partition size later?  LVM is good for
> (but not limited to) non-raid setups where you want one partition over a
> number of disks.
> 
> If you have RAID 5 however, don't you just get one large disk out of it?
> In which case you could just create x partitions.  You can always use
> parted to resize / move them later.
> 
> IMHO recovery from tiny boot disks is easier without LVM too.
> 

I've been using LVM for quite a while now and prefer it over any existing 
partitioning method. Especially as this array is for filesharing and I prefer 
to keep different shares on different partitions and the requirements for 
sizes are not known at the beginning.

Also, the machine this is in uses Xen virtualisation to consolidate different 
servers on a single machine (power-consumption and most servers only need a 
lot of resources occasionally) and I already have over 80 LVs just for the 
virtual machines themselves. (multiple each, as I don't like a single large 
partition for any machine)

As for recovery, I always use "sysrescuecd" (http://www.sysresccd.org) and 
this has Raid and LVM support in it. (Same with the Gentoo-livecds)

--
Joost



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far

2010-02-10 Thread J. Roeleveld
On Wednesday 10 February 2010 08:08:44 Alan McKinnon wrote:
> On Wednesday 10 February 2010 01:22:31 Iain Buchanan wrote:
> > On Tue, 2010-02-09 at 08:47 +0100, J. Roeleveld wrote:
> > > I now only need to figure out the best way to configure LVM over this
> > > to get the best performance from it. Does anyone know of a decent way
> > > of figuring this out?
> > > I got 6 disks in Raid-5.
> >
> > why LVM?  Planning on changing partition size later?  LVM is good for
> > (but not limited to) non-raid setups where you want one partition over a
> > number of disks.
> >
> > If you have RAID 5 however, don't you just get one large disk out of it?
> > In which case you could just create x partitions.  You can always use
> > parted to resize / move them later.
> >
> > IMHO recovery from tiny boot disks is easier without LVM too.
> 
> General observation (not saying that Iain is wrong):
> 
> You use RAID to get redundancy, data integrity and performance.
> 
> You use lvm to get flexibility, ease of maintenance and the ability to
>  create volumes larger than any single disk or array. And do it at a
>  reasonable price.
> 
> These two things have nothing to do with each other and must be viewed as
> such. There are places where RAID and lvm seem to overlap, where one might
> think that a feature of one can be used to replace the other. But both
>  really suck in these overlaps and are not very good at them.
> 
> Bottom line: don't try and use RAID or LVM to do $STUFF outside their core
> functions. They each do one thing and do it well.
> 

I completely agree with this.
RAID is for redundancy (Loose a disk, and the system will keep running)
LVM is for flexibility (Resizing/moving partitions using parted or similar 
takes time during which the whole system is unusable)

With LVM, I can resize a partition while it is actually in use (eg. write-
activities)




Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far

2010-02-10 Thread J. Roeleveld
On Wednesday 10 February 2010 02:28:59 Stroller wrote:
> On 9 Feb 2010, at 19:37, J. Roeleveld wrote:
> > ...
> > Don't get me started on those ;)
> > The reason I use Linux Software Raid is because:
> > 1) I can't afford hardware raid adapters
> > 2) It's generally faster then hardware fakeraid
> 
> I'd rather have slow hardware RAID than fast software RAID. I'm not
> being a snob, it just suits my purposes better.

I don't consider that comment as "snobbish" as I actually agree.
But as I am using 6 disks in the array, a hardware RAID card to handle that 
would have pushed me above budget.
It is planned for a future upgrade (along with additional disks), but that 
will have to wait till after another few expenses.

> If speed isn't an issue then secondhand prices of SATA RAID
> controllers (PCI & PCI-X form-factor) are starting to become really
> cheap. Obviously new cards are all PCI-e - industry has long moved to
> that, and enthusiasts are following.

My mainboard has PCI, PCI-X and PCI-e (1x and 16x), which connector-type would 
be best suited?
Also, I believe a PCI-e 8x card would work in a PCI-e 16x slot, but does this 
work with all mainboards/cards? Or are some more picky about this?
 
> I would be far less invested in hardware RAID if I could find regular
> SATA controllers which boasted hot-swap. I've read reports of people
> hot-swapping SATA drives "just fine" on their cheap controllers but
> last time I checked there were no manufacturers who supported this as
> a feature.

The mainboard I use (ASUS M3N-WS) has a working hotswap support (Yes, I tested 
this) using hotswap drive bays.
Take a disk out, Linux actually sees it being removed prior to writing to it 
and when I stick it back in, it gets a new device assigned.

On a different machine, where I tried it, the whole machine locked up when I 
removed the disk (And SATA is supposed to be hotswappable by design...)

--
Joost



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far

2010-02-10 Thread J. Roeleveld
On Wednesday 10 February 2010 12:03:51 Volker Armin Hemmann wrote:
> On Mittwoch 10 Februar 2010, J. Roeleveld wrote:
> > As for recovery, I always use "sysrescuecd" (http://www.sysresccd.org)
> > and this has Raid and LVM support in it. (Same with the Gentoo-livecds)
> 
> sysrescuecd failed me hard two nights ago. 64bit kernel paniced with stack
> corruptions, 32bit kernel took an hour to unpack 300kb from a 20gb tar...
> 
> it was pathetic...
> 

Never had a problem with it myself, but I always test rescuediscs semi-
regularly on all my machines, just to be sure. :)

I'm also paranoid when it comes to backups of my private data.



Re: [gentoo-user] old kernel (kcore)?

2010-02-10 Thread J. Roeleveld
On Wednesday 10 February 2010 14:51:26 James wrote:
> Hello,
> 
> 
> I booted up an old system off our a minimal 2006.1 cd
> 
> 
> I'm looking for the kernel to copy it.
> 
> 
> Is it this kcore file?
> 
> proc # file kcore
> kcore: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style,
> SVR4-style, from 'vmlinux'
> 
> 
> 
> If not does somebody know what the name, or the location (on the x86 2006.1
> minimal cd0 would be?
> 
> the .config file used to create the kernel would be of keen interest to me
>  too.
> 
> thx,
> James
> 

Not sure where the kernel-image is on the CD, but have a look in the ISOLINUX 
directory?

As for the ".config", I think the kernels used by Gentoo all have the 
/proc/config.gz option active.
Eg. to get the config, do the following:
zcat /proc/config.gz > .config

HTH,

Joost



Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-10 Thread J. Roeleveld
On Tuesday 09 February 2010 23:58:10 Dale wrote:
> So, hal may be progress to you but it is a step backward for me.  It's
> the opposite of progress.

You mean HAL = Congress?

Sorry, couldn't resist ;)

And now, back on topic :)



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far

2010-02-10 Thread J. Roeleveld
On Wednesday 10 February 2010 17:37:47 Stroller wrote:
> On 10 Feb 2010, at 11:14, J. Roeleveld wrote:
> > On Wednesday 10 February 2010 02:28:59 Stroller wrote:
> >> On 9 Feb 2010, at 19:37, J. Roeleveld wrote:
> >>> ...
> >>> Don't get me started on those ;)
> >>> The reason I use Linux Software Raid is because:
> >>> 1) I can't afford hardware raid adapters
> >>> 2) It's generally faster then hardware fakeraid
> >>
> >> I'd rather have slow hardware RAID than fast software RAID. I'm not
> >> being a snob, it just suits my purposes better.
> >
> > I don't consider that comment as "snobbish" as I actually agree.
> > But as I am using 6 disks in the array, a hardware RAID card to
> > handle that
> > would have pushed me above budget.
> 
> See, for example, eBay item 280459693053.
> 
> LSI is also a popular brand amongst Linux enthusiasts.
> 
> 3ware have been taken over by LSI and their support has deteriorated
> over the last few months, but 3ware cards come with transferrable 3
> year warranty, expiry date identifiable by serial number, and you will
> often find eBay cards are still in warranty.

Yes, except that I tend to avoid eBay as much as possible for reasons that 
don't belong on this list.

> > My mainboard has PCI, PCI-X and PCI-e (1x and 16x), which connector-
> > type would
> > be best suited?
> 
> PCI-e, PCI-X, PCI in that order, I *think*.
> 
> PCI-X is very good, IIRC, it may be fractionally faster than PCI-e,
> but I get the impression it's going out of fashion a bit on
> motherboards.
> 
> PCI-e is very fast and is the most readily usable on new & future
> motherboards. It is what one would choose if buying new (I'm not sure
> if PCI-X cards are still available), and so it is the most expensive
> on the secondhand market.

I know at least one shop in NL that sells them (They're also online)

> Some 3ware PCI-X cards (eg the 9500S at least) are usable in regular
> PCI slots, obviously at the expense of speed. Not sure about other
> brands.
> 
> Avoid 3ware 7000 & 8000 series cards - they are now ancient, although
> you can pick them up for £10.
> 
> > Also, I believe a PCI-e 8x card would work in a PCI-e 16x slot, but
> > does this
> > work with all mainboards/cards? Or are some more picky about this?
> 
> No idea, sorry. I would have thought so, but I don't use PCI-e here yet.

It's what all the buzz says, but I've yet to have that confirmed. It's 
especially the size of the slots and the cards where my concerns come from.

> >> I would be far less invested in hardware RAID if I could find regular
> >> SATA controllers which boasted hot-swap. I've read reports of people
> >> hot-swapping SATA drives "just fine" on their cheap controllers but
> >> last time I checked there were no manufacturers who supported this as
> >> a feature.
> >
> > The mainboard I use (ASUS M3N-WS) has a working hotswap support
> > (Yes, I tested
> > this) using hotswap drive bays.
> > Take a disk out, Linux actually sees it being removed prior to
> > writing to it
> > and when I stick it back in, it gets a new device assigned.
> 
> This is very interesting to know.
> 
> This would be very useful here, even if just for auxiliary use -
> swapping in a drive from another machine just to clone it, backup or
> recover data, for instance.

Yes, but just for cloning, wouldn't it be just as easy to power down the 
machine, plug in the drive and then power it back up?
Or even stick it on a quick-change USB-case? :)

> If I found an Atom-based board that did hotswap on its normal SATA
> ports I would probably purchase one in a flash.
> 
> > On a different machine, where I tried it, the whole machine locked
> > up when I
> > removed the disk (And SATA is supposed to be hotswappable by
> > design...)
> 
> This is what I would normally expect, at least from when I last
> checked a year or two ago.

I do have to say here that the mainboard for that machine is now easily 5 
years old, so I didn't actually expect it to work.

> AIUI SATA by design *may* be hotswappable at the *option* of the
> manufacturer.
> (Please correct me if I am mistaken)

I think it depends on if the controller actually sends the correct signals to 
the OS as I'm not sure if it was Linux or the hardware locking up.



Re: [gentoo-user] Running xsane

2010-02-15 Thread J. Roeleveld
On Monday 15 February 2010 00:34:42 CJoeB wrote:
> Hi everyone,
> 
> I have purchased an HP C4795 Photosmart All-in-One printer, scanner and
> copier.  I have gotten the printer to work fine after installing the
> unstable version of hplip.  The copy mechanism works also.  However, I
> am having trouble with the scanner.  I again have installed unstable
> versions (i.e. ~x86) versions of sane-backends and xsane).  If I run
> xsane as root, the scanner is recognized.  However, if I run xsane as a
> normal user, the device is not recognized.  I can't seem to figure out
> what to change to rectify this - I've tried changing the owner and group
> on the xsane executable, but this didn't work.  The permissions for the
> xsane executable seem fine.  I have added myself to the "scanner" group,
> but this doesn't seem to have any affect.  Also, despite the fact that
> the device can be set up wirelessly, I have not done this - I have the
> unit connected to my computer via USB cable.
> 
> Any of you gurus have any ideas?

Hi Colleen,

I also have one of those All-In-One printers.
To get it to work, I added the "saned" user to the following groups:
- lp
- usb
- scanner

I'm not sure, but I think "usb" is sufficient for the scanner, but with these, 
it works on my system.

--
Joost



Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-15 Thread J. Roeleveld
On Sunday 14 February 2010 15:27:45 Enrico Weigelt wrote:
> Neil Bothwick wrote:
 
> 
> And *IF* some application is interested in the such information,
> why not just using the filesystem ?

Because on flash-drives (Which are used in small devices and netbooks) you 
don't want every single status update to be written to the filesystem.
And with minimal memory, I don't want to have a ram-disk gobbling up the 
memory I have.

A simple message passed to apps which are listening is much better. It's 
short-lived and only uses (minimal) resources when the message is broadcast. 
After that, it doesn't linger, unless I am running an app that stores these 
messages somewhere. (Probably a debugger)

--
Joost



Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-16 Thread J. Roeleveld
On Monday 15 February 2010 20:20:53 Enrico Weigelt wrote:
> J. Roeleveld wrote:
> >> And *IF* some application is interested in the such information,
> >> why not just using the filesystem ?
> >
> > Because on flash-drives (Which are used in small devices and netbooks)
> > you don't want every single status update to be written to the
> > filesystem. And with minimal memory, I don't want to have a ram-disk
> > gobbling up the memory I have.
> 
> Why not simply using tmpfs ?
> Or an specific synthetic filesystem ? 9P makes this really easy,
> and network agnostic.

Netbook: 1GB of ram, with Linux, I can easily run all the software I want , 
without need of any swap.
Can I do the same with 9P? Eg. will I be able to run all the software I use on 
my netbook without having to spent time on porting it all?
Is also all the hardware supported in 9P? Linux supports all the hardware in 
my netbook.

Unless the answer to this is a 100% yes, 9P is never going to be an option.

--
Joost



Re: [gentoo-user] Re: [OT] Choice of Photo gallery tools

2010-02-18 Thread J. Roeleveld
On Thursday 18 February 2010 15:53:15 Harry Putnam wrote:
> Neil Bothwick  writes:
> > On Thu, 18 Feb 2010 11:05:12 +0930, Iain Buchanan wrote:
> >> never tried smugmug and don't know what your requirements are, but I
> >> push JAlbum.  You can create some pretty good looking albums and run
> >> them from CD / HD / webserver (I especially like the fact that you don't
> >> need a webserver).  It can synchronise to your website.  There are a
> >> plethora of options and free + commercial skins, plus plug-ins to let
> >> you sell them online.
> >>
> >> Unfortunately it's just the generation tool, you have to find your own
> >> hosting.
> >
> > If you want to host it yourself, there's Gallery. It too has plenty of
> > options and can take a little tweaking to get it just as you want.
> 
> Neil, do you know off hand if gallery offers user/viewer the ability
> to download original (full res) images?  Or does it generate the php
> versions but leave the originals out of what is viewed?
> 

I use Gallery myself for my picture collection and this can be configured 
easily.
As in, you can allow users access to all versions or just the 'resized' 
versions.
This can be done through groups or specific users.

I usually only allow people to access the resized versions. It does support 
resizing on-the-fly, but only to the sizes you actually configured for that 
particular photo/album/...

the on-the-fly bit is only done if the requested size doesn't exist yet, eg. 
it will only do it once (unless you clear the derivatives folder ;) )

--
Joost



Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-19 Thread J. Roeleveld
On Friday 19 February 2010 09:07:59 James Homuth wrote:
>   _
> 
> From: Hung Dang [mailto:hungp...@gmail.com]
> Sent: February 19, 2010 1:55 AM
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
> 
> 
> On 02/18/10 22:49, James Homuth wrote:
> 
> I performed a bit of an update on my laptop a day or two ago, and after
> reboot, I lost the ability to do anything with /dev/hda*. I currently have
>  0 swap space, and according to stat, ls etc, they don't exist. But,
>  booting to an install CD I burned for diagnostic purposes, it sees them
>  just fine. Also, and this is the strange part. It boots no problem, so the
>  OS is able to mount at least /dev/hda3, even though from the command line
>  I'm not seeing it. I'm probably missing something completely dead obvious
>  (it's after midnight here and all), and Google's turning up nothing, so if
>  someone could kindly slap me in the face with it, that'd be appreciated.
>  Thanks either way for whatever help comes my way.
> 
> 
>  How about /dev/sda1,2,3?
> 
> There is no /dev/sda*, either. First thing I checked.
> 

As your root-filesystem does appear to be mounted, can you give use the result 
of the "mount" command to see how it identifies the root-filesystem?

I have seen harddrive naming schemes change between kernel versions. Eg. hda 
might end up being hdb or hdc,... (same with sd.)

Alternatively, to avoid this, you could use drive-labels and configure 
/etc/fstab with these labels rather then the drive-items.

Can you also show us the dmesg-output to see if the drives are actually 
identified?
If "udev" is not running correctly, the device-nodes might not be created 
automatically.

--
Joost



Re: [gentoo-user] openvpn static ip

2010-02-26 Thread J. Roeleveld
On Friday 26 February 2010 01:39:55 Joseph wrote:
> On 02/25/10 22:17, Xavier Parizet wrote:
> >From what i can see, please try to add full path to the ccd directory in
> >client-config-dir directive on the server path. Also check permissions
> >on that directory. On which user are you running openvpn on the server ?
> >On the client ?
> 
> On client:
> drwxr-xr-x 2 root root 4096 Feb 24 18:49 ccd
> -rw-r--r-- 1 root root 45 Feb 25 12:13 syscon9
> 
> so this looks OK,

From this, it looks like the "syscon9" file is not in the ".../ccd/" 
directory?

Also, isn't this file supposed to be on the server?

> >Can you increase verbosity and see if there is no open fails on the
> >server ? If it works, you should have the following line in server logs:
> >OPTIONS IMPORT: reading client specific options from: [path to
> > ccd]/syscon9 MULTI: Learn: [192.168.139.15] -> syscon9/[ip source:port
> > source]
> 
> I've increased verbosity on server to 9
> but I can not find any phrase in the serer log file: "fails" "IMPORT"
> 
> but I've noticed this section on the server log:
> 
> ...syscon9/68.148.245.78:56172 TEST FILE '/etc/openvpn/ccd/syscon9' [0]
> ...syscon9/68.148.245.78:56172 TEST FILE '/etc/openvpn/ccd/DEFAULT' [0]
> ...syscon9/68.148.245.78:56172 MULTI: Learn: 192.168.139.2 ->
>  syscon9/68.148.245.78:56172
> 
> If I change the directory to "ccd" the log just shows:
> ...syscon9/68.148.245.78:56172 TEST FILE 'ccd/syscon9' [0]
> ...syscon9/68.148.245.78:56172 TEST FILE 'ccd/DEFAULT' [0

This seems to indicate it can't actually find the file 
"/etc/openvpn/ccd/syscon9"

This file needs to be located on the server, not on the client, as it's the 
server that determines the IP-address for the client.

--
Joost



Re: [gentoo-user] Portage GUI interfaces...

2010-02-26 Thread J. Roeleveld
On Friday 26 February 2010 15:39:52 Peter Humphrey wrote:
> On Friday 26 February 2010 12:17:11 Neil Bothwick wrote:
> > With KDE 4 you can split a single console window do display the
> > content of multiple tabs at once.
> 
> Really? I can't see how to do that. It could be useful.
> 

In the menu:
View -< Split View

Then you can choose to split it horizontally or vertically.

To undo, close the "active view"

HTH,

Joost



Re: [gentoo-user] Re: Strategy for using SAN/NAS for storage with Gentoo...

2010-03-16 Thread J. Roeleveld
On Tuesday 16 March 2010 21:13:29 Stroller wrote:
> On 16 Mar 2010, at 20:04, Neil Bothwick wrote:
> > On Tue, 16 Mar 2010 19:57:49 +, Stroller wrote:
> >> How does your system boot if your RAID1 system volume fails?
> >
> > You put GRUB on both disks, then you can boot from either on its own.
> 
> Is this reliable? I don't contest it, I'm just asking. It's just this
> was one of my considerations when choosing hardware RAID.
> 
> Stroller.
> 

This is the generally recommended method and I found this method in the Gentoo 
documentation. If this wouldn't be reliable, I would have expected this not to 
be in the docs for long.

I have /boot mirrored, not actually tested with removing a disk yet, but I am 
confident it will work.

If not, I have other methods of booting the system and getting to the data.

--
Joost



Re: [gentoo-user] no javac on gentoo amd64?

2010-04-03 Thread J. Roeleveld
On Saturday 03 April 2010 09:17:47 Xi Shen wrote:
> hi,
> 
> my system is gentoo amd 64. java-config -L show i have two VMs on my
>  system:
> 
> The following VMs are available for generation-2:
> 1)  IcedTea6-bin 1.7.1 [icedtea6-bin]
> *)  Sun JRE 1.6.0.18 [sun-jre-bin-1.6]
> 
> but when i ran javac, it says:
> 
> * javac is not available for sun-jre-bin-1.6 on x86_64
> * IMPORTANT: some Java tools are not available on some VMs on some
>  architectures
> 
> we do not have javac on amd64 system? how to fix this?
> i did not find much use information on
>  http://www.gentoo.org/doc/en/java.xml
> 

The JRE (Java Runtime Environment) only has the Runtime tools.
You need to install the JDK.

It works on my system:
**
jo...@eve ~ $ java-config -L
The following VMs are available for generation-2:
*)  Sun JDK 1.6.0.17 [sun-jdk-1.6]   

VMs marked as Build Only may contain Security Vulnerabilities and/or be EOL.
Gentoo recommends not setting these VMs as either your System or User VM.   

 
Please see http://www.gentoo.org/doc/en/java.xml#build-only for more 
information 


**
jo...@eve ~ $ eix -I jdk

 
[I] dev-java/sun-jdk

 
 Available versions:

 
(1.4)   ~*1.4.2.19-r1!f!s[1]
(1.5)   1.5.0.22-r1!s
(1.6)   1.6.0.17!s ~1.6.0.18!s ~1.6.0.18-r1!s ~1.6.0.19!s
{X alsa derby doc examples jce nsplugin odbc}
 Installed versions:  1.6.0.17(1.6)!s(09:05:13 AM 11/18/2009)(X alsa 
nsplugin -derby -doc -examples -jce -odbc)
 Homepage:http://java.sun.com/javase/6/
 Description: Sun's Java SE Development Kit

[I] virtual/jdk
 Available versions:
(1.4)   ~1.4.2-r1[1]
(1.5)   1.5.0 ~1.5.0-r1[1] ~1.5.0-r2[1]
(1.6)   1.6.0 ~1.6.0-r1[1] ~1.6.0-r2[1]
 Installed versions:  1.6.0(1.6)(09:07:44 AM 11/18/2009)
 Homepage:http://java.sun.com/
 Description: Virtual for JDK

[1] layman/java-overlay

Found 2 matches.
**
jo...@eve ~ $ javac
Usage: javac  
where possible options include:
  -g Generate all debugging info

**
jo...@eve ~ $ uname -a
Linux eve 2.6.30-gentoo-r5 #1 SMP Wed Nov 18 12:23:47 CET 2009 x86_64 AMD 
Phenom(tm) 9950 Quad-Core Processor AuthenticAMD GNU/Linux
**

HTH,

Joost Roeleveld



Re: [gentoo-user] i cannot browser if the system is up too long

2010-04-16 Thread J. Roeleveld
On Friday 16 April 2010 04:06:37 Xi Shen wrote:
> On Fri, Apr 16, 2010 at 2:55 AM, Stroller
> 
>  wrote:
> > How are you connecting to the net?
> 
> yes, i connect to the net through a router. and i share the router
> with my roommates.
> 
> > Are you sure this isn't the router? Have you tried switching it off and
> > back on again? (seriously)
> 
> i do not think so. if it is the router has the problem, all people
> using that router will suffer the same problem. but it is only me have
> this problem.

Not necessarily, it might have a limited NAT-table per host, rather then a 
single one.

> 
> > There is a tendency in BitTorrent to fill up the NAT tables of routers
> > with insufficient RAM. I cannot explain why this would appear not to
> > affect ping.
> 
> my BT client use a fix port to connect to the net, and i guess it
> cannot configure the NAT table of the router.

The NAT-table is automatically filled with all the running connections to the 
outside world.
This table is how the router keeps track of which packets need to be forwarded 
to which machine behind the NAT-router.
Not all routers clear the cache quickly enough and most have a tendency to get 
filled with these.

It's exactly because of this that I refuse to use a "plug-n-pray" router and 
use a Linux box for this purpose.

I would still try Stroller's suggestion and turn the router off and on (But 
leave your computer running). It will only affect the connection briefly and if 
it resolves the issue, it will then be clear the problem is the router.
If the problem then still exists, the issue is somewhere else and we can try 
to find it.

--
Joost



Re: [gentoo-user] Layman, Git, ... and Http-Proxies

2010-05-21 Thread J. Roeleveld
On Thursday 20 May 2010 23:24:24 Petric Frank wrote:
> Hello,
> 
> i tried to use layman (current stable version). The problem ist that i sit
> behind a proxy server which covers the http(s) protocol only. All other
>  ports are closed.
> 
> In the config file of layman (/etc/layman/...) i entered the proxy server
>  and the listening port. Then layman was able to get the list of overlays.
> 
> But if i want to get an overlay (here: x11 overlay) it starts git to get
>  it. After a while git aborts with a timeout. It seems that git does not
>  take the proxy info layman has into account.
> 
> Tried also to export the proxy:
>   export http_proxy=":"
> or
>   export http_proxy="http://:"
> 
> before executing
>   layman -a x11
> 
> but this didn't help.
> 
> How to overcome the problem ?
> 
> Does layman pass the proxy info to the executed sub-programs (i.e. cvs,
> subversion, git, ...) ?
> (it not that may be an enchancement)
> 
> regards
>   Petric
> 

Hi Petric,

I am not certain about git, but for subversion I had to set it in the 
subversion config.
On my system:
*
host ~ # cat ~/.subversion/servers | grep proxy
http-proxy-host = proxy.mydomain.com
http-proxy-port = 8080
*

I am guessing that a similar setting is required for git and others.

--
Joost



Re: [gentoo-user] Maximizing memory with 32bit

2010-06-02 Thread J. Roeleveld
On Wednesday 02 June 2010 16:00:02 Alex Schuster wrote:
> Johannes Kimmel writes:
> > On 06/02/2010 03:27 PM, Alex Schuster wrote:
> > > But: free -m shows only 2787 MB of total memory. I know I cannot use
> > > all the 4G, but shouldn't there be at least 3GB or even a little
> > > more available? What is your output of free -m?
> 
> [...]
> 
> > Probably your graphicscard uses the rest of the memory.
> 
> Oh, thanks! Did not think about this. It's an ATI Radeon HD4300 onboard
> card, so I guess this must be the cause. Seems like I will have to do the
> migration to 64bit then.
> 
>   Wonko
> 

Wonko,

If your graphics card uses up the rest of the memory, moving up to 64bit won't 
help either.

Check in your BIOS to see if you can reduce the amount your graphics card 
uses. For 'normal' desktop use, around 64MB should be more then sufficient and 
if you have 4GB physically in your system you should then see more memory 
appear.

--
Joost Roeleveld



Re: [gentoo-user] Remotely working on Gentoo systems

2010-06-07 Thread J. Roeleveld
On Tuesday 08 June 2010 02:14:55 Jake Moe wrote:
> I've got two Gentoo boxes, and would like to run X apps from both on one
> display.  From reading up on it, it appears that while this is possible,
> it's also not recommended from a security standpoint, and the few HOWTOs
> I've found for it seem to be 4-6 years old.  Can anyone tell me:

Security: Yes, it is not recommended, however, if you trust everyone who can 
connect to your network, then it is safe enough.

> a) if this is a good idea in the first place,

Depends on what you want to achieve. If you have only one screen and/or one 
machine with a decent graphics card then it does make sense.
However, X is a very inefficient protocol. Eg. it can clog the network.

> b) should I be looking at VNC instead of remote X,

Maybe, but VNC puts the remote screen in a window.

> c) is there another option I should be looking at, and

Yes :)

> d) if there is a good HOWTO on setting up whichever is the best to use
> on a recent Gentoo system?

I use X-tunneling with ssh.
To get this to work, start with trying the following:

(machineA has screen, machineB is screenless)
on machineA # ssh -Y machineB
then, on machineB, start the program you want displaying on machineA, for 
instance firefox.

This is both easier to implement and also removes the security issues as ssh 
is encrypted.

HTH,

Joost Roeleveld



Re: [gentoo-user] Remotely working on Gentoo systems

2010-06-08 Thread J. Roeleveld
On Wednesday 09 June 2010 02:04:28 Jake Moe wrote:
> On 09/06/10 09:58, Alex Schuster wrote:
> > Jake Moe writes:
> >> j...@aus10224 ~ $ ssh -Y jhb5970
> >> Password:
> >> Last login: Wed Jun  9 08:05:09 EST 2010 from 192.168.0.114 on pts/0
> >> j...@jhb5970 ~ $ firefox
> >> Error: no display specified
> >> j...@jhb5970 ~ $ konqueror
> >> konqueror: cannot connect to X server
> >> j...@jhb5970 ~ $
> >
> > Try "echo $DISPLAY", this should give something like localhost:10.0. If
> > it is empty, the forwarding did not work. I guess you have to set
> > X11Forwarding to yes in /etc/ssh/sshd_config on jhb5970, and restart ssh
> > with /etc/init.d/sshd restart. /etc/init.d/sshd reload should also work.
> >
> > Wonko
> 
> Excellent, thanks for that.  I had read about that config option, but it
> sounded like it only needed to be set if you wanted all ssh connections
> globally to have X11Forwarding turned on, or you use ssh -Y for a single
> connection.
> 
> Jake Moe
> 

The SSH-server needs to support it.
If the SSH-server does not have this option enabled (in the sshd_config), the 
"-Y" flag does not work when connecting to that server.

If you set the flag in the client-configuration (ssh_config, note, no 'D') then 
it will add the '-Y' option by default to all outgoing ssh-connection 
attempts.

Hope this makes sense?

--
Joost Roeleveld



Re: [gentoo-user] mkfs.btrfs check for bad blocks - howto

2010-06-10 Thread J. Roeleveld
On Thursday 10 June 2010 11:15:17 Helmut Jarausch wrote:
> Hi,
> 
> when creating a file system on a partition on a brand new hard disk,
> I have always used the '-c' twice to check for bad blocks.
> This works for ext3 and ext4.
> Now, I'd like to use a btrfs file system on some partitions but the
> '-c' option (to mkfs.btrfs or mkbtrfs) seems to have gone.
> What can I do about this?
> 
> Many thanks for a hint,
> Helmut.
> 

Hi Helmut,

You could either first use mkfs for ext3 or 4 to check, or you could run 
"badblock" manually over the partition first to check.

--
Joost



Re: [gentoo-user] emerge conflict

2010-08-13 Thread J. Roeleveld
On Friday 13 August 2010 14:15:59 Alan McKinnon wrote:
> On Friday 13 August 2010 16:04:53 Frank Schwidom wrote:
> > Hi
> > 
> > i get the error:
> > 
> > {
> > !!! Multiple package instances within a single package slot have been
> > pulled
> > !!! into the dependency graph, resulting in a slot conflict:
> > 
> > media-libs/libpng:0
> > 
> >   ('ebuild', '/', 'media-libs/libpng-1.4.3', 'merge') pulled in by
> >   
> > >=media-libs/libpng-1.2.43-r2:0 required by ('ebuild', '/',
> > >'x11-libs/cairo-1.8.10', 'merge')
> > >=media-libs/libpng-1.4 required by ('ebuild', '/',
> > >'x11-libs/gtk+-2.20.1-r1', 'merge')
> > 
> > (and 27 more)
> > 
> > }
> > 
> > And i wonder that it seems not to be possible to install both libs
> > (libpng-1.2.43-r2:0, libpng-1.4) in the same time. Linux is actually
> > able to manage this by the lib-version and links.
> 
> You have misread the portage output. It does not say it wants those
> versions.
> 
> It says this:
>   >=media-libs/libpng-1.2.43-r2:0
>   >=media-libs/libpng-1.4
> 
> Note the greater than or equal to.
> 
> The limiting factor to multiple versions is not Linux, it is portage.
> Portage will not co-install two versions in the same SLOT.
> 
> > Did i have overseen any gentoo switch that makes is possible? Or is
> > there any other option?
> 
> This whole libpng mess was a right royal fuck up several months ago. I
> forget the specifics but IIRC a decent solution was
> 
> emerge -C libpng
> emerge libpng
> revdep-rebuild
> 
> The last step takes some time to complete, there is a lot of fall-out to
> deal with.
> 
> As you are only hitting this now, I assume you have a stable system and are
> not using the masked versions of portage. @preserved-rebuild would save you
> lots of pain, but that feature is not available in stable versions of
> portage.
> 
> For more info, check the archives. There is more mail there about this than
> you could ever possibly want to read.

I actually hit this myself yesterday.
When emerging "libpng", it mentions a script that needs to be run. I would 
suggest running that script.

I think the following commands were the ones that led to a properly upgraded 
system. It is now working for me, but it did take quite a while.
**
emerge -vauD --newuse world
lafilefixer --justfixit
/usr/sbin/libpng-1.4.x-update.sh 
emerge -vauD --newuse world
revdep-rebuild -- -va
emerge -vauD --newuse world
**

Alternatively, you could always try to one that should always work:

emerge -vae world
(NOTE: This will rebuild _everything_)

Btw, if you are using KDE, you might, like me, also hit issues with akonadi 
not starting (I couldn't not use it anymore)
Post on the list if you hit it, I still have these fresh in my mind :)

--
Joost



Re: [gentoo-user] emerge conflict

2010-08-13 Thread J. Roeleveld
On Friday 13 August 2010 15:36:23 Daniel Wagener wrote:
> On Fri, 13 Aug 2010 15:17:50 +0200
> 
> "J. Roeleveld"  wrote:
> > On Friday 13 August 2010 14:15:59 Alan McKinnon wrote:
> > > On Friday 13 August 2010 16:04:53 Frank Schwidom wrote:
> > > > Hi
> > > > 
> > > > i get the error:
> > > > 
> > > > {
> > > > !!! Multiple package instances within a single package slot have
> > > > been pulled
> > > > !!! into the dependency graph, resulting in a slot conflict:
> > > > 
> > > > media-libs/libpng:0
> > > > 
> > > >   ('ebuild', '/', 'media-libs/libpng-1.4.3', 'merge') pulled in by
> > > >   
> > > > >=media-libs/libpng-1.2.43-r2:0 required by ('ebuild', '/',
> > > > >'x11-libs/cairo-1.8.10', 'merge')
> > > > >=media-libs/libpng-1.4 required by ('ebuild', '/',
> > > > >'x11-libs/gtk+-2.20.1-r1', 'merge')
> > > > 
> > > > (and 27 more)
> > > > 
> > > > }
> > > > 
> > > > And i wonder that it seems not to be possible to install both libs
> > > > (libpng-1.2.43-r2:0, libpng-1.4) in the same time. Linux is
> > > > actually able to manage this by the lib-version and links.
> > > 
> > > You have misread the portage output. It does not say it wants those
> > > versions.
> > > 
> > > It says this:
> > >   >=media-libs/libpng-1.2.43-r2:0
> > >   >=media-libs/libpng-1.4
> > > 
> > > Note the greater than or equal to.
> > > 
> > > The limiting factor to multiple versions is not Linux, it is
> > > portage. Portage will not co-install two versions in the same SLOT.
> > > 
> > > > Did i have overseen any gentoo switch that makes is possible? Or
> > > > is there any other option?
> > > 
> > > This whole libpng mess was a right royal fuck up several months
> > > ago. I forget the specifics but IIRC a decent solution was
> > > 
> > > emerge -C libpng
> > > emerge libpng
> > > revdep-rebuild
> > > 
> > > The last step takes some time to complete, there is a lot of
> > > fall-out to deal with.
> > > 
> > > As you are only hitting this now, I assume you have a stable system
> > > and are not using the masked versions of portage.
> > > @preserved-rebuild would save you lots of pain, but that feature is
> > > not available in stable versions of portage.
> > > 
> > > For more info, check the archives. There is more mail there about
> > > this than you could ever possibly want to read.
> > 
> > I actually hit this myself yesterday.
> > When emerging "libpng", it mentions a script that needs to be run. I
> > would suggest running that script.
> > 
> > I think the following commands were the ones that led to a properly
> > upgraded system. It is now working for me, but it did take quite a
> > while. **
> > emerge -vauD --newuse world
> > lafilefixer --justfixit
> > /usr/sbin/libpng-1.4.x-update.sh
> > emerge -vauD --newuse world
> > revdep-rebuild -- -va
> > emerge -vauD --newuse world
> > **
> > 
> > Alternatively, you could always try to one that should always work:
> > 
> > emerge -vae world
> > (NOTE: This will rebuild _everything_)
> > 
> > Btw, if you are using KDE, you might, like me, also hit issues with
> > akonadi not starting (I couldn't not use it anymore)
> > Post on the list if you hit it, I still have these fresh in my mind :)
> > 
> > --
> > Joost
> 
> This script is hopefully not the hack, that is said to be a problem in
> the future?
> 
> http://blog.flameeyes.eu/2010/06/29/stable-users-libpng-update

Eeerh
Not sure, guess I stopped reading too soon as I managed to get it to appear to 
be working...

Anyway, am currently doing a " emerge -vae world " as I want to get it all 
compiled using GCC 4.4. Guess that should 'fix' whatever damage that script 
does?

--
Joost



Re: [gentoo-user] Catch all mailbox

2009-09-09 Thread J. Roeleveld
On Wednesday 09 September 2009 22:02:25 Xavier Parizet wrote:
> Stroller a écrit :
> > On 9 Sep 2009, at 19:06, Xavier Parizet wrote:
> > ...
> > Does anyone know how I can force postfix to add the domain to the
> > search
> > query?
> 
>  Is mydomain parameter set in /etc/postfix/main.cf ?
> >>>
> >>> Yes, I believe this is necessary for postfix to actually accept emails?
> >>
> >> I don't think so.
> >
> > I believe - but I could be mistaken - that the domain must be in
> > mydestination.
>
> I agree with you. The postfix configurations files should help us more...
>
> > In my case (and by default?) that contains $mydomain
> >
> > Stroller.

I have attached the output of "postconf -n" and the main.cf and master.cf 
files.
Don't have a ldap.cf file as it's configured inside the main.cf file.

The aliases are parsed correctly, but I noticed, while researching this, that 
it doesn't seem to correctly match the users, but relies on cyrus to tell it 
if the mailbox exists or not.

And before I forget, I use fetchmail to collect the email from my ISP and 
configured fetchmail to hand it over to postfix.

As for the versions and USE-flags I use:
--
data ~ # eix -e cyrus-imapd
[U] net-mail/cyrus-imapd
 Available versions:  2.3.14 2.3.14-r3 {idled kerberos kolab nntp pam 
replication sieve snmp ssl tcpd}
 Installed versions:  2.3.14(01:34:20 07/07/09)(kerberos pam sieve ssl 
tcpd -idled -nntp -replication -snmp)
 Homepage:http://asg.web.cmu.edu/cyrus/imapd/
 Description: The Cyrus IMAP Server.

data ~ # eix -e postfix
[U] mail-mta/postfix
 Available versions:  2.5.5 2.5.7 ~2.5.9 ~2.6.5 {cdb dovecot-sasl hardened 
ipv6 ldap mailwrapper mbox mysql nis pam postgres sasl selinux ssl vda}
 Installed versions:  2.5.5(01:32:12 07/07/09)(ldap mailwrapper sasl ssl -
cdb -dovecot-sasl -hardened -ipv6 -mbox -mysql -nis -pam -postgres -selinux -
vda)
 Homepage:http://www.postfix.org/
 Description: A fast and secure drop-in replacement for sendmail.

data ~ # eix -e openldap
[I] net-nds/openldap
 Available versions:  2.3.41 ~2.3.41-r1 2.3.43 ~2.3.43-r1 ~2.4.16 ~2.4.17 
~2.4.17-r1 {berkdb crypt cxx debug experimental gdbm gnutls icu iodbc ipv6 
kerberos minimal odbc overlays perl samba sasl selinux slp smbkrb5passwd ssl 
syslog tcpd}
 Installed versions:  2.3.43(01:25:35 07/07/09)(berkdb crypt kerberos 
samba sasl ssl tcpd -debug -gdbm -ipv6 -minimal -odbc -overlays -perl -selinux 
-slp -smbkrb5passwd)
 Homepage:http://www.OpenLDAP.org/
 Description: LDAP suite of application and development tools
--

Thanks,

Joost
set postmaster "shared+admin.Hoshidomains.data.mail.Fetchmail"
set no bouncemail
set no spambounce
set properties ""
# set daemon 300

poll pop.isp.net localdomains example.com envelope X-Envelope-To user 'catch'  
with password '' to * here

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==
# service type  private unpriv  chroot  wakeup  maxproc command + args
#   (yes)   (yes)   (yes)   (never) (100)
# ==
smtp  inet  n   -   n   -   -   smtpd
#submission inet n   -   n   -   -   smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
smtps inet  n   -   n   -   -   smtpd
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_reject_unlisted_sender=yes
   -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
   -o broken_sasl_auth_clients=yes
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628  inet  n   -   n   -   -   qmqpd
pickupfifo  n   -   n   60  1   pickup
cleanup   unix  n   -   n   -   0   cleanup
qmgr  fifo  n   -   n   300 1   qmgr
#qmgr fifo  n   -   n   300 1   oqmgr
tlsmgrunix  -   -   n   1000?   1   tlsmgr
rewrite   unix  -   -   n   -   -   trivial-rewrite
bounceunix  -   -   n   -   0   bounce
defer unix  -   -   n   -   0   bounce
trace unix  -   -   n   -   0   bounce
verifyunix  -   -   n   -   1   verify
flush unix  n   -   n   1000?   0   flush
proxymap  unix  -   -   n   -   -   proxymap
proxywrite unix -   -   n   -   

Re: [gentoo-user] Re: Gentoo Virtualization

2009-09-10 Thread J. Roeleveld
On Wednesday 09 September 2009 14:35:41 Peter Humphrey wrote:
> On Tuesday 08 September 2009 18:56:50 walt wrote:
> > Are you seeing something very different at your end?
>
> Yes. I've created just one VM (this is on my KDE-4 test system). On the
> Details tab I get a list of configuration variables with their values.
> Under CD/DVD ROM I have "Mount CD/DVD drive" selected, and the "Host CD/DVD
> drive" drop-down box contains just the one entry: /dev/fd0.
>
> That's why I said I can't install a guest OS - the VM can't read the
> installation CD. Have I to make an ISO from the CD and mount that? Seems
> like a bit of a roundabout route if so.

In addition to the screenshot, using Linux it's very easy to create an ISO-file 
from an existing CD/DVD.
I always do it with:
# cp /dev/cdrom /bladiebla.iso
(change paths / names as appropriate)

No need to install additional software to do this and I have succesfully used 
this to create ISO images from MS Windows install media as well for use with 
both VirtualBox and VMWare.

--
Joost



Re: [gentoo-user] Re: Gentoo Virtualization

2009-09-10 Thread J. Roeleveld
On Thursday 10 September 2009 12:04:52 Peter Humphrey wrote:
> On Thursday 10 September 2009 09:45:46 J. Roeleveld wrote:
> > In addition to the screenshot, using Linux it's very easy to create an
> > ISO-file from an existing CD/DVD.
> > I always do it with:
> > # cp /dev/cdrom /bladiebla.iso
> > (change paths / names as appropriate)
> >
> > No need to install additional software to do this and I have succesfully
> > used this to create ISO images from MS Windows install media as well for
> > use with both VirtualBox and VMWare.
>
> This is indeed strange - to make an ISO of a CD-ROM and install from that.
> I'll try it and see what happens. Thanks to you and Walt.

This is an easy way to install software that, when unpacked, is larger then a 
DVD, but don't want to copy it to the local drive every time.
I have a few ISO-images of around 14Gig with software on it. Just connect that 
to the virtual machine and install from there. :)

--
Joost



Re: [gentoo-user] [OT] Dell XPS16 for Christmas?

2009-11-20 Thread J. Roeleveld
On Sunday 15 November 2009 19:39:40 Mick wrote:
> I have been thinking of buying this laptop and was looking at the Gentoo
>  Wiki which shows relatively good hardware compatibility, except for the
>  radeon card which is now an older offering:
> 
> http://en.gentoo-wiki.com/wiki/Dell_Studio_XPS_16
> 
> The current spec on the UK Dell website shows 1GB ATI® Radeon™ HD 4670 (see
> below).
> 
> PROCESSOR:Intel® Core™ i7 Processor 720QM (1.60Ghz, 6MB cache)
> LCD:  Black Leather back cover : 15.6" (inch) Truelife 1080p Full HD WLED
>  Edge to Edge Display
> MEMORY:   4096MB 1333MHz Dual Channel DDR3 SDRAM [2x2048]
> HARD DRIVE:   500GB (7,200rpm) Free Fall Sensor Hard Drive
> PRIMARY BATTERY:  9-cell 85Whr Lithium Ion battery
> OPTICAL DRIVE:Internal Blu-Ray ROM (Blu-Ray read, DVD and CD read & 
> Write)
> Optical Drive
> GRAPHICS CARD:1GB ATI® Radeon™ HD 4670 graphics card
> WIRELESS CONNECTIVITY:Dell Wireless 1397 Mini Card (802.11 b/g)
> BLUETOOTH:Dell Wireless 370 Bluetooth Module
> 
> 
> According to these links the RadeonHD driver is experimental:
> http://wiki.x.org/wiki/radeon
> http://wiki.x.org/wiki/radeonhd%3Aexperimental_3D
> 
> Does anyone have experience with this driver, or better yet, this laptop?
> Shall I buy or shall I shy away from it?
> 

Most Dell-laptops actually work quite nicely with Linux, however, be aware 
that DELL has issues with the harddrives they supply.
I've seen 6 different recent DELL-laptops with crashed harddrives in the past 
1.5 years. These laptops were handled carefully.

Response from Dell was: "Sorry, we shipped a wrong batch"

I would suggest frequent backups of important files and/or the harddrive 
swapped for a more reliable model.

--
Joost



Re: [gentoo-user] [OT] Dell XPS16 for Christmas?

2009-11-20 Thread J. Roeleveld
On Friday 20 November 2009 17:43:20 Paul Hartman wrote:
> On Fri, Nov 20, 2009 at 6:16 AM, Mick  wrote:
> > 2009/11/20 J. Roeleveld :
> >> On Sunday 15 November 2009 19:39:40 Mick wrote:
> >>> I have been thinking of buying this laptop and was looking at the
> >>> Gentoo Wiki which shows relatively good hardware compatibility, except
> >>> for the radeon card which is now an older offering:
> >>>
> >>> http://en.gentoo-wiki.com/wiki/Dell_Studio_XPS_16
> >>>
> >>> The current spec on the UK Dell website shows 1GB ATI® Radeon™ HD 4670
> >>> (see below).
> >>> 

> >>> PROCESSOR:Intel® Core™ i7 Processor 720QM (1.60Ghz, 6MB cache)
> >>> LCD:  Black Leather back cover : 15.6" (inch) Truelife 1080p Full HD
> >>> WLED Edge to Edge Display
> >>> MEMORY:   4096MB 1333MHz Dual Channel DDR3 SDRAM [2x2048]
> >>> HARD DRIVE:   500GB (7,200rpm) Free Fall Sensor Hard Drive
> >>> PRIMARY BATTERY:  9-cell 85Whr Lithium Ion battery
> >>> OPTICAL DRIVE:Internal Blu-Ray ROM (Blu-Ray read, DVD and CD
> >>> read & Write) Optical Drive
> >>> GRAPHICS CARD:1GB ATI® Radeon™ HD 4670 graphics card
> >>> WIRELESS CONNECTIVITY:Dell Wireless 1397 Mini Card (802.11 b/g)
> >>> BLUETOOTH:Dell Wireless 370 Bluetooth Module
> >>> 

> >>>
> >>> According to these links the RadeonHD driver is experimental:
> >>> http://wiki.x.org/wiki/radeon
> >>> http://wiki.x.org/wiki/radeonhd%3Aexperimental_3D
> >>>
> >>> Does anyone have experience with this driver, or better yet, this
> >>> laptop? Shall I buy or shall I shy away from it?
> >>
> >> Most Dell-laptops actually work quite nicely with Linux, however, be
> >> aware that DELL has issues with the harddrives they supply.
> >> I've seen 6 different recent DELL-laptops with crashed harddrives in the
> >> past 1.5 years. These laptops were handled carefully.
> >>
> >> Response from Dell was: "Sorry, we shipped a wrong batch"
> >>
> >> I would suggest frequent backups of important files and/or the harddrive
> >> swapped for a more reliable model.
> >
> > Thanks guys - the hard drive story sounds scary!  Was there a
> > particular batch of a particular hard drive manufacturer that was
> > suspect here?
> 
> I think you could mention any brand of hard drive and people would
> have horror stories about it. Hard drives are like airplanes; they
> tend to fail spectacularly. The good news is that if you had to choose
> one part of a laptop to go bad, the hard drive would probably be the
> easiest piece to replace (or maybe RAM). Certainly better than a trend
> of failing display panels!

In this case they were Seagates, but as mentioned, all manufacturers make 
mistakes.
The last Dell that had a crashed harddrive (after 3 months of use, 2 weeks 
ago) had a Seagate - ST9160823ASG.

> I've owned a couple Dell computers personally and overseen dozens of
> them at work and they are generally good value and perform without
> issues. Their business division's customer service (at least a few
> years ago) was pretty good, they would send someone to our office the
> next morning to fix the problem.

These were for a business customer (A big one) and all Dell offered was 
sending replacement drives to the seperate users' homes or their nearest 
offices.

> I would also check out the Asus G51J-A1 which is a similar set-up to
> the Dell. It seems to be a good package for the price too.

Getting into the preferences of brands here, so I will refrain from 
commenting.
One thing to still keep in mind, Asus does not really care about Linux users 
either. Is there a decent laptop-brand that actually does?

--
Joost



Re: [gentoo-user] [OT] Need advice from people who use non-ascii all day long

2009-12-15 Thread J. Roeleveld
On Thursday 03 December 2009 20:20:03 fe...@crowfix.com wrote:
> I have a project which requires normalizing names, and by that, I mean
> converting to lower case etc, whatever eliminates redundancies.  I
> know Unicode has a different "normalize" meaning, but for my purposes,
> that has already been done.  Maybe I should call it standardization or
> make up a new cromulent word.
> 
> By which I really mean I am confused by a lot of advice I have gotten
> from USAians who get by with the good old 7 bit ASCII character set on
> a daily basis, whether it be written in Unicode or not.
> 
> One of the puzzles to me is all the accented chars.  Umlauts, etc.  I
> am not trying to convert names for permanent purposes but for internal
> comparison.  In Germany is a district "Busingen", with an umlauted
> 'u'.  Is it reasonable to consider it the same word whether with or
> without the unlauted u?  French has the cedilla and acute and grave
> accents.  Spanish has the tilde n.  Scandinavian languages (all?
> some?) have the o with a slash.
> 
> Or put another way, I don't know much about German, French, Spanish,
> etc keyboards.  Do your keyboards have any of the extra keys, all of
> them?  Are German keyboards and French and Spanish keyboards as
> restricted to their own languages as US keyboards are?  If you have to
> hit two or three keys to keep the umlauts, accents, and tildes, do you
> get lazy sometimes and type the base character by itself?  Is it even
> considered the base character, or is it considered lazy and sloppy,
> much as I get complaints about typing "thru" because "through" is too
> much trouble?
> 
> I need something the equivalent of the C function strcasecmp() which
> not only ignores case, but all other differences without distinction,
> whatever they may be.  If leaving off umlauts horrifies academics and
> purists but is what people do in the real world, I want to take that
> into consideration, so that if one person uses the ummlaut and another
> doesn't, it won't generated two separate entries.  But if leaving off
> the umlaut or accent is a distinct place name, then I can't do that --
> but if real world people do that and live with the confusion, then I
> guess I have to make a different choice.
> 
> Yes, I am something of an ignorant American.  I know some Japanese,
> French, and Spanish, but not the details of everyday usage.  I'd like
> to learn.
> 
Hi Felix,

Apart from what was already mentioned, you might want to also consider the 
following:

1) Even though people tend to try to do it correctly, non-natives can still 
make mistakes with the names. These mistakes are frowned upon by the natives, 
but are a part of live.

2) Names of cities can change with time, example:
"New York" used to be called "Nieuw Amsterdam" (Or "New Amsterdam" in english)

3) Some cities have multiple valid spellings in the same language:
The Hague = "Den Haag" or " 's Gravenhage" (yes, the apostrofe before the "s" 
is part of the second version of the name)

An easier option might be to filter on the post-codes, these should be unique 
and if you put the countries international abreviation in front of it, like 
so: "NL-1234 AA" or "D-12345", you have a single field to check and then link 
the actual city-name to the postcode area.

Disclaimer: I have no clue if these 2 postcodes actually exist

--
Joost



[gentoo-user] Raid 5 creation is slow - Can this be done quicker?

2010-02-01 Thread J. Roeleveld
Hi All,

I am currently installing a new server and am using Linux software raid to 
merge 6 * 1.5TB drives in a RAID5 configuration.

Creating the RAID5 takes over 20 hours (according to " cat /proc/mdstat ")

Is there a way that will speed this up? The drives are new, but contain random 
data left over from some speed and reliability tests I did. I don't care about 
keeping the current 'data', as long as when the array is reliable later.

Can I use the " --assume-clean " option with mdadm and then expect it to keep 
working, even through reboots?
Or is this a really bad idea?

Many thanks,

Joost Roeleveld



Re: [gentoo-user] Raid 5 creation is slow - Can this be done quicker?

2010-02-01 Thread J. Roeleveld
On Monday 01 February 2010 14:20:28 Stroller wrote:
> On 1 Feb 2010, at 11:58, J. Roeleveld wrote:
> > ...
> > I am currently installing a new server and am using Linux software
> > raid to
> > merge 6 * 1.5TB drives in a RAID5 configuration.
> >
> > Creating the RAID5 takes over 20 hours (according to " cat /proc/
> > mdstat ")
> >
> > Is there a way that will speed this up? The drives are new, but
> > contain random
> > data left over from some speed and reliability tests I did. I don't
> > care about
> > keeping the current 'data', as long as when the array is reliable
> > later.
> >
> > Can I use the " --assume-clean " option with mdadm and then expect
> > it to keep
> > working, even through reboots?
> > Or is this a really bad idea?
> 
> It wasn't my intention to chide you - I don't use software RAID
> myself, and your question piqued my curiosity - but the first three
> Google hits for "assume-clean" indicate that this isn't safe to use
> with RAID5.
> 
> The 4th Google hit contains an extract from the manpage:
> 
>... It can
>also be used when creating a RAID1 or RAID10 if you want
>to avoid the initial resync, however this practice --
>while normally safe -- is not recommended. Use this
>only if you really know what you are doing.

I did find the same results on Google, but not really a proper explanation as 
to why it's a "bad idea". Unfortunately, my budget doesn't extend to a 
hardware raid solution. (The cheap cards offload it to the CPU anyway and are 
generally considered slower in various benchmarks)

> I kinda expected this 20 hours to be spent verifying that the disks
> contain no bad sectors, which would really hose you if it were the case.

True, but I already ran "badblocks" twice on each disk to verify that the 
disks are fine. (No badblocks found).

> But OTOH, 20 hours does not seem an outrageous amount of time for
> building a 7.5TB array. You're not going to do this often, and you
> want it done right.

Good point, and I agree, which is why I will let it finish it's course, but I 
also expected it could be done quicker.

> It would be interesting to know whether hardware RAID would behave any
> differently or allow the sync to perform in the background. I have
> only 1.5TB in RAID5 across 4 x 500gb drives at present; IIRC the
> expansion from 3 x drives took some hours, but I can't recall the
> initial setup.

I'm hoping someone with more knowledge about RAID-systems can throw in his/her 
2cents.

Thanks,

Joost



Re: [gentoo-user] [obscenely OT] A good SMTP server?

2009-07-08 Thread J. Roeleveld
On Tuesday 07 July 2009 19:49:46 brullo nulla wrote:
> On Tue, Jul 7, 2009 at 4:19 PM, Neil Bothwick wrote:
> > On Tue, 7 Jul 2009 15:56:33 +0100, brullo nulla wrote:
> >> Since when I live in UK, I have troubles with my SMTP servers. It
> >> seems that everyone has the "nice" habit of changing my header/sender.
> >> At least:
> >> - The Virginmedia one changes the sender with its own mail address
> >> - The Gmail one does the same.
> >
> > Virgin and Google are not everyone, no matter how hard they try to be.
>
> I know, but they are the two from which I know I can get an SMTP
> service: one because is my provider, the other because I have several
> gmail accounts.
>
> Yet, I agree that "everyone" is an exaggeration due to poor sampling.
> But when I was in Italy, no ISP SMTP dared to mess with my email
> fields.
>
> Where are the good ones?
>
> thanks!

Hi,

Not sure if this will help, but when I was living in the UK, I used "adsl24" 
for my internet connection. Before that, I used ntl (taken over by virgin...)

I have always been using my own SMTP server, using the ISP-SMTP server as the 
relay-host.

Not sure if virgin changed the settings after taking over NTL, but with them, 
my 'from' address was never changed. Would be difficult as I would not actually 
log-in to their SMTP server.
Maybe setting up your local SMTP-server using the virgin one as a relay might 
solve your issue?

FYI: I use postfix for this and have the following in the "main.cf" file:
--
relayhost = []
--

Hope this helps,

Joost

PS. I am not in any way affiliated with adsl24, but they are quite cheap and 
are 
clued up about Linux



Re: [gentoo-user] Windows-only wireless AP?

2009-07-08 Thread J. Roeleveld
On Tuesday 07 July 2009 10:37:36 Alan McKinnon wrote:
> On Tuesday 07 July 2009 10:34:07 Grant wrote:
> > I'm trying to connect to a WPA2 wireless router via wicd, but I can't
> > get past the authentication.  The owner insists the password is
> > correct.  I've spoken to the administrator and I was told the router
> > will connect Windows systems, some Mac systems, but no Linux systems.
> > Does this amount to the typical "Linux is not supported" response, or
> > could a router actually not work with Linux clients?
> >
> > I've also tried to connect via /etc/init.d/net.wlan0 and
> > wpa_supplicant, but I can't get much information about how it's
> > failing because it is backgrounded.  Could net.wlan0 work even though
> > wicd fails, and if so, how can I get more info from net.wlan0?
>
> It's hard to see how a wireless router could bring that about without
> changing how WPA2 works (then it isn't really WPA2 anymore is it?). It's a
> standard protocol.
>
> WPA2 does work with wicd - are you getting anything in the logs at all
> using both methods?

Take the following with the usual grain of salt.
I don't use WPA myself, but I have seen issues with WEP-passwords where not 
all systems convert it to the hash-value in the same way.

Try using the HEX-value for the WPA password rather then the "plain-text" 
version.

Thanks,

Joost

ps. WEP is "ok" if you run a VPN over it :)



Re: [gentoo-user] CUPS and old java (commercial software)

2009-07-08 Thread J. Roeleveld
On Wednesday 08 July 2009 16:47:57 Helmut Jarausch wrote:
> Hi,
>
> I'm in need to use some commercial software (Matlab and Maple) which
> come with their own (probably old) version of Java.
>
> Now, both of those software packages cannot print, they don't see any
> CUPS printer UNLESS I remove the symlink /usr/lib/libcups.so which
> points to libcups.so.2
>
> But some GenToo packages do need that link, e.g. x11-lib/qt-gui won't
> install unless that link is there.
>
> I remember there is a bug with older versions of Java accessing CUPS,
> and probably my commercial packages contain such an old version.
>
> Does anybody know how to fix or circumvent this.
> (Currently I have to remove the symlink when using one of these
> commercial packages and reinstall it afterwards, but ... for a normal
> user without root priviledges that's not possible unless I write an SUID
> script)
>
> Thanks for any hints,

Just an idea, not tested:

Is there another "libcups.so" file somewhere?
If yes, create a wrapper-script that puts the location of the other 
"libcups.so" file first in the search list for the LDPATH-variable.

HTH,

Joost



Re: [gentoo-user] Need advice in selecting a mail server

2009-07-08 Thread J. Roeleveld
On Monday 06 July 2009 23:01:13 Michael Sullivan wrote:
> I have three boxes (baby, camille, and catherine) in my LAN, and for
> some reason (this was years ago) I set up an exim server on each of
> them.  camille and catherine were supposed to forward their mail to
> baby, which has a working dovecot server.  Now, nothing from catherine
> is going through, and only mail sent from cron on camille is going
> through, and everything on baby is being delivered.  Some time a couple
> of years ago my daily logwatch reports stopped coming (all of them) and
> earlier this year my portage elogs stopped getting mailed to me.  I
> would like to replace all of them with something simple (like ssmtp),
> but I'm not sure what the setup on baby needs to be so that I can still
> access my hundreds of saved emails on the dovecot server.  Every time
> emerge on camille or catherine tries to send an elog I get the 451
> error.  I can't seem to find the attempts in the log files.  Anyway, can
> I use ssmtp on baby to receive/store network mail, or do I need
> something extra like exim/sendmail?

I believe you are maybe mixing up 2 things.
A SMTP-server accepts emails on port 25 and sends it on to another server, 
either another SMTP server or a mail-store (for instance cyrus or dovecot)

I don't think ssmtp actually listens on port 25, but only sends email to a 
SMTP server that does listen on port 25. (ports can be configured, but 25 is 
the default SMTP-port)

I actually use something similar:
ssmtp on the servers
postfix on my mail server

ssmtp is configured to pass all email to the postfix server on my mail server.
postfix is configured to either pass email on to my ISP (for outgoing email) or 
pass it to cyrus to store it on the mail server to allow my mail client to 
access it via IMAP. (POP3 is also possible, but disabled on my system)

In other words, you need  something like exim/sendmail/postfix/... on 'baby' to 
receive and store the email.
The other machines only need something like "ssmtp" to send email to 'baby'.

HTH,

Joost



Re: [gentoo-user] [obscenely OT] A good SMTP server?

2009-07-08 Thread J. Roeleveld
On Wednesday 08 July 2009 17:26:04 brullo nulla wrote:
> > Hmmm, I run my own postfix, but I use the virgin SMTP server as a relay
> > host. I don't get my email addresses mangled
>
> I don't think this is a solution. I am using a laptop, and how can I
> reach my postfix server (assuming that I have another machine to use
> as it, which I don't have) from everywhere?
>
> In any case it is kinda insane that one has to build a SMTP server to
> workaround this.

You could try setting up and configuring ssmtp on your laptop.
But as soon as you login to an SMTP server, the SMTP server knows which email 
to paste in

I actually use VPN to connect to my mail server at home. (never trust the ISP 
ones)

--
Joost



Re: [gentoo-user] Network message encryption

2009-08-21 Thread J. Roeleveld
On Monday 17 August 2009 16:53:43 Xianwen Chen wrote:
> Hi Dale,
>
> On 8/17/09, Dale  wrote:
> > According to the USE flags, it appears that Kopete supports encryption.
> > I have no clue how good it is or if this is exactly what you are looking
> > for but you may want to look into it.
>
> Yes, Kopete supports encryption. Thanks for the information. However,
> I need to use QQ protocal, which isn't right now supported by Kopete.

Actually, Kopete does support QQ:

[ebuild   R   ] kde-base/kopete-4.2.4-r1  USE="addbookmarks alias autoreplace 
contactnotes handbook highlight history jabber msn nowlistening oscar otr 
pipes privacy qq ssl statistics texteffect translator urlpicpreview yahoo (-
aqua) -bonjour -debug -gadu -groupwise -jingle (-kdeprefix) -latex -meanwhile -
testbed -webpresence -winpopup" 0 kB

But you may need to unmask this version.

--
Joost



[gentoo-user] How to have init-scripts 'wait' for other servers

2009-09-04 Thread J. Roeleveld
Hi all,

Does anyone know if an existing method to have init-scripts on server A wait 
for a service on server B to be started?

Reason for this:
I have one server containing all the databases, one that operates as a NAS and 
the DNS is running on server 3.
In order for the different machines to start correctly, I need to configure it 
that server 3 starts the DNS before the other machines try to access other 
machines (don't want to maintain hosts-files as it all works fine once the 
servers are up and running)

Also need to make sure the database and NAS is running before the webserver 
starts.

I tried to google for it, but I can't find a usefull search string that will 
give me anything usefull.

I don't mind reqriting init-scripts for this, but am looking for a way to 
check if services are up and running from within the init-scripts.

Thanks,

Joost Roeleveld



Re: [gentoo-user] How to have init-scripts 'wait' for other servers

2009-09-04 Thread J. Roeleveld
On Friday 04 September 2009 11:23:09 Willie Wong wrote:
> On Fri, Sep 04, 2009 at 10:51:14AM +0200, Penguin Lover J. Roeleveld 
squawked:
> > Does anyone know if an existing method to have init-scripts on server A
> > wait for a service on server B to be started?
>
> I have no idea if this would work or not. But have you tried writing a
> init script that does nothing but polls for the service and only
> exits when succeeds? Then you can edit the scripts for the dependent
> services to require it to start after your polling script.

I have been thinking of something similar, but before starting to write this 
myself, I wanted to double check if anyone has a better idea and/or already 
knows of a set of scripts/tools that already implement this.

> Something like: script /etc/init.d/foo polls tries for database
> connection. Inside it is a time-delayed loop that tries until it
> succeeds. Edit /etc/init.d/apache (assuming you are using it for your
> webserver) to 'need foo'

Or, obviously, fails if it doesn't come up within a certain (configurable) 
time.

> Again, I am just throwing this out randomly. Let me know if it works
> at all ;p

If there is no existing set of scripts, I will share whatever I come up with.

> Best of luck,

Thanks,

Joost



Re: [gentoo-user] How to have init-scripts 'wait' for other servers

2009-09-04 Thread J. Roeleveld
On Friday 04 September 2009 12:44:33 Carlos wrote:
> J. Roeleveld a écrit :
> > Hi all,
> >
> > Does anyone know if an existing method to have init-scripts on server A
> > wait for a service on server B to be started?
> >
> > Reason for this:
> > I have one server containing all the databases, one that operates as a
> > NAS and the DNS is running on server 3.
> > In order for the different machines to start correctly, I need to
> > configure it that server 3 starts the DNS before the other machines try
> > to access other machines (don't want to maintain hosts-files as it all
> > works fine once the servers are up and running)
> >
> > Also need to make sure the database and NAS is running before the
> > webserver starts.
> >
> > I tried to google for it, but I can't find a usefull search string that
> > will give me anything usefull.
> >
> > I don't mind reqriting init-scripts for this, but am looking for a way to
> > check if services are up and running from within the init-scripts.
> >
> > Thanks,
> >
> > Joost Roeleveld
>
> Monit may be able to meet your needs and reduce the amount of work you'd
> have to do to script this up yourself.
>
> http://mmonit.com/monit/
>
> An advantage of not touching the init scripts is that you don't have to
> maintain patches or deal with merge prompts when a package updates it's
> init script.
>
> Regards,
> Carlos

I will have a look at this. From the website it looks like it should be able 
to do most of what I need.
Might need to reconfigure a few things (like not starting all services using 
the 'normal' method, but I can live with that as long as monit can still tell 
me what is running and what isn't...

(added bonus, it's in portage: app-admin/monit )

Thanks,

Joost




Re: [gentoo-user]

2009-09-04 Thread J. Roeleveld
On Friday 04 September 2009 13:47:51 Cinder Cinder wrote:
> Wow! I made it! I'm in! Just installed my first Gentoo (Phew!). Its cool!
> I'm up to part 2 of the Gentoo Linux x86 Handbook "Working With Gentoo" and
> I've managed to install a few things, namely vim, links, and xorg-server
> (As per the Xorg server Configuration Guide) in addition the some essential
> tools mentioned in the Handbook. I tried to install xfce4-meta (Xfce
> Configuration Guide)
>
> code:
> # emerge -avt xfce4-meta
>
> ... and was informed that I need to add +jpeg to my USE flags. So I did
> (minus the plus sign:) Then emerge said some packages are blocking each
> other. I tried unmerging the blocking packages as per the Handbook. but
> they don't seem to be installed yet, so that seems to rule out updating
> them. The Handbook says if two yet to be installed packages are blocking
> each other I should file a bug report. I don't understand bug reporting
> yet. I tried updating the system.
>
> Code:
> # emerge --update --deep world
>
> ... but I get the same meassage. Can anyone help? Heres my /etc/make.conf
>



Can you paste the exact output you get when you run:

# emerge -va --update --deep world
the "-va" will make the output verbose and will ask for confirmation if all 
dependencies can be resolved correctly.
(might be usefull to always use that to double check what you are installing)

--
Joost



[gentoo-user] Catch all mailbox

2009-09-09 Thread J. Roeleveld
Hi All,

I know this is probably off-topic, but I'm hopefull someone on this list knows 
how to do this.

My current situation:
Postfix gets an email delivered for user X
Postfix passes this to cyrus (lmtp-transport)
if user X does not exist within cyrus, the email gets bounced.

I would like this bounced email to be delivered to a seperate cyrus email 
folder.

I tried to find the answer on google, but all the solutions I found either only 
work with the postfix local delivery agent (eg. not compatible with cyrus) or 
requires a list to be maintained using all the known email-boxes.

I prefer a fall-back solution where an email directed at a user not listed in 
either the alias table (stored in ldap) or not known to cyrus is redirected to 
a specific cyrus mailbox.

Many thanks,

Joost Roeleveld



Re: [gentoo-user] Catch all mailbox

2009-09-09 Thread J. Roeleveld
On Wednesday 09 September 2009 14:26:50 Neil Bothwick wrote:
> On Wed, 9 Sep 2009 13:54:33 +0200, J. Roeleveld wrote:
> > if user X does not exist within cyrus, the email gets bounced.
> >
> > I would like this bounced email to be delivered to a seperate cyrus
> > email folder.
>
> Set luser_relay in /etc/postfix/main.cf. You need to create a valid user
> for it to point to, then all mail for non-existent users will go to that
> mailbox.

This does not work, "luser_relay" only works with the "local" delivery agent.
When using Cyrus, this has been changed to the cyrus lmtp delivery agent.

--
Joost



Re: [gentoo-user] Catch all mailbox

2009-09-09 Thread J. Roeleveld
On Wednesday 09 September 2009 14:19:45 Xavier Parizet wrote:
> J. Roeleveld a écrit :
> > Hi All,
> >
> > I know this is probably off-topic, but I'm hopefull someone on this list
> > knows how to do this.
> >
> > My current situation:
> > Postfix gets an email delivered for user X
> > Postfix passes this to cyrus (lmtp-transport)
> > if user X does not exist within cyrus, the email gets bounced.
> >
> > I would like this bounced email to be delivered to a seperate cyrus email
> > folder.
> >
> > I tried to find the answer on google, but all the solutions I found
> > either only work with the postfix local delivery agent (eg. not
> > compatible with cyrus) or requires a list to be maintained using all the
> > known email-boxes.
> >
> > I prefer a fall-back solution where an email directed at a user not
> > listed in either the alias table (stored in ldap) or not known to cyrus
> > is redirected to a specific cyrus mailbox.
>
> A solution could be doing a catch-all alias (see [1]) :
> if your domain is example.com, then add an alias mapping @example.com to
> oneaddr...@example.com either using virtual alias or /etc/postfix/aliases .
>
> HTH.
>
> [1] http://www.postfix.org/VIRTUAL_README.html

I did notice this option, but it would require me to duplicate the alias table 
into a alias file. I tried setting a "@" entry in my ldap-tree, but 
this did not work.

Thanks,

Joost



Re: [gentoo-user] Catch all mailbox

2009-09-09 Thread J. Roeleveld
On Wednesday 09 September 2009 14:49:37 Xavier Parizet wrote:
> J. Roeleveld a écrit :
> > On Wednesday 09 September 2009 14:19:45 Xavier Parizet wrote:
> >> J. Roeleveld a écrit :
> >>> Hi All,
> >>>
> >>> I know this is probably off-topic, but I'm hopefull someone on this
> >>> list knows how to do this.
> >>>
> >>> My current situation:
> >>> Postfix gets an email delivered for user X
> >>> Postfix passes this to cyrus (lmtp-transport)
> >>> if user X does not exist within cyrus, the email gets bounced.
> >>>
> >>> I would like this bounced email to be delivered to a seperate cyrus
> >>> email folder.
> >>>
> >>> I tried to find the answer on google, but all the solutions I found
> >>> either only work with the postfix local delivery agent (eg. not
> >>> compatible with cyrus) or requires a list to be maintained using all
> >>> the known email-boxes.
> >>>
> >>> I prefer a fall-back solution where an email directed at a user not
> >>> listed in either the alias table (stored in ldap) or not known to cyrus
> >>> is redirected to a specific cyrus mailbox.
> >>
> >> A solution could be doing a catch-all alias (see [1]) :
> >> if your domain is example.com, then add an alias mapping @example.com to
> >> oneaddr...@example.com either using virtual alias or
> >> /etc/postfix/aliases .
> >>
> >> HTH.
> >>
> >> [1] http://www.postfix.org/VIRTUAL_README.html
> >
> > I did notice this option, but it would require me to duplicate the alias
> > table into a alias file. I tried setting a "@" entry in my
> > ldap-tree, but this did not work.
>
> If you use LDAP as a virtual backend, then [1] will then be a better place
> to look. Setting mailacceptinggeneralid ldap attribute to @ seems
> to be the solution (if you use "standard" LDAP scheme).
>
> HTH.
>
> [1] http://www.postfix.org/LDAP_README.html#example_virtual

I tried this, but when looking at the ldap logs, I notice that the 'domain' 
part does not exist in the search string.
Eg. '%s' only shows the user, '%d' is empty, eg. query is ignored

Does anyone know how I can force postfix to add the domain to the search query?

Thanks,

Joost



Re: [gentoo-user] Catch all mailbox

2009-09-09 Thread J. Roeleveld
On Wednesday 09 September 2009 16:56:28 Xavier Parizet wrote:
> J. Roeleveld a écrit :
> > On Wednesday 09 September 2009 14:49:37 Xavier Parizet wrote:
> >> J. Roeleveld a écrit :
> >>> On Wednesday 09 September 2009 14:19:45 Xavier Parizet wrote:
> >>>> J. Roeleveld a écrit :
> >>>>> Hi All,
> >>>>>
> >>>>> I know this is probably off-topic, but I'm hopefull someone on this
> >>>>> list knows how to do this.
> >>>>>
> >>>>> My current situation:
> >>>>> Postfix gets an email delivered for user X
> >>>>> Postfix passes this to cyrus (lmtp-transport)
> >>>>> if user X does not exist within cyrus, the email gets bounced.
> >>>>>
> >>>>> I would like this bounced email to be delivered to a seperate cyrus
> >>>>> email folder.
> >>>>>
> >>>>> I tried to find the answer on google, but all the solutions I found
> >>>>> either only work with the postfix local delivery agent (eg. not
> >>>>> compatible with cyrus) or requires a list to be maintained using all
> >>>>> the known email-boxes.
> >>>>>
> >>>>> I prefer a fall-back solution where an email directed at a user not
> >>>>> listed in either the alias table (stored in ldap) or not known to
> >>>>> cyrus is redirected to a specific cyrus mailbox.
> >>>>
> >>>> A solution could be doing a catch-all alias (see [1]) :
> >>>> if your domain is example.com, then add an alias mapping @example.com
> >>>> to oneaddr...@example.com either using virtual alias or
> >>>> /etc/postfix/aliases .
> >>>>
> >>>> HTH.
> >>>>
> >>>> [1] http://www.postfix.org/VIRTUAL_README.html
> >>>
> >>> I did notice this option, but it would require me to duplicate the
> >>> alias table into a alias file. I tried setting a "@" entry in
> >>> my ldap-tree, but this did not work.
> >>
> >> If you use LDAP as a virtual backend, then [1] will then be a better
> >> place to look. Setting mailacceptinggeneralid ldap attribute to
> >> @ seems to be the solution (if you use "standard" LDAP scheme).
> >>
> >> HTH.
> >>
> >> [1] http://www.postfix.org/LDAP_README.html#example_virtual
> >
> > I tried this, but when looking at the ldap logs, I notice that the
> > 'domain' part does not exist in the search string.
> > Eg. '%s' only shows the user, '%d' is empty, eg. query is ignored
> >
> > Does anyone know how I can force postfix to add the domain to the search
> > query?
>
> Is mydomain parameter set in /etc/postfix/main.cf ?

Yes, I believe this is necessary for postfix to actually accept emails?

Or how else do I get this configured?

Thanks,

Joost



Re: [gentoo-user] KDE4.2 compile problem

2009-02-03 Thread J. Roeleveld
On Tuesday 03 February 2009 06:53:22 Dirk Uys wrote:
> Hi
>
> I'm trying to emerge kde-4.2, but the kde-base/systemsettings-4.2.0
> ebuild fails:
>

>
> I have the latest version of libXi (1.2.0). I tried searching the net,
> but the only answer I got was that some guy on the kde forums had the
> same problem and resolved it by installing the latest version of libXi
> from the repository.
>
> Have anyone else successfully built kde4.2?

Today succesfully installed kde4.2 on amd64.
I first removed my old KDE completely and then installed it on a clean system.

Only reinstalling the old kde libs for programs that have not yet been ported 
to kde4.2.

Not run into any problems so far. Did have to unmask (~amd64) quite a few 
packages to get it to install.

--
Joost



Re: [gentoo-user] games-fps without blood

2009-02-03 Thread J. Roeleveld
On Tuesday 03 February 2009 00:26:19 Andrew Gaydenko wrote:
> Has ~amd64 portage such games for my 7 years old son?

Have a look at "worldofpadman", not seen any blood in there :)
You fight with paintguns and such like and it all looks cartoony.

http://worldofpadman.com/

--
Joost



Re: [gentoo-user] Google privacy changes

2012-01-26 Thread J. Roeleveld

On Thu, January 26, 2012 8:16 am, Dale wrote:
> Hi list,
>
> I ran across this news item about Google:
>
> http://alturl.com/s7xi5
>
> The long URL is below.  I'm sort of getting to where I don't like Google
> since they seem to be doing things that I'm just not comfy with.  Next
> they will want a camera on my rig so they can watch me surf.  I found a
> search engine that may work.  It is here:
>
> www.ixquick.com
>
> Does anyone have a better search tool?  I don't like Yahoo either.  I do
> like froogle so that would be a bonus.  You know, shopping tool.
>
> Now to my next issue.  I'm thinking about switching emails too.  Yea,
> everyone on here knows my addy but I bet most can recognize my posts
> anyway. Plus, if the init thingy goes south, well, it happens.  Anyway,
> what is a nice stable email account server that allows pop access,
> Seamonkey as the email program, that is not tracking everything or nosey
> as heck?  Free would be nice but I would pay something inexpensive on a
> yearly basis if it is really good.  I think Yahoo has this but ain't
> they sort of like Google already?  Plus, I'm not sure how much longer
> Yahoo is going to last or make similar changes itself.  I'm sort of
> getting tired of switching emails every time I switch ISPs or there is a
> policy change.  That is why I switched to gmail in the first place.  No
> matter what ISP I use, I can still use Gmail.  Yet, here I am again.
>
> Thoughts?  Suggestions?


Dale,

I don't use them myself, but Fastmail might be an option for you.
http://www.fastmail.fm

They're also very good with giving back to the OS community.

--
Joost




Re: [gentoo-user] Floppy support question for old farts. lol

2012-01-29 Thread J. Roeleveld

On Sun, January 29, 2012 2:16 pm, Dale wrote:

>  The little green light stayed on all the time so I unplugged it.  I'm
> hoping someone here may still have one of these and can shed some light
> on this.

The light staying on could also be because the floppy-flatcable is plugged
in incorrectly. Turning it around might be sufficient to make it work
again.

--
Joost




Re: [gentoo-user] Floppy support question for old farts. lol

2012-01-31 Thread J. Roeleveld

On Tue, January 31, 2012 6:30 pm, Walter Dnes wrote:
> On Tue, Jan 31, 2012 at 06:05:12PM +0100, Michael Hampicke wrote
>> > Sweet. I had 15 minutes in the office "how long before someone makes a
>> pointless, unrelated Windows insult out of my post" pool; I just won
>> $5.
>>
>> I was using Win3.1 - and was happy with it
>> I was using Win95 - and was happy with it
>> I was using WinNT4 - and was happy with it
>> I was using Win2000 - and was happy with it
>> I was using Win Server 2003 - and was happy with it
>> I was using Win7 - and was happy with it
>>
>> And I am also a Linux SuSe user since 6.0 and Gentoo user since
>> 1.something (but up until now just on the servers).
>>
>> I made the final switch from Windows to Linux on my Workstation (Gentoo)
>> and Notebook (Lubuntu) only a few month ago.
>>
>> So please, don't accuse me of making Windows insults.
>
>   I feel that Win98SE was the best Windows ever, and could've been even
> more of a killer if Microsoft hadn't so stupidly tried to ram ActiveX
> down people's throats.  Remove ActiveX, and 99% of "drive-by-downloads"
> would've disappeared.  WinME was a sad joke, however.

I enjoyed MS Dos, then played a bit with MS Win3.11, MS Win95 and MS Win98SE.
However, for important stuff, like day-to-day desktop, I switched to Linux
in 1997. That was the last time I lost files due to a crash of MS
Windows...

--
Joost




Re: [gentoo-user] recommendation for a router/WAP

2012-02-01 Thread J. Roeleveld

On Thu, February 2, 2012 2:08 am, Allan Gottlieb wrote:
> I have a linksys wrt54G that is acting a little funny.
>
> Since my new laptop supports 1Gig wired ethernet and the wrt is 100Meg,
> I should upgrade even if the "funny" turns out to be just a config error
> on my laptop.
>
> This is a home system.
>
> My requirements are modest.
>
> 1.  >= 4 wired ethernet ports for systems/devices (at least 1 port 1Gig)
> 2.  Wireless access point 802.11 b/g (n would be nice; a ok)
> 3.  dhcp (with settable addresses see below*)
> 4.  Availability in U.S.
>
> * I am actually running the so-called "tomato firmware".  The std
> firmware did not let me set specific dhcp addresses for specific
> sources.  This is important to me.  My laptop is 192.168.1.70, one
> printer is .50, the other .55, two other laptops are .72, and .75.,
> Hence an /etc/hosts file lets each machine access the others by name
>
> My isp cablevision/optonline provides a modem with a wired ethernet
> port.  The router/wap should have an ethernet port (beyond the 4 above)
> to accept the modem output (I realize it is all bidirectional).
>
> Suggestions?

Not sure about availability, but Draytek has some nice routers with
GB-ports (also on the WAN side)
They also support VLANS and different IP-ranges per port.

--
Joost




Re: [gentoo-user] Floppy support question for old farts. lol

2012-02-01 Thread J. Roeleveld

On Wed, February 1, 2012 6:36 am, Dale wrote:
> J. Roeleveld wrote:
>>
>> On Tue, January 31, 2012 6:30 pm, Walter Dnes wrote:
>>> On Tue, Jan 31, 2012 at 06:05:12PM +0100, Michael Hampicke wrote
>>>>> Sweet. I had 15 minutes in the office "how long before someone makes
>>>>> a
>>>> pointless, unrelated Windows insult out of my post" pool; I just won
>>>> $5.
>>>>
>>>> I was using Win3.1 - and was happy with it
>>>> I was using Win95 - and was happy with it
>>>> I was using WinNT4 - and was happy with it
>>>> I was using Win2000 - and was happy with it
>>>> I was using Win Server 2003 - and was happy with it
>>>> I was using Win7 - and was happy with it
>>>>
>>>> And I am also a Linux SuSe user since 6.0 and Gentoo user since
>>>> 1.something (but up until now just on the servers).
>>>>
>>>> I made the final switch from Windows to Linux on my Workstation
>>>> (Gentoo)
>>>> and Notebook (Lubuntu) only a few month ago.
>>>>
>>>> So please, don't accuse me of making Windows insults.
>>>
>>>   I feel that Win98SE was the best Windows ever, and could've been even
>>> more of a killer if Microsoft hadn't so stupidly tried to ram ActiveX
>>> down people's throats.  Remove ActiveX, and 99% of "drive-by-downloads"
>>> would've disappeared.  WinME was a sad joke, however.
>>
>> I enjoyed MS Dos, then played a bit with MS Win3.11, MS Win95 and MS
>> Win98SE.
>> However, for important stuff, like day-to-day desktop, I switched to
>> Linux
>> in 1997. That was the last time I lost files due to a crash of MS
>> Windows...
>>
>> --
>> Joost
>>
>>
>>
>
>
> When 3.1 came out, I changed jobs.  Swapping 15 floppies is no fun to
> me.  Funny, reinstalling fixed the problems back then and it still is
> the best way to fix windoze.

You should've tried installing MS Office back then...
45 (Or there-abouts) floppies and the installer asking for them in a
random order. With some of those being asked several times...

The guy asking for it paid a lot for it, so it wasn't too bad. ;)

--
Joost




Re: [gentoo-user] Can no longer use symlinks in /etc/init.d with openrc-0.9.8.4 ?

2012-02-16 Thread J. Roeleveld

On Thu, February 16, 2012 6:24 am, Pandu Poluan wrote:
> I am wondering if any of you had experienced the same difficulty as me:
>
> A couple of days ago, I upgraded openrc from (whatever version it was
> previously) to 0.9.8.4.
>
> One of the scripts in /etc/init.d was a symlink to /opt/some/package/path
>
> (To be precise, /etc/init.d/gatewall ->
> /opt/wallmator/initscripts/gentoo/gatewall.init)
>
> ((wallmator is a "Firewall Automator" script I'm developing))
>
> This morning, I rebooted. Upon time to execute the "gatewall" script,
> it complained that some settings (set through /etc/conf.d/gatewall are
> not set). I double-checked the settings it complained; yep, they are
> there in /etc/conf.d/gatewall.
>
> I tried `/etc/init.d/gatewall start`, no luck. It still complains of
> some vital non-optional settings not being set.
>
> So, I replaced the symlink:
>
> cd /etc/init.d
> mv gatewall gatewall.old
> cp /opt/wallmator/initscripts/gentoo/gatewall.init gatewall
>
> And tried again `/etc/init.d/gatewall start` ... it worked!!
>
> So I tried `shutdown -r now` ... there's joy in Mudville! The
> "gatewall" initscript now properly reads the settings in
> /etc/conf.d/gatewall.
>
> My question is: Is there a change of behavior in how openrc executes a
> script in /etc/init.d/ when said script is a symlink instead of a
> 'normal' file?
>
> PS: For this particular system, everything under / except /boot
> resides in the same filesystem.
>
> PPS: For the contents of the "gatewall" initscript, see
> https://bitbucket.org/pepoluan/wallmator/src/edae2e294d07/initscript/gentoo/gatewall.init
>
> Rgds,
> --
> FdS Pandu E Poluan
> ~ IT Optimizer ~
>
>  • LOPSA Member #15248
>  • Blog : http://pepoluan.tumblr.com
>  • Linked-In : http://id.linkedin.com/in/pepoluan
>

Pandu,

I haven't checked the source yet, but I'm wondering if the scripts are
looking for the "conf.d" file in the location:
" ../conf.d " (based from the actual location of the init-script)

Can you try the following:
# mkdir -p /opt/wallmator/initscripts/conf.d
# ln -s /etc/init.d/gatewall /opt/wallmator/initscripts/conf.d/gatewall

and then recreate the original link for the init-script.

-- 
Joost





Re: [gentoo-user] Can no longer use symlinks in /etc/init.d with openrc-0.9.8.4 ?

2012-02-16 Thread J. Roeleveld

On Thu, February 16, 2012 12:39 pm, Pandu Poluan wrote:
> On Feb 16, 2012 6:14 PM, "Florian Philipp"  wrote:
>>
>> Am 16.02.2012 11:12, schrieb Pandu Poluan:
>> >
>> > On Feb 16, 2012 3:33 PM, "J. Roeleveld" > > <mailto:jo...@antarean.org>> wrote:



>> >>
>> >> Pandu,
>> >>
>> >> I haven't checked the source yet, but I'm wondering if the scripts
>> are
>> >> looking for the "conf.d" file in the location:
>> >> " ../conf.d " (based from the actual location of the init-script)
>> >>
>> >> Can you try the following:
>> >> # mkdir -p /opt/wallmator/initscripts/conf.d
>> >> # ln -s /etc/init.d/gatewall
>> /opt/wallmator/initscripts/conf.d/gatewall
>> >>
>> >> and then recreate the original link for the init-script.
>> >>
>> >
>> > IIRC, it's the responsibility of runscript to source the relevant
>> config
>> > file in /etc/conf.d, and not the initscript's.
>> >
>> > If you peruse the code, you can see that I relied on that feature;
>> there
>> > is no source-ing of any file in /etc/conf.d
>> >
>> > Rgds,
>> >
>>
>> Yes, but maybe runscript resolves the real file location and then
>> sources the conf file relative to that location.
>>
>
> Most likely. Didn't use to be like that, though.
>
> Oh well, I'll just add an explicit source then.
>
> Rgds,
>

Did those little commands work then? I didn't test them myself.

--
Joost


-- 
Joost




Re: [gentoo-user] SOLVED gentoo-sources menuconfig feature/weirdness

2012-02-23 Thread J. Roeleveld
On Thu, February 23, 2012 12:25 pm, Alan McKinnon wrote:
> Just don't do what I did earlier: sit in Joburg and configure the
> firewall on a Xen host in deepest darkest Africa where there's no
> tarred roads to get to it.

How did you get  the server there? Flown it in?
I've seen the roads in Africa and those are difficult to navigate...
(The tarmac'd ones are decent though)

> Check the iptables config three times,
> plus get your colleagues to look it over as well. We all signed off on
> it.
>
> Guess what? Yup, you got it. We all missed something and now we are
> locked out. Remember, it's in deepest darkest Africa.

That's why I like the "ADMINISABSENTMINDED" option in the Shorewall
config. It doesn't kill existing connections.

I always test a new remote connection prior to closing the one I used to
change it with.
If I do accidentally kill my existing connection, the "safe_restart"
option will cause it to roll-back if I don't accept the new settings
before a time-out.

--
Joost




Re: [gentoo-user] old cyrus-imapd from overlay

2012-02-28 Thread J. Roeleveld
On Tue, February 28, 2012 4:34 pm, Stefan G. Weichinger wrote:
>
> Greets,
>
> does anyone have experience with cyrus-imapd on gentoo?
>
> I have to migrate an ancient suse-10.1-server, it runs:
>
> # rpm -qa | grep cyrus
> cyrus-sasl-2.1.21-3
> cyrus-sasl-devel-2.1.21-3
> cyrus-imapd-2.2.12-13
>
> portage gives me cyrus-imapd-2.4.12 which is fine but I don't know if
> upgrading this far is possible without problems.
>
> I found the OSSDL-overlay, but cyrus-imapd-2.2.13 fails to build ...
>
> * does anyone have experience with upgrading cyrus-imapd?
>
> * does anyone have a running older release/ebuild where the migration
> should be safe?
>
> pls no advice to use dovecot etc, the job here is to possibly move over
> /var/spool/imap and "press play" (simplified, you get the picture).
>
> A change of software might be considered later, right now I have to
> maintain a running server while moving to newer hardware and OS.
>
> Thanks, Stefan

Stefan,

I haven't had problems with upgrading, but I didn't "wait" this long.
Eg. I didn't migrate from 2.1 to 2.4 directly.

I would suggest you check on the cyrus-imap mailing list (see bottom of
email) for tips. Installing it is simple, but there are a few changes with
some of the files.

A safer method would be running the 2 versions in parallel and using
imapsync or something similar to copy the email over to the new version.

--
Joost

cyrus-imap list info:

List-Id: Discussion group for Cyrus email system
 
List-Unsubscribe: ,
 
List-Archive: 
List-Post: 
List-Help: 
List-Subscribe: ,
 





Re: [gentoo-user] Freeing up disk space problem!!

2012-02-28 Thread J. Roeleveld

On Wed, February 29, 2012 2:01 am, Alex Schuster wrote:
> Dale writes:
>
>> Alex Schuster wrote:
>>



>> Also, it is already set up with LVM and
>> ext4.  Can I change it even while there is data on there?
>
> Sure! Cool, isn't it. Just call lvresize -L +1G /dev/mapper/whatever or
> something, and then resize2fs /dev/mapper/whatever.

I don't use ext4 (yet), so not sure about this. But, isn't "resize2fs" for
ext2/3 only?

-- 
Joost




Re: [gentoo-user] Freeing up disk space problem!!

2012-02-28 Thread J. Roeleveld

On Wed, February 29, 2012 8:10 am, Dale wrote:
> Neil Bothwick wrote:
>> On Tue, 28 Feb 2012 20:38:13 -0600, Dale wrote:
>>
>>> tune2fs -m 1 /dev/data/data1
>>>
>>> Which is where the ext4 file system is on the LVM.  After I run that
>>> then I can expand LVM from there, I hope it works that easy.
>>
>> It does.
>>
>>
>
>
> Apparently I am missing something then.  I looked at cfdisk for the
> drive. It reported  right at 750Gb as it should with the change.  Thing
> is, I can't get anything else to add it or to even show it is available.
>  Some results somewhat shortened:
>
> From cfdisk
>
>  750156.38Mb
>
> root@fireball / # pvs
>   PV VG   Fmt  Attr PSize   PFree
>   /dev/sdc1  data lvm2 a--  698.63g0
> root@fireball / # vgs
>   VG   #PV #LV #SN Attr   VSize   VFree
>   data   1   1   0 wz--n- 698.63g0
> root@fireball / # lvs
>   LVVG   Attr   LSize   Origin Snap%  Move Log Copy%  Convert
>   data1 data -wi-ao 698.63g
> root@fireball / #
>
>
> So, cfdisk is happy with the change but nothing else seems to see it.
> What am I missing here?  Where did the 50Gbs go to?
>
> Dale

What you're missing here is the fact that different tools report the sizes
differently.
Look into the difference between "GiB" and "GB":

http://en.wikipedia.org/wiki/Mebibyte

you have:
750156.38 MiB =
750156380 KiB =
75015638 B =
732574589.8 KB =
715404.87 MB =
698.63 GB

(with the "i" the factor is 1000, without it, the factor is 1024)

HTH,

Joost




Re: [gentoo-user] old cyrus-imapd from overlay

2012-02-29 Thread J. Roeleveld

On Wed, February 29, 2012 9:10 am, Stefan G. Weichinger wrote:
> Am 2012-02-29 08:23, schrieb J. Roeleveld:
>> Stefan,
>>
>> I haven't had problems with upgrading, but I didn't "wait" this long.
>> Eg. I didn't migrate from 2.1 to 2.4 directly.
>
> *SIGH* ;-)
>
>> I would suggest you check on the cyrus-imap mailing list (see bottom of
>> email) for tips. Installing it is simple, but there are a few changes
>> with
>> some of the files.
>>
>> A safer method would be running the 2 versions in parallel and using
>> imapsync or something similar to copy the email over to the new version.
>
> Sure, yes. I have to research how to do that for hundreds of mailboxes
> in one command ...

There is an example for this on the project homepage:
http://imapsync.lamiral.info/
All you need is the usernames/passwords for the different users.

> I have 2.4.12 on the newer box already, will look that up asap.

If you want to still try to copy the mail over, you need to look into
converting the *.db files.

-- 
Joost




Re: [gentoo-user] Beta test Gentoo with mdev instead of udev; version 6

2012-03-14 Thread J. Roeleveld

On Tue, March 13, 2012 9:45 pm, Walter Dnes wrote:
>   I've also found one
> situation where I need to take one extra step to run without udev.  I
> have a laptop with a Radeon GPU that requires a binary blob for the
> video driver.  emerging radeon-ucode downloads a whole slew of binary
> blobs, to support umpteen different models.  If I leave all the binary
> blobs in the library directory, the kernwl needs udev to figure out
> which one of the many binary blobs to load.  If I remove all the other
> binary blobs, and leave only the correct one in the library directory,
> it loads automatically.

Wouldn't a good solution be to have the ebuild modified to only install
those binary blobs you actually need?
Eg. similar to how apache or sane modules are configured?

--
Joost




Re: [gentoo-user] Re: Initramfs or move /usr to /, oh my...

2012-03-27 Thread J. Roeleveld

On Mon, March 19, 2012 1:31 am, Pandu Poluan wrote:
> When I started administering remote servers, Citrix's XenServer is Good
> Enough™ to deploy in production, so now it's the first thing I install
> on a
> virgin box, even if said virgin box will host only one VM.
>
> This provides me with a usable Virtual Console through which I can watch
> the boot process.

These things are soo usefull :)
That's one of the reasons why I have decided to only get servers with
remote-desktop-over-network support in hardware :)

I don't want to leave a screen and keyboard connected to machines that are
supposed to run independently.

--
Joost




Re: [gentoo-user] Re: systemd? [ Was: The End Is Near ... ]

2012-03-28 Thread J. Roeleveld

On Thu, March 22, 2012 12:55 am, Walter Dnes wrote:
> On Wed, Mar 21, 2012 at 12:02:32PM -0400, Michael Mol wrote
>
>> I said this before, but it sounds useful to try to reiterate:
>>
>> * It's probable that service-specific files should not be included in
>> the init system package.
>> * Service-specific init files should probably be part of the
>> distro-localized version of a service-providing package.
>>
>> This doesn't mean modifying binaries, this is part of bootstrapping a
>> service's environment. Call it "deferred installation stages", if you
>> like; things which need to be done for the service to be configured
>> and properly operate.
>
>   My point is that the startup, sanity-checking, and initialization code
> has to go *SOMEWHERE*.  Where do you propose moving it to?  This
> discussion reminds me of an ethnic joke.  A bunch of workers had dug out
> a hole for the basement and foundations where a new house was to be
> built.  The workers ask their foreman what they should do with the pile
> of dirt they had from digging out the hole for the new house.  Their
> foreman, who is  tells them to go dig another hole in the
> ground and throw the dirt in there. 

... After pushing the foreman in ;)

--
Joost




Re: [gentoo-user] chicken/eff issue with suspend-to-disk/hibernate problem [Was: The End Is Near ... or, get the vaseline, they're on the way!]

2012-03-29 Thread J. Roeleveld

On Mon, March 19, 2012 3:56 pm, Alex Schuster wrote:
> William Kenworthy writes:
>
>> On Sun, 2012-03-18 at 18:30 -0600, Canek Peláez Valdés wrote:
>
>> > My laptop has used dracut since months ago, and suspends/resumes just
>> > fine, as it does my media center.
>
>> Genkernel doesnt, bugs and work arounds on gentoo bugzilla, with angry
>> comments from a dev that it wont be supported and to not file bugs for
>> it - now that dev has moved on I dont know if enough has changed to test
>> the waters and file a bug again.
>>
>> Its missing a hook in the initrd to call the binary that starts the
>> resume process.
>
> Huh? I don't use this at the moment, because suspend-to-ram is enough for
> me, but it (that is, the initramfs part) used to work just fine out of the
> box for me, also opening my LUKS-encrypted root volume being on LVM. It
> also seemed to work on another Gentoo PC I installed recently, although
> TuxOnIce itself does not work so the resume fails. Argh, this suspend to
> disk stuff NEVER really worked for me, and I tried for years on different
> systems.

I had it working a long time ago, but the last time I tried it I ended up
with a bit of a problem:

I don't want a swap-partition on the SSD in my netbook. So I want it to
use the SD-card that's permanently plugged in. Problem is, it's connected
via an internal USB-port and USB is killed before the writing-proces for
the suspend-to-disk starts.

Anyone know a solution short of rewriting the kernel? ;)

--
Joost




Re: [gentoo-user] The End Is Near ... or, get the vaseline, they're on the way!

2012-03-29 Thread J. Roeleveld

On Sun, March 18, 2012 8:30 am, Michael Mol wrote:
> On Sat, Mar 17, 2012 at 11:57 PM, Bruce Hill, Jr.
>  wrote:
>>
>>
>>
>> On March 17, 2012 at 8:43 PM Mark Knecht  wrote:
>>
>> 
>>> initramfs side of things. I did have to use one to bring up my server
>>> with / on a RAID6, not because I needed it long term but in the short
>>> term I couldn't determine how mdadm was numbering the RAID so that I
>>> could get grub.conf correct. I'm somehow a bot worried something is
>>> going to slip by the devs and I'd be better off having an initramfs
>>> already running on the box when I do allow the upgrades.
>>>
>>> Planning on giving Dracut a try.
>>>
>>> Thanks,
>>> Mark
>>>
>>
>>
>> The real short of this is that if you use 0.90 superblocks, and /boot on
>> it's own little partition, your kernel can assembly your
>> RAID without an initrd image. You will reboot with the
>> /dev/md0 you created as /dev/md0. And unless you have partitions (or is
>> it
>> single drives) over 2TB, you can use metadata=0.90.
>>
>> As they say, Works For Me (R).
>>
>> I've yet to read a simple explanation of HOW-TO do this in a Gentoo doc
>> (not that it doesn't exist), but you can follow this very simple
>> README_RAID used in Slackware to build them on Gentoo:
>>
>> http://slackware.oregonstate.edu/slackware64-current/README_RAID.TXT
>
> I recall reading on this list a week or two ago that kernel
> autoassembly of 0.90 arrays was deprecated. :(

Shhh!
Please don't tell my production server ;)

It might go at some point, especially if they decide that everyone uses
initramfs or similar...

--
Joost




Re: [gentoo-user] chicken/eff issue with suspend-to-disk/hibernate problem [Was: The End Is Near ... or, get the vaseline, they're on the way!]

2012-03-29 Thread J. Roeleveld

On Thu, March 29, 2012 12:40 pm, wdk@moriah wrote:
>
>
> On 29/03/2012, at 17:35, "J. Roeleveld"  wrote:
>
>>
>> On Mon, March 19, 2012 3:56 pm, Alex Schuster wrote:
>>> William Kenworthy writes:
>>>
>>>> On Sun, 2012-03-18 at 18:30 -0600, Canek Peláez Valdés wrote:
>>>
>>>>> My laptop has used dracut since months ago, and suspends/resumes just
>>>>> fine, as it does my media center.
>>>
>>>> Genkernel doesnt, bugs and work arounds on gentoo bugzilla, with angry
>>>> comments from a dev that it wont be supported and to not file bugs for
>>>> it - now that dev has moved on I dont know if enough has changed to
>>>> test
>>>> the waters and file a bug again.
>>>>
>>>> Its missing a hook in the initrd to call the binary that starts the
>>>> resume process.
>>>
>>> Huh? I don't use this at the moment, because suspend-to-ram is enough
>>> for
>>> me, but it (that is, the initramfs part) used to work just fine out of
>>> the
>>> box for me, also opening my LUKS-encrypted root volume being on LVM. It
>>> also seemed to work on another Gentoo PC I installed recently, although
>>> TuxOnIce itself does not work so the resume fails. Argh, this suspend
>>> to
>>> disk stuff NEVER really worked for me, and I tried for years on
>>> different
>>> systems.
>>
>> I had it working a long time ago, but the last time I tried it I ended
>> up
>> with a bit of a problem:
>>
>> I don't want a swap-partition on the SSD in my netbook. So I want it to
>> use the SD-card that's permanently plugged in. Problem is, it's
>> connected
>> via an internal USB-port and USB is killed before the writing-proces for
>> the suspend-to-disk starts.
>>
>> Anyone know a solution short of rewriting the kernel? ;)
>>
>> --
>> Joost
>>
>>
> try tuxonice - allows you to suspend to a file on disk as well as ram or
> swap.  Added bonus is its much more robust than in-kernel, and the dev
> (Nigel) is very responsive if help or bugfixes (usually for new kernel
> versions) are needed.

True, but I don't want to have too many write-actions to the internal SSD,
which means that I'd want the file on the SD as well...


-- 
Joost




Re: [gentoo-user] InitRAMFS - boot expert sought

2012-03-29 Thread J. Roeleveld

On Wed, March 28, 2012 12:49 am, Mark Knecht wrote:



> Do nothing. Just read, watch, learn but most important don't do
> updates. Just wait. Patience is a virtue!

I wonder how many threads we'll get with "I haven't updated my Gentoo for
over a year, how do I best do the upgrade?" from people following this
advice?

--
Joost




Re: [gentoo-user] Re: InitRAMFS - boot expert sought

2012-03-30 Thread J. Roeleveld

On Fri, March 30, 2012 9:23 am, Nicolas Sebrecht wrote:
> The 29/03/12, J. Roeleveld wrote:
>>
>> On Wed, March 28, 2012 12:49 am, Mark Knecht wrote:
>>
>> 
>>
>> > Do nothing. Just read, watch, learn but most important don't do
>> > updates. Just wait. Patience is a virtue!
>>
>> I wonder how many threads we'll get with "I haven't updated my Gentoo
>> for
>> over a year, how do I best do the upgrade?" from people following this
>> advice?
>
> I think there is a better thing to do. Use an initramfs.
>
> This is not hell! ;-)

I'm not saying it is or isn't.

I just don't understand why "not upgrading for a while" is given as an
option considering the issues people will encounter when they try
upgrading a Gentoo installation that hasn't been updated in a long time.


-- 
Joost




Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

2012-04-16 Thread J. Roeleveld

On Sat, April 14, 2012 4:28 pm, Florian Philipp wrote:



> As we are out of rational ideas, have you tried unplugging the old disk?
> You don't need it for booting at the moment, right? AS SATA is
> hot-plugin capable, you can re-insert it later.

Be careful here, not all SATA-controllers/ports on mainboards are hotplug
capable. I have a mainboard that becomes really unstable when I try to
hot(un)plug a harddisk.
It runs perfectly fine as long as I switch the computer off before
swapping harddrives.

--
Joost




Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

2012-04-16 Thread J. Roeleveld

On Mon, April 16, 2012 3:47 pm, Dale wrote:
> J. Roeleveld wrote:
>>
>> On Sat, April 14, 2012 4:28 pm, Florian Philipp wrote:
>>
>> 
>>
>>> As we are out of rational ideas, have you tried unplugging the old
>>> disk?
>>> You don't need it for booting at the moment, right? AS SATA is
>>> hot-plugin capable, you can re-insert it later.
>>
>> Be careful here, not all SATA-controllers/ports on mainboards are
>> hotplug
>> capable. I have a mainboard that becomes really unstable when I try to
>> hot(un)plug a harddisk.
>> It runs perfectly fine as long as I switch the computer off before
>> swapping harddrives.
>
> According to the manual, mine is.  Given my luck, I don't want to try
> it.  ;-)

If the manual says it is, then probably it will be.

I have 2 mainboards I tried it with that don't mention either way for
hotswap in the manuals.
One gets unstable, the other works perfectly.

The last mainboard I bought actually has an option in the BIOS where I can
specify per SATA-port which are to support hotswap or not ;)

--
Joost




Re: [gentoo-user] Postgres suddenly can't access files in its /etc directory

2012-04-25 Thread J. Roeleveld
On Mon, April 23, 2012 3:21 pm, nap...@squareownz.org wrote:
> I'm unsure if I should be posting this to the -hardened mailing list as
> I'm using the hardened profile but all of a sudden I'm getting a rather
> strange error when trying to start postgres.
>
> # /etc/init.d/postgresql-9.1 start
>  * Caching service dependencies ...  [
> ok ]
>  * The following file(s) are not readable by 'postgres':
>  * /etc/postgresql-9.1/postgresql.conf
>  * /etc/postgresql-9.1/pg_ident.conf
>  * /etc/postgresql-9.1/pg_hba.conf
>  * HINT: Try: 'chmod 644 /etc/postgresql-9.1/*.conf'
>  * ERROR: postgresql-9.1 failed to start
>
> That's what I'm getting when I attempt to start it and I don't seem to
> have modified anything.
>
> Looking into the init script I can see it's doing su postgres -c "test -r
> /etc/postgresql-9.1/pg_hba.conf" and the like but the output of:
>   su postgres -c "test -r /etc/postgresql-9.1/pg_hba.conf" || echo "fail"
> is fail... so I'm quite at a loss as to what could be going on here. All
> of the files are owned by postgres, have the correct permissions (I ran
> chmod 644 as it hinted) and it should be able to traverse to the directory
> as everything has the execute bit from /etc onwards.
>
> Any tips?

I don't have much experience with Hardenened, but are you certain that any
permissions (including ACLs) are set correctly for PostgreSQL to access
all its files?

Do you have "sec-policy/selinux-postgresql" installed? And did you
re-emerge this after the update?

--
Joost





Re: [gentoo-user] Traffic shaping - downstream data

2012-06-12 Thread J. Roeleveld
On Mon, June 11, 2012 5:27 pm, Datty wrote:
> Hi all
>
> I'm looking for some help setting up traffic shaping on my internet
> connection. I have a bit of an odd setup in that I run a remote VPN server
> that all of my traffic is pushed through and out on to the internet. As I
> understand generally it isn't possible to shape incoming traffic but as I
> have control of the VPN server which pushes the traffic to me I wondered
> if
> it was possible to implement something on that side? No traffic other than
> the VPN tunnel goes out of my home connection.
>
> I'm trying to do this because I have a service running on one of my home
> machines that requires around 5kbps constantly with low latency (<200ms),
> but as my home connection is 750kbps it gets saturated very quickly
> causing
> huge spikes in latency. Does anyone have any ideas as to how I could
> achieve this? Generally any pointers at all would be greatly appreciated.

If VPN is the only traffic to/from your home, eg. using your internet
connection and you control the VPN-server on the other side, you could
limit the "upstream" of the remote server to your home.

> Thanks for your time
>
> Oliver
>


-- 
Joost




Re: [gentoo-user] Getting around ancient SATA disk size limitations

2012-06-19 Thread J. Roeleveld

On Tue, June 19, 2012 12:06 pm, Neil Bothwick wrote:
> On Tue, 19 Jun 2012 08:30:33 +0700, Pandu Poluan wrote:
>
>> Lucky you didn't challenge her to max out your Platinum credit card ;-)
>
> That's implicit in the wedding vows :(

That can be solved by making sure she has a decent paying job herself :)

--
Joost




Re: [gentoo-user] Getting around ancient SATA disk size limitations

2012-06-19 Thread J. Roeleveld

On Tue, June 19, 2012 1:37 am, Alan McKinnon wrote:
> On Mon, 18 Jun 2012 10:24:58 -0400
> Michael Mol  wrote:
>
> [snip]
>
>> Felix, did you follow any
>> analogous steps for the 4TB drives?
>>
>> (Cripes, that's a lot of data. One drive, bigger than any of my
>> aggregate volumes.)
>
>
> Completely OT but what the heck: :-)
>
> I built a 12TB FreeNAS Storage box for the home and dared the wife to
> fill it with content. For purposes of illustration I told her that this
> was an awful lot of data - 1357 raw DVD movie rips for example.
>
> "Go for it honey!" I said thinking the myself "She will NEVER fill that,
> or even come close!"
>
> The joke's on me. After 6 weeks, she's halfway there  ^_^

Are you sure those are all unique files?
Not multiple versions of the same movie? ;)

I've got a decent sized storage box as well. When building it, I already
planned ahead to allow additional disks to be easily added.
Now I need to change the layout at home, as she finds the server too noisy ;)

--
Joost




Re: [gentoo-user] Getting around ancient SATA disk size limitations

2012-06-20 Thread J. Roeleveld

On Tue, June 19, 2012 4:02 pm, Neil Bothwick wrote:
> On Tue, 19 Jun 2012 12:54:26 +0200, J. Roeleveld wrote:
>
>> >> Lucky you didn't challenge her to max out your Platinum credit
>> >> card ;-)
>> >
>> > That's implicit in the wedding vows :(
>>
>> That can be solved by making sure she has a decent paying job herself :)
>
> That worked for you??? :-O

Actually, it did :)

Might help that my wife also works in IT...


-- 
Joost




Re: [gentoo-user] Re: Anyone successful in paravirtualizing Gentoo on XenServer?

2011-03-24 Thread J. Roeleveld
On Thu, March 24, 2011 7:37 am, Pandu Poluan wrote:
> On Thu, Mar 24, 2011 at 12:30, Pandu Poluan  wrote:
>> On Thu, Mar 24, 2011 at 00:03, Pandu Poluan  wrote:



>
> More update on my odyssey.
>
> I went back to HVM and reboot using the Install CD. I did a 'chroot'
> followed by 'rc-update add sshd default' and 'emerge iproute2' (forgot
> those two the first time). 'poweroff', went back to PV mode, and ...
>
> Yay! Now I can SSH into the VM. And indeed, memory usage is minimal
> (approx 28 MB).

As I read the first email, I was planning on asking if you can connect via
remote.

> But I still can't login via Xen's virtual console (hvc0). Same as
> before: Got the 'login:' prompt, but can't type anything.
>
> I'll try mucking around with the .config. I have a feeling I disabled
> one thing too many...

Before playing around with the kernel config further, I don't use
XenServer, but use the xen-stuff in portage instead. (My host runs Gentoo
as well)
In the configuration, I add the following to the kernel-parameters:
" xencons=tty "
Maybe a similar option will help you as well.

Otherwise, you could try checking the input-devices. Especially things
like keyboard/usb/hid/ps/...

Also, if you have further difficulty, the xen-users list might be a better
port of call as there are plenty of people there who use XenServer.
http://lists.xensource.com/mailman/listinfo/xen-users

--
Joost Roeleveld

PS. Not trying to send you away from this list :)




Re: [gentoo-user] the best filesystem for server: XFS or JFS (or?)

2011-03-24 Thread J. Roeleveld
On Wed, March 23, 2011 5:43 pm, Volker Armin Hemmann wrote:
> On Wednesday 23 March 2011 14:04:23 Mr. Jarry wrote:
>> On Wed, Mar 23, 2011 at 10:09 AM, Volker Armin Hemmann
>>
>>  wrote:
>> > And if you don't care about barriers, jfs might be a good choice.
>>
>> Knowing nothing about "barriers" I tried to find some info and
>> came accross this article:
>>
>> http://searchenterpriselinux.techtarget.com/tip/Deciding-when-to-use-Linux-f
>> ile-system-barriers
>>
>> It says, barriers can not work with device mapper (raid, lvm).
>> If it is true (?) then because of having all partitions in raid1 (md),
>> I need not worry about barriers. Whatever filesystem I picked out,
>> I could not use barriers...
>>
>> Jarry
>
> md raid devices can do barriers. Don't know about lvm. But lvm is such a
> can
> of worms I am surprised people still recommend it.

What is wrong with LVM?
I've been using it successfully without any issues for years now.
It does what it says on the box.

--
Joost




Re: [gentoo-user] Re: Anyone successful in paravirtualizing Gentoo on XenServer?

2011-03-24 Thread J. Roeleveld
On Thu, March 24, 2011 9:20 am, Pandu Poluan wrote:
> On Thu, Mar 24, 2011 at 14:47, J. Roeleveld  wrote:
>> On Thu, March 24, 2011 7:37 am, Pandu Poluan wrote:
>>> On Thu, Mar 24, 2011 at 12:30, Pandu Poluan  wrote:
>>>> On Thu, Mar 24, 2011 at 00:03, Pandu Poluan  wrote:
>>
>> 
>>
>>>
>>> More update on my odyssey.
>>>
>>> I went back to HVM and reboot using the Install CD. I did a 'chroot'
>>> followed by 'rc-update add sshd default' and 'emerge iproute2' (forgot
>>> those two the first time). 'poweroff', went back to PV mode, and ...
>>>
>>> Yay! Now I can SSH into the VM. And indeed, memory usage is minimal
>>> (approx 28 MB).
>>
>> As I read the first email, I was planning on asking if you can connect
>> via
>> remote.
>>
>
> At first, I can't. But then I realized I forgot to do the 'rc-update
> add sshd default' step.
>
>>> But I still can't login via Xen's virtual console (hvc0). Same as
>>> before: Got the 'login:' prompt, but can't type anything.
>>>
>>> I'll try mucking around with the .config. I have a feeling I disabled
>>> one thing too many...
>>
>> Before playing around with the kernel config further, I don't use
>> XenServer, but use the xen-stuff in portage instead. (My host runs
>> Gentoo
>> as well)
>> In the configuration, I add the following to the kernel-parameters:
>> " xencons=tty "
>> Maybe a similar option will help you as well.
>>
>
> Hmmm... currently I set xencons=hvc0 (also in /etc/inittab, s/tty0/hvc0/)
>
> I'll see what happens if I return them to tty0.

Good luck there :)

>> Otherwise, you could try checking the input-devices. Especially things
>> like keyboard/usb/hid/ps/...
>>
>
> Let's see... I got the following checked:
>  -*- Generic input layer (needed for keyboard, mouse, ...)
>  < >   Support for memoryless force-feedback devices
>  < >   Polled input device skeleton
>  < >   Sparse keymap support library
>*** Userland interfaces ***
>  -*-   Mouse interface
>  [*] Provide legacy /dev/psaux device
>  (1024)  Horizontal screen resolution
>  (768)   Vertical screen resolution
>  < >   Joystick interface
> Event interface
>  < >   Event debugging
>  <*>   Xen virtual keyboard and mouse support
>*** Input Device Drivers ***
>  -*-   Keyboards  --->
>  [ ]   Mice  --->
>  [ ]   Joysticks/Gamepads  --->
>  [ ]   Tablets  --->
>  [ ]   Touchscreens  --->
>  [ ]   Miscellaneous devices  --->
>  Hardware I/O ports  --->
>
> Under keyboards, I only have:
>XT keyboard

Hmm... I don't use kernel-modules in my Xen domu's (All are PV). I wonder
if compiling them into the kernel might help.
Or, try loading the modules listed above and see if that helps. (Not sure
if you can see an immediate change though)

I have attached the .config for one of my domains. It also has support for
a passed-through sound-card. You won't need that part. :)

Please note, I do use the following kernel:
sys-kernel/xen-sources-2.6.34-r4

Which kernel are you using?

>> Also, if you have further difficulty, the xen-users list might be a
>> better
>> port of call as there are plenty of people there who use XenServer.
>> http://lists.xensource.com/mailman/listinfo/xen-users
>
> Thanks for the pointer!
>
>> --
>> Joost Roeleveld
>>
>> PS. Not trying to send you away from this list :)
>>
>
> Heh, no misunderstanding here :)
>
> Anyways, when I'm successful in my endeavor, I'll sure to be sharing my
> tips.

That's always a good way to make people more happy to help :)

--
Joost

config
Description: Binary data


Re: [gentoo-user] Re: Anyone successful in paravirtualizing Gentoo on XenServer?

2011-03-24 Thread J. Roeleveld
On Thu, March 24, 2011 10:36 am, Pandu Poluan wrote:
> On Thu, Mar 24, 2011 at 15:32, J. Roeleveld  wrote:
>>> Hmmm... currently I set xencons=hvc0 (also in /etc/inittab,
>>> s/tty0/hvc0/)
>>>
>>> I'll see what happens if I return them to tty0.
>>
>> Good luck there :)
>
> No joy. Changing xencons to tty, tty0, tty1 results in the console
> screen stopping output right after "Freeing unused kernel memory:"
>
> At least with xencons=hvc0 I got the complete output.

Hmm.. Ok, my mistake.
I now remember I set it to tty to solve the issue I wasn't seeing any
messages...
This is, btw, on the domU config, not the host :)

>> Hmm... I don't use kernel-modules in my Xen domu's (All are PV). I
>> wonder
>> if compiling them into the kernel might help.
>> Or, try loading the modules listed above and see if that helps. (Not
>> sure
>> if you can see an immediate change though)
>>
>
> Can't hurt to try, now that I've gotten a bootable kernel. Can always
> fallback to the previous one.

Let me know how that goes.

>> Please note, I do use the following kernel:
>> sys-kernel/xen-sources-2.6.34-r4
>>
>> Which kernel are you using?
>>
>
> hardened-sources-2.6.36-r9 IIRC
>
> H... there are *lots* of options in your config that I don't see in
> mine.

Can you add a list of the ones you are missing?

> Could it be because of the "hardened" sources?

My guess is, because you're not having the xen-patchset in the kernel.
Can you try the xen-sources to see if that helps?
Then we can work our way through the missing options.

>>> Anyways, when I'm successful in my endeavor, I'll sure to be sharing my
>>> tips.
>>
>> That's always a good way to make people more happy to help :)
>>
>> --
>> Joost
>
> Just the least I can do to give back something to Gentoo :)

Which is exactly why I'm active on these mailing lists :)

--
Joost




Re: [gentoo-user] Re: Anyone successful in paravirtualizing Gentoo on XenServer?

2011-03-24 Thread J. Roeleveld
On Thu, March 24, 2011 1:19 pm, Pandu Poluan wrote:
> On Thu, Mar 24, 2011 at 18:21, J. Roeleveld  wrote:
>> On Thu, March 24, 2011 10:36 am, Pandu Poluan wrote:
>>> On Thu, Mar 24, 2011 at 15:32, J. Roeleveld  wrote:
>
> -- snip --
>
>>>> Hmm... I don't use kernel-modules in my Xen domu's (All are PV). I
>>>> wonder
>>>> if compiling them into the kernel might help.
>>>> Or, try loading the modules listed above and see if that helps. (Not
>>>> sure
>>>> if you can see an immediate change though)
>>>>
>>>
>>> Can't hurt to try, now that I've gotten a bootable kernel. Can always
>>> fallback to the previous one.
>>
>> Let me know how that goes.
>>
>
> Compiling all the  into <*> still results the same *sigh*

Ok, then we'll need to look into things that are not added at all.

The following might be the one you're missing:
CONFIG_XEN_KEYBOARD=y

It is in my config, but not in yours.

> I also tried your .config ( make oldconfig && make menuconfig &&
> genkernel --oldconfig bzImage && genkernel --oldconfig initramfs ),
> and something strange happened:
>
> The VM seems to be starting... then ended immediately. But no error
> message at all.

Could have a few reasons:
- I have the "compatibility" for xen reduced to 3.4 or higher. Not sure
which xen-version is included in yours.
- I do not have support for an initramfs or similar in there
- I specified the CPU-type in the kernel (It's not a generic one)

Did you check the logs for xend, system (messages) and others?

>>>> Please note, I do use the following kernel:
>>>> sys-kernel/xen-sources-2.6.34-r4
>>>>
>>>> Which kernel are you using?
>>>>
>>>
>>> hardened-sources-2.6.36-r9 IIRC
>>>
>>> H... there are *lots* of options in your config that I don't see in
>>> mine.
>>
>> Can you add a list of the ones you are missing?
>>
>
> Um... lots. I'll attach the last config I've tried.
>
>>> Could it be because of the "hardened" sources?
>>
>> My guess is, because you're not having the xen-patchset in the kernel.
>> Can you try the xen-sources to see if that helps?
>> Then we can work our way through the missing options.
>>
>
> Okay, emerging xen-sources now... this will take some time. I'll post
> after testing again.

Looking forward to the result.

--
Joost




Re: [gentoo-user] Re: Anyone successful in paravirtualizing Gentoo on XenServer?

2011-03-24 Thread J. Roeleveld
On Thu, March 24, 2011 1:57 pm, J. Roeleveld wrote:
> On Thu, March 24, 2011 1:19 pm, Pandu Poluan wrote:
>>
>> -- snip --
>>
>>>> Can't hurt to try, now that I've gotten a bootable kernel. Can always
>>>> fallback to the previous one.
>>>
>>> Let me know how that goes.
>>>
>>
>> Compiling all the  into <*> still results the same *sigh*
>
> Ok, then we'll need to look into things that are not added at all.
>
> The following might be the one you're missing:
> CONFIG_XEN_KEYBOARD=y
>
> It is in my config, but not in yours.

I quickly checked, this one depends on the following additional option
which you do not (yet) have:
CONFIG_XEN_FRAMEBUFFER=y

HTH,

Joost Roeleveld




Re: [gentoo-user] Re: Anyone successful in paravirtualizing Gentoo on XenServer?

2011-03-24 Thread J. Roeleveld
On Thu, March 24, 2011 2:10 pm, Pandu Poluan wrote:
> On Thu, Mar 24, 2011 at 19:57, J. Roeleveld  wrote:
>> On Thu, March 24, 2011 1:19 pm, Pandu Poluan wrote:
>>> On Thu, Mar 24, 2011 at 18:21, J. Roeleveld  wrote:
>>>> On Thu, March 24, 2011 10:36 am, Pandu Poluan wrote:
>>>>> On Thu, Mar 24, 2011 at 15:32, J. Roeleveld 
>>>>> wrote:
>>>
>>> -- snip --
>>>
>>>>>> Hmm... I don't use kernel-modules in my Xen domu's (All are PV). I
>>>>>> wonder
>>>>>> if compiling them into the kernel might help.
>>>>>> Or, try loading the modules listed above and see if that helps. (Not
>>>>>> sure
>>>>>> if you can see an immediate change though)
>>>>>>
>>>>>
>>>>> Can't hurt to try, now that I've gotten a bootable kernel. Can always
>>>>> fallback to the previous one.
>>>>
>>>> Let me know how that goes.
>>>>
>>>
>>> Compiling all the  into <*> still results the same *sigh*
>>
>> Ok, then we'll need to look into things that are not added at all.
>>
>> The following might be the one you're missing:
>> CONFIG_XEN_KEYBOARD=y
>>
>> It is in my config, but not in yours.
>>
> Most likely the missing support for initramfs.
>
> The first 8 or 9 attempts I compile *without* initramfs support, and
> the same thing happened.

If you disable modules-support, you should not require an initramfs.
Simply ignore that part and remove any reference to it from the config.

> Anyways, I'm currently reverting to a snapshot before kernel
> compilation, and am trying to compile xen-sources

Ok, good luck with that.

Did you try to add the "XEN_KEYBOARD" option to your config?

> I hope you don't mind waiting. It's already 20:00 here, and now I have
> to go home.

Don't mind waiting, let me know tomorrow when you have tested :)

> Anyways, thanks for guiding me :)
>
> (Will resume attempts tomorrow at 10:00)

Not sure which timezone you are in, but I'm in Europe, so it might take a
while for me to respond in the morning :)

--
Joost




Re: [gentoo-user] LVM (Was: the best filesystem for server: XFS or JFS (or?))

2011-03-24 Thread J. Roeleveld
On Thu, March 24, 2011 12:30 pm, Volker Armin Hemmann wrote:
> On Thursday 24 March 2011 08:49:52 J. Roeleveld wrote:
>> On Wed, March 23, 2011 5:43 pm, Volker Armin Hemmann wrote:
>> > md raid devices can do barriers. Don't know about lvm. But lvm is such
>> a
>> > can
>> > of worms I am surprised people still recommend it.
>>
>> What is wrong with LVM?
>> I've been using it successfully without any issues for years now.
>> It does what it says on the box.
>
> it is another layer that can go wrong. Why take the risk? There
> are enough cases of breakage after upgrades - and besides snapshots... is
> the
> amount of additional code running really worth it? Especially with bind
> mounting?

There are always things that can go wrong and I agree, adding additional
layers can increase the risk.
However, the benefits of easily and quickly changing the size of
partitions and creating snapshots for the use of backups are a big enough
benefit to off-set the risk.

Bind-mounting is ok, if you use a single filesystem for everything. I have
partitions that are filled with thousands of small files and partitions
filled with files are are, on average, at 1GB in size.
I haven't found a filesystem yet that successfully handles both of these
with identical performance.
When I first tested performance I found that a simple "ls" in a partition
would appear to just hang. This caused performance issues with my
IMAP-server.
I switched to a filesystem that better handles large amounts of small
files and performance increased significantly.

The way I do backups is that I stop the services, create snapshots and
then restart the services.
I then have plenty of time to backup the snapshot.
If I were to do this differently, I'd end up having a downtime for over an
hour just for a backup.
Now, it's barely a minute of downtime.

That, to me, is a very big bonus.

--
Joost




Re: [gentoo-user] LVM for data drives but not the OS

2011-04-07 Thread J. Roeleveld
On Thu, April 7, 2011 7:31 pm, BRM wrote:
> - Original Message 
>
>> From: Joost Roeleveld 
>> On Thursday 07 April 2011 06:52:26 BRM wrote:
>> > - Original Message  
>> >
>> > > From: Joost Roeleveld 
>> > >
>> > > On Thursday 07 April 2011 06:20:55 BRM wrote:
>> > > >  - Original Message  
>> > > >
>> > > > >  From: Neil Bothwick 
>> > > >  >
>> > > > > On Thu, 07 Apr 2011 05:22:41 -0500, Dale  wrote:
>> > > > > >  I want to do it this  way because  I don't trust LVM enough
>> > > > > >  to put   my
>> > > > > >
>> > > > > > OS
>> > > >  > > on.  Just my  personal  opinion on LVM.
>> > >  > >
>> > > > > This doesn't make sense. Your OS can   be  reinstalled in an
>> hour
>> > > > > or two, your photos etc.  are   irreplaceable.
>> > > >
>> > > > Makes perfect  sense to me as well.
>> > > >
>> > > > Having installed LVM -  and then removed it due to issues; namely,
>> > > > the  fact that  one of the hard drives died taking out the whole
>> LVM
>> > > >  group,  leaving the OS unbootable, and not easily fixable. There
>> >  > > was a thread on  that (started by me) a while back (over a
>> year).
>> > > >
>> > > > So,  perhaps if I had a RAID to  underly so I could mirror drives
>> > > > under LVM
>> > > >
>> > > >  for recovery I'd move to it again. But otherwise it is  just a
>> PITA
>> > > >   waiting
>> > > >
>> > >  > to happen.
>> > > >
>> > > > Ben
>> > >
>> >  > Unfortunately, any method  that spreads a filesystem over multiple
>> disks
>> > > can be
>> > >
>> > > affected if one of   those disks dies unless there is some mechanism
>> in
>> > > place that can  handle the  loss of a disk.
>> > > For that, RAID (with the exception  of striping, eg. RAID-0)
>> provides
>> > > that.
>> > >
>> >  > Just out of curiousity, as I never had the need to look  into this,
>>  I
>> > > think that, in theory, it should be possible to recover  data  from
>> LVs
>> > > that were not
>> > >
>> > > using  the failed drive. Is this assumption correct or  wrong?
>> >
>> > If  you have the LV configuration information, then yes. Since I
>> managed to
>> >  find the configuration information, I was able to remove the affected
>>  PVs
>> > from the VG, and get it back up.
>> > I might still have it  running, but I'll back it out on the next
>> rebuild -
> or
>> > if I have a drive  large enough to do so with in the future. I was
>> wanting
>> > to use LVM as a  bit of a software RAID, but never quite got
>> > that far in the  configuration before it failed. It does do a good job
>> at
>> > what it's  designed for, but I would not trust the OS to it either
>> since the
>> > LVM  configuration is very important to keep around.
>> >
>> > If not, good  luck as far as I can tell.
>> >
>> > Ben
>>
>> LVM isn't actually RAID.  Not in the sense that one gets redundancy. If
>> you
>> consider it to be a  flexible partitioning method, that can span
>> multiple
>>disks,
>>
>> then yes.
>> But  when spanning multiple disks, it will simply act like JBOD or
>> RAID0.
>> Neither  protects someone from a single disk failure.
>>
>> On critical systems, I tend  to use:
>> DISK <-> RAID <-> LVM <-> Filesystem
>>
>> The  disks are as reliable as Google says they are. They fail or they
>> don't.
>> RAID  protects against single disk-failure
>> LVM makes the partitioning  flexible
>> Filesystems are picked depending on what I use the partition  for
>>
>
> The attraction to LVM for me was that from what I could tell it supported
> and
> implemented a software-RAID
> so that I could help protect from disk-failure. I never got around to
> configuring that side of it, but that was my goal.
> Or are you saying I was misunderstanding and LVM _does not_ contain
> software-RAID support?

Unless I am mistaken, LVM does not provide redundancy. It provides
disk-spanning (JBOD) and basic striping (RAID-0).

For redundancy, I would use a proper RAID (either hardware or software).
On top of this, you can then decide to have a single filesystem, LVM or
even partition this.

I think the confusion might have come from the fact that both LVM and
Linux Software Raid use the "Device Mapper" interface in the kernel config
and they are in the same part.

Also, part of the problem is that striping is also called RAID-0. That, to
people who don't fully understand it yet, makes it sound like it is a
RAID.
It actually isn't as it doesn't provide any redundancy.

I do hope you didn't loose too much important data when you had this issue.

--
Joost




Re: [gentoo-user] LVM for data drives but not the OS

2011-04-08 Thread J. Roeleveld
On Fri, April 8, 2011 11:01 pm, Dale wrote:
> Dale wrote:
>>
>>
>> root@fireball / # pvcreate /dev/sdb
>>   Physical volume "/dev/sdb" successfully created
>> root@fireball / #
>>
>> Step one done.  It didn't puke on my keyboard.  lol
>>
>> Now to see what else I can get into.  Not going to put anything
>> important on it tho.  Just a temporary thing right now.  Just getting
>> my feet wet.
>>
>> Dale
>>
>> :-)  :-)
>>
>
> More progress.
>
> root@fireball / # ls -al /dev/mapper/
> total 0
> drwxr-xr-x  2 root root  80 Apr  8 15:56 .
> drwxr-xr-x 16 root root4400 Apr  8 15:56 ..
> crw-rw  1 root root 10, 236 Apr  8 04:39 control
> lrwxrwxrwx  1 root root   7 Apr  8 15:56 sdb--vg-test -> ../dm-0

Looks good :)

> root@fireball / # pvdisplay
>--- Physical volume ---
>PV Name   /dev/sdb
>VG Name   sdb-vg
>PV Size   232.83 GiB / not usable 2.58 MiB
>Allocatable   yes
>PE Size   4.00 MiB
>Total PE  59604
>Free PE   46804
>Allocated PE  12800
>PV UUID   kopUKm-lXy1-7tiq-FuQ2-Xhs5-tGqN-Ls4R1v

Looks fine

> root@fireball / # vgdisplay
>--- Volume group ---
>VG Name   sdb-vg
>System ID
>Formatlvm2
>Metadata Areas1
>Metadata Sequence No  2
>VG Access read/write
>VG Status resizable
>MAX LV0
>Cur LV1
>Open LV   0
>Max PV0
>Cur PV1
>Act PV1
>VG Size   232.83 GiB
>PE Size   4.00 MiB
>Total PE  59604
>Alloc PE / Size   12800 / 50.00 GiB
>Free  PE / Size   46804 / 182.83 GiB
>VG UUID   5OSiWZ-rWza-uKJ2-rVMO-f38G-NBHx-dmAE1K

Looks ok, 50GB of 232.83 assigned

> root@fireball / # lvdisplay
>--- Logical volume ---
>LV Name/dev/sdb-vg/test
>VG Namesdb-vg
>LV UUIDmixhOb-La6D-BwG4-Uz3l-P0ci-oGg5-YI3mN8
>LV Write Accessread/write
>LV Status  available
># open 0
>LV Size50.00 GiB
>Current LE 12800
>Segments   1
>Allocation inherit
>Read ahead sectors auto
>- currently set to 256
>Block device   254:0

Here is the 50GB...

> root@fireball / #
>
> I'm still trying to figure out how the naming part works tho.  Now to
> mount it and put something on it.  See if it works.

Naming part, there are 2 ways of finding it.
1: /dev//
2: /dev/mapper/-

You included a "-" in your VG-name, this is replaced with "--" under
/dev/mapper/

> Let me know if something doesn't look right.  Otherwise, I'll keep
> playing around with it.

Looks fine so far, don't forget to put a filesystem on "/dev/sdb-vg/test"
to be able to mount it somewhere :)

--
Joost




Re: [gentoo-user] Firmware exists but fails to load

2011-08-15 Thread J. Roeleveld
On Mon, August 15, 2011 11:13 am, Adam Carter wrote:
> # dmesg | grep firm
> [   70.453673] r8169 :02:00.0: eth0: unable to load firmware patch
> rtl_nic/rtl8168d-2.fw (-2)
> # ls -l /lib/firmware/rtl_nic/rtl8168d-2.fw
> -rw-r--r-- 1 root root 1324 Aug 12 13:09
> /lib/firmware/rtl_nic/rtl8168d-2.fw
>
> Any ideas why this fails? Filesystem is mounted, file is readable...

Is the filesystem mounted when it tries to find the firmware?
In other words, are you perhaps using a ramdisk?

If you have this drives as a module, can you try removing it (rmmod
 and then reloading it (modprobe )?

If it isn't a module, can you rebuild your kernel to have the relevant
driver as a module?

--
Joost




Re: [gentoo-user] GRUB v2

2011-08-15 Thread J. Roeleveld
On Mon, August 15, 2011 11:52 am, Peter Humphrey wrote:
> Hello List,
>
> I'm sure I saw a thread recently describing progress in understanding and
> using grub-2, but now I can't find it. I have six months of articles here
> too, and I've searched gmane and the gentoo archive. Perhaps I'm being
> dense, or maybe it was on another list.
>
> I want to try another distro on an oldish box, but its gentoo grub can't
> chain to the grub-2 on another boot partition - it reports an invalid
> executable format, or something like that.
>
> Looks like time to bone up on grub-2 as it's the Coming Thing.

6 months might not be enough, there was a thread called "[gentoo-user] A
tiny titillating taste of grub2" and dates back to 9 January 2011.

There also was a thread called "[gentoo-user] [cookbook] grub2 for idiots
like me" by walt (24 January 2011) which is, I believe, what you're
looking for.

--
Joost




Re: [gentoo-user] GRUB v2

2011-08-15 Thread J. Roeleveld
On Mon, August 15, 2011 3:06 pm, Peter Humphrey wrote:
> On Monday 15 August 2011 11:07:31 J. Roeleveld wrote:
>
>> There also was a thread called "[gentoo-user] [cookbook] grub2 for
>> idiots
>> like me" by walt (24 January 2011) which is, I believe, what you're
>> looking for.
>
> That looks like the one. Thanks Joost.

You're welcome, my Gentoo-user archive goes back to 2004 :)





Re: [gentoo-user] Another Install Issue

2011-10-17 Thread J. Roeleveld
On Mon, October 17, 2011 12:35 am, Florian Philipp wrote:



>
> I agree that the problem should be solved but just in case Colleen wants
> to continue with his installation (I know, he is installing Gentoo for
> the first time so I doubt he values his time very high ;-) ), I suggest
> he either implements my proposal outlined above or adds similar code to
> /etc/conf.d/net:
>
> preup() {
> if [ "$IFACE" = eth0 ]; then
> ebegin "Reloading broadcom and tg3 modules"
> modprobe -r foo bar &&
> modprobe broadcom &&
> modprobe tg3
> ewend $? "Failed to reload modules"
> fi
> return 0
> }

For correctness, please change the 4th line above from:
" modprobe -r foo bar && "
to:
" modprobe -r broadcom tg3 && "

I somehow doubt there will be a module called "foo" or "bar" :)

--
Joost




Re: [gentoo-user] Issue 3 - CD Playing

2011-10-19 Thread J. Roeleveld
On Wed, October 19, 2011 7:39 am, Colleen Beamer wrote:
>
> Semi-solved.
>
> On 10/18/11 19:21, Mark Knecht wrote:
>> On Tue, Oct 18, 2011 at 4:16 PM, Colleen Beamer
>>  wrote:
>>> Hi everyone,
>>>
>>>
>>> My CD drive will read data CD's, but will not play audio CD's.  I've
>>> tried with kscd and Kaffeine.
>>>
>>>
>>> When I try to play an audio CD in kaffeine, I get an alert box that
>>> says:
>>> Cannot find input plgin for MRL "cdda://"
> I can now play an audio CD in kaffeine.  I have no idea what I did!  I
> did add a couple of packages and because of this changed some use flags
> and updated my system with --newuse, but that's all I did.
>
> However, I still cannot play a CD in kscd.

Hi Colleen,

I didn't find it in this thread yet, but I am wondering if you have the
CD-drive connected to the soundcard or not.

Some applications will "rip" and play the cdda-tracks directly from the
CD. Others will simply tell the CD-drive to play an audio-cd and have the
cd-drive do the decoding.
In the latter case, the audio-signal goes over a little cable from the
cd-drive to the soundcard.

--
Joost




Re: [gentoo-user] udev rules for an iPod Touch?

2011-11-07 Thread J. Roeleveld
On Sun, November 6, 2011 6:49 pm, Volker Armin Hemmann wrote:
> Am Samstag 05 November 2011, 20:45:15 schrieb Joost Roeleveld:
>
>> Virtualbox has decent USB-pass-through support. Even quite high
>> performance.
>> >Thanks for your help. I do appreciate it
>
> virtualbox is also pretty broken at the moment.

Broken in what way?
I am happily using it without any issues.

--
Joost




Re: [gentoo-user] Network problem with linux server

2011-11-07 Thread J. Roeleveld
On Mon, November 7, 2011 12:13 pm, Massimiliano Ziccardi wrote:
> Hi All.
>
> This problem is not strictly related to gentoo, however I'm sure someone
> here will be able to help me in some way: sorry if I bother you!
>
> I'm having a really strange problem: for some reason, everytime I reboot
> my
> server, the default gateway gets attached to the 'lo' interface, even if I
> correctly attached it to the eth0 device.
>
> I fixed the problem editing the /etc/sysconfig/network file and adding
>
> GATEWAY=195.75.145.1
> GATEWAYDEV=eth0
>
> however I'm not sure this is the solution: I already configured the
> default
> gateway only in the ifcfg-eth0 file!

Which Linux distribution are you using?
Gentoo does not use those files.

Try editing the /etc/conf.d/net file to match your network settings.

--
Joost




  1   2   3   4   5   6   7   8   9   10   >