RE: [gentoo-user] Gentoo router: Conntrack table full
The contents of the connection table is in /proc/net/ip_conntrack Example: tcp 6 65 TIME_WAIT src=192.168.1.4 dst=20.x.y.40 sport=4986 dport=80 src=207.46.109.40 dst=192.168.1.4 sport=80 dport=4986 [ASSURED] mark=0 use=1 So go nuts with grep/awk/sed/sort/uniq etc to find what is consuming all the connections. +1 for what Mike said about dropping the timeouts to something more sensible. FWIW Checkpoint uses a default TCP timer of 1 hour. Use 4 hours to be conservative. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Recovering root password
On Monday 24 March 2008, Grant wrote: > I've revived an old Gentoo laptop, but I've forgotten the root > password. I remember the password to my user account and I can log > in there fine. Can I recover the root password? If you could passwords were useless. ;-) But you can boot from a LiveCD, mount your harddrive, chroot and then give root another password. Uwe -- Informal Linux Group Namibia: http://www.linux.org.na/ SysEx (Pty) Ltd.: http://www.SysEx.com.na/ -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Qmail and Domainkeys
I found this ( http://forums.gentoo.org/viewtopic-t-665798.html ) so I will give that a try. > Greetings, > > Has anyone on the list got qmail to work with domainkeys, if so how? > > Thanks > > Jason > > -- > gentoo-user@lists.gentoo.org mailing list > > -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] 1/2 OT: What Linux could learn from mainframes ?
* Chris Frederick <[EMAIL PROTECTED]> wrote: > Check out LVM (Logical Volume Manager) > > http://tldp.org/HOWTO/LVM-HOWTO/ > http://www.gentoo.org/doc/en/lvm2.xml Yes, at least for the storage stuff, LVM2 can do much of this. But my ideas go some steps futher, eg: * mapping blocks instead of larger chunks * defect management directly on block basis (w/o additional stacking layers). * distributed storages (not just disks, but several hosts) * volumes attributes which let the volume manager decide how/where to actually store blocks, eg.: + mirroring: min/max number of copies, allowed device classes + compression: allowed algos or grades + encryption: ciphers, keys, ... + reliability: hard/limit (eg. use "unstable" disks exceptionally) + caching: allow some volumes to be cached on fast devices ... cu -- - Enrico Weigelt== metux IT service - http://www.metux.de/ - Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ - -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] defect management block device
* Alan McKinnon <[EMAIL PROTECTED]> wrote: > If SMART (or something conceptually similar) detects that a drive might > be failing and be beyond the range of the drive's ability to cope, it > could raise an event and move the blocks used to another disk. And it even would get funnier if the drive's relocation table could be accessed (no idea if this is possible): The LVM would notice if the drive has relocated an (LBA) block, move it out of the way (somewhere else in the LV) and then remove the relocation (never access that LBA block anymore). This way an slowly dying disk can be used for quite a long time. Think of boxes with very limited physical access (eg. outoor field systems) or huge archives w/ non-critical/regeneratable data (eg. media collections w/ originals available, mirrors, etc). The idea of using even old and damaged disks at really low costs (not counting the power consumption ;-P) is seems quite fascinating to me :) cu -- - Enrico Weigelt== metux IT service - http://www.metux.de/ - Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ - -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] Qmail and Domainkeys
Greetings, Has anyone on the list got qmail to work with domainkeys, if so how? Thanks Jason -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Error emerging gtk+ Pango not found (expat issue or not?)
* Patrick Holthaus <[EMAIL PROTECTED]> wrote: > > What does config.out say about this ? > > There is no config.out in /var/tmp/portage. You can find build.log and > config.log here: yeah, I meant config.log ;-o ... and it clearly tells what's wrong. cairo's obviously built w/ GL, and your GL library is broken. In no way surprising, since it's NVidia's proprietary crap. You could try switching to another GL (via eselect) or rebuilding cairo w/o GL. BTW: if you experience system lockups or X11 crashes, also the NVidia driver may be the source of evil. Sad but true: there is *NO* reliable 3D driver for recent NVidia cards. NV's proprietary driver is crap, and they're totally unwilling to support OSS community in any way. So if you really want GL, either try software rendering (via mesa) or get a supported card. (I've got the same problem - didn't properly check before bying :( ) cu -- - Enrico Weigelt== metux IT service - http://www.metux.de/ - Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ - -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Recovering root password
> > I've revived an old Gentoo laptop, but I've forgotten the root > > password. I remember the password to my user account and I can log in > > there fine. Can I recover the root password? > > On the grub menu, edit the entry of the system you want to boot and on the > kernel line, add "init=/bin/bash" without the quotes. Boot that modded boot > instructions sequence. After kernel loads, you'll have a bash. Type: "mount > -o rw,remount /" > Then type "passwd", put the new root pwd. Remount the partition read-only: > "mount -o ro,remount /" and reboot. Done! Done deal, thanks everyone. - Grant -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Recovering root password
> It's probably better to use a shell designed for rescue work, > like sash or busybox instead of bash, especially if /usr is on a > separate filesystem. The statically linked bash acutally works rather well for this. The main advantage I've found using it for recovery situations is that I'm used to it: sourceing root's .bash_profile is enough to give a familiar environment. -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St [EMAIL PROTECTED] Woodhaven, NY 11421 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Linux & Motherboard
Nicola Degl'Innocenti wrote: Hi! I would like to buy a new pc, but since I use linux more than windows (that i use only for gaming), I am interested in hardware compatibility with linux. I'm planing to buy a core 2 Duo platform with a nvidia 8800 GT, but i am very confused about the motherboard. The cheapest shop vendor only have asus motherboard so i don't have much choice. - Asus P5E X38 DDR2 for 189 € - Asus P5K/pro iP35 for 114 € - Asus P5N32-E/SLI 680i for 199€ - Asus P5N-T dlx 780i 232€ Someone have one of those cards or know a good site with information about linux compatibility for those cards? I've never had a problem with Asus motherboards and Linux - in fact, they are my preferred manufacturer. My last Asus board was an M3A for an AMD Phenom CPU which is irrelevant to your case, unfortunately. However, my last two build have been using Intel Q6600 CPUs (Core 2 quad) using J&W motherboards with the Intel P35 chipset so I can say that chipset works absolutely fine with Linux. :) I believe any of those boards you list should be fine but the P5K/Pro iP35 seems to offer the best value for money. Be lucky, Neil -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Linux & Motherboard
On Mon, Mar 24, 2008 at 11:43 PM, Nicola Degl'Innocenti <[EMAIL PROTECTED]> wrote: > Hi! > I would like to buy a new pc, but since I use linux more than windows (that i > use only for gaming), I am interested in hardware compatibility with linux. > > I'm planing to buy a core 2 Duo platform with a nvidia 8800 GT, but i am very > confused about the motherboard. The cheapest shop vendor only have asus > motherboard so i don't have much choice. > - Asus P5E X38 DDR2 for 189 € > - Asus P5K/pro iP35 for 114 € > - Asus P5N32-E/SLI 680i for 199€ > - Asus P5N-T dlx 780i 232€ > > Someone have one of those cards or know a good site with information about > linux compatibility for those cards? > I am running a Core 2 Duo E6750 mounted on a P5K + PNY 8800 GTS 640Mo with no problem. It just requires a 2.6.23 kernel with Jmicron support. Gal' z�b�� z{h���x%��
[gentoo-user] Linux & Motherboard
Hi! I would like to buy a new pc, but since I use linux more than windows (that i use only for gaming), I am interested in hardware compatibility with linux. I'm planing to buy a core 2 Duo platform with a nvidia 8800 GT, but i am very confused about the motherboard. The cheapest shop vendor only have asus motherboard so i don't have much choice. - Asus P5E X38 DDR2 for 189 € - Asus P5K/pro iP35 for 114 € - Asus P5N32-E/SLI 680i for 199€ - Asus P5N-T dlx 780i 232€ Someone have one of those cards or know a good site with information about linux compatibility for those cards? The SLI capability is not important as having ethernet or sound supported on linux. Thank a lot. Nicola -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Recovering root password
On Mon, 24 Mar 2008 17:40:13 -0300, Ricardo Saffi Marques wrote: > On the grub menu, edit the entry of the system you want to boot and on > the kernel line, add "init=/bin/bash" without the quotes. Boot that > modded boot instructions sequence. After kernel loads, you'll have a > bash. Type: "mount -o rw,remount /" Or just add "rw init=/bin/sh" to avoid remounting /. It's probably better to use a shell designed for rescue work, like sash or busybox instead of bash, especially if /usr is on a separate filesystem. -- Neil Bothwick "We are Microsoft of Borg. Prepare to" The application "assimilation" has caused a General Protection Fault and must exit immediately. signature.asc Description: PGP signature
Re: [gentoo-user] Recovering root password
On Mon, 2008-03-24 at 15:39 -0500, Dale wrote: > Grant wrote: > > I've revived an old Gentoo laptop, but I've forgotten the root > > password. I remember the password to my user account and I can log in > > there fine. Can I recover the root password? > > > > - Grant > > > > I think you can boot into single user mode and reset it. You have to > put it on the end of the grub boot line but I can't recall what the > exact option is. May help you search tho. > > You can also boot the CD and chroot in to reset it as well. I'm sure > that will work just as well. > > Dale > > :-) :-) The option is "single" but it won't help because it requests the root password before it gives you your /bin/bash. Anyway, if you have sudo-rights, you can simply do "sudo passwd" and it won't ask you for the old password. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Recovering root password
On Mon, Mar 24, 2008 at 5:45 PM, Steven Lembark <[EMAIL PROTECTED]> wrote: > It's acutally a good idea to keep a static bash and just put this into > grub as the 'shell-init' or 'rgh' entry (it's in their example config). That's what I do, at least. ;) I have that boot entry for cases like that (or worse :-)) -- Ricardo Saffi Marques Laboratório de Administração e Segurança de Sistemas (LAS/IC) Universidade Estadual de Campinas (UNICAMP) Cell: +55 (19) 8128-0435 Skype: ricardo_saffi_marques Website: http://www.rsaffi.com
Re: [gentoo-user] defect management block device
On Monday 24 March 2008, Eric Martin wrote: > > Just a thought, maybe you know some aspect of disks that I don't > > and can see where this would be useful. From where I sit, I can;t > > see any such use-case. > > > > > > While I see what Alan is saying, I'm pretty sure LVM does it. Device > Drivers -> Multiple Devices Driver Support -> Bad Block Relocation > Device Target. I've never played with it but I assume there's a lot > of good reading on it. Which gives me an idea on where such a thing might be useful - RAID If SMART (or something conceptually similar) detects that a drive might be failing and be beyond the range of the drive's ability to cope, it could raise an event and move the blocks used to another disk. This could give another level of data protection rather than just simply relying on multiple copies as current RAID schemes mostly do -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Recovering root password
> On the grub menu, edit the entry of the system you want to boot and on the > kernel line, add "init=/bin/bash" without the quotes. Boot that modded boot > instructions sequence. After kernel loads, you'll have a bash. Type: "mount > -o rw,remount /" Make sure that your bash is statically linked, otherwise you can run into problems with this approach. It's acutally a good idea to keep a static bash and just put this into grub as the 'shell-init' or 'rgh' entry (it's in their example config). -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St [EMAIL PROTECTED] Woodhaven, NY 11421 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Recovering root password
On Monday 24 March 2008, Grant wrote: > I've revived an old Gentoo laptop, but I've forgotten the root > password. I remember the password to my user account and I can log > in there fine. Can I recover the root password? No, that would require undoing high-quality encryption schemes. Which is a good thing, otherwise your internet banking couldn't be safe (amongst other similar evils) What you can do is replace the root password with something else: Boot from any old LiveCD, mount your gentoo partitions somewhere, chroot into them as root and run 'passwd' If this sounds familiar, it's because it's the same process you used to install Gentoo in the first place :-) -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Recovering root password
On Mon, Mar 24, 2008 at 5:30 PM, Grant <[EMAIL PROTECTED]> wrote: > I've revived an old Gentoo laptop, but I've forgotten the root > password. I remember the password to my user account and I can log in > there fine. Can I recover the root password? On the grub menu, edit the entry of the system you want to boot and on the kernel line, add "init=/bin/bash" without the quotes. Boot that modded boot instructions sequence. After kernel loads, you'll have a bash. Type: "mount -o rw,remount /" Then type "passwd", put the new root pwd. Remount the partition read-only: "mount -o ro,remount /" and reboot. Done! -- Ricardo Saffi Marques Laboratório de Administração e Segurança de Sistemas (LAS/IC) Universidade Estadual de Campinas (UNICAMP) Cell: +55 (19) 8128-0435 Skype: ricardo_saffi_marques Website: http://www.rsaffi.com
Re: [gentoo-user] Recovering root password
Grant wrote: I've revived an old Gentoo laptop, but I've forgotten the root password. I remember the password to my user account and I can log in there fine. Can I recover the root password? - Grant I think you can boot into single user mode and reset it. You have to put it on the end of the grub boot line but I can't recall what the exact option is. May help you search tho. You can also boot the CD and chroot in to reset it as well. I'm sure that will work just as well. Dale :-) :-) -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Recovering root password
On Mon, Mar 24, 2008 at 4:30 PM, Grant <[EMAIL PROTECTED]> wrote: > I've revived an old Gentoo laptop, but I've forgotten the root > password. I remember the password to my user account and I can log in > there fine. Can I recover the root password? > > - Grant Hi, boot with a liveCD, mount the gentoo partition, chroot into it and type 'passwd' regards, Boris. > -- > gentoo-user@lists.gentoo.org mailing list > > -- $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2 \ aX5aX8axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4 \ ax3aX4aXaX12ax10aaX7a").join' -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] Recovering root password
I've revived an old Gentoo laptop, but I've forgotten the root password. I remember the password to my user account and I can log in there fine. Can I recover the root password? - Grant -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] defect management block device
Alan McKinnon wrote: On Monday 24 March 2008, Enrico Weigelt wrote: does anyone know an (virtual) block device which can do automatic defect management (if the underlying disks have badblocks) ? My idea goes like this: * one or more devices are assigned to one block device * a bunch of spare blocks are reserved for defect management (so the device looks smaller than the sum of assigned disks) * if an badblock is detected, it's automatically remapped to an spare block In fact, just what drive-internal defect manangement does, but at OS / driver level. I don't see the point, unless you are dealing with drives that do not have defect management. What makes you think you can accomplish this result better than the firmware on the drive? It seems to me that if the drive firmware missed the opportunity to relocate the bad block, then your window of opportunity to do it in your code has long since passed. IOW, the OS code cannot possibly ever achieve it's design result. Just a thought, maybe you know some aspect of disks that I don't and can see where this would be useful. From where I sit, I can;t see any such use-case. While I see what Alan is saying, I'm pretty sure LVM does it. Device Drivers -> Multiple Devices Driver Support -> Bad Block Relocation Device Target. I've never played with it but I assume there's a lot of good reading on it. -- HTH, Eric -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] crontab entry
On Mon, Mar 24, 2008 at 9:13 PM, Kaushal Shriyan <[EMAIL PROTECTED]> wrote: > On Mon, Mar 24, 2008 at 7:59 PM, Mike Edenfield <[EMAIL PROTECTED]> wrote: > > > Kaushal Shriyan wrote: > > > Hi I have the following entry in the crontab > > > > > > [EMAIL PROTECTED] > > > 0 18 * * * /home/kaushal/rsync_mysql.sh > > > > > > I want my subject line to be "hostxx:yyDB refresh daily" > > > > > > is there a way to do it > > > > > > Thanks and Regards > > > > > > Kaushal > > > > > > > The easiest way is to write a wrapper script; I have a few of them that > > do something like: > > > > > > ( > > echo "From: songbird.jungle <[EMAIL PROTECTED]>" > > echo "To: Michael Edenfield <[EMAIL PROTECTED]>" > > echo "Subject: Portage Update Report" > > echo "" > > > > # do stuff here. > > > > ) | sendmail [EMAIL PROTECTED] > > > > -- > > gentoo-user@lists.gentoo.org mailing list > > > > > > Hi, > > I have two scripts file one is http://pastebin.com/m263e6f3c and > http://pastebin.com/m175098db. > > The requirement is run http://pastebin.com/m175098db script once the below > line succeeds in the http://pastebin.com/m263e6f3c > > if /usr/bin/rsync -av /var/lib/mysql host77:/var/lib/ > > /tmp/rsync-${TIMESTAMP}.log 2>&1 > then > /usr/bin/mailx -s "Success: host77 DB refresh daily" [EMAIL PROTECTED]< > /tmp/rsync-${TIMESTAMP}.log > > I am not able to proceed > > Thanks and Regards > > Kaushal > Hi I have combined the script http://pastebin.com/m77e0e752, is it ok Thanks and Regards Kaushal
Re: [gentoo-user] 1/2 OT: What Linux could learn from mainframes ?
Alan McKinnon wrote: On Monday 24 March 2008, Enrico Weigelt wrote: One very interesting point (IMHO) is the storage abstraction. [snip] I'm currently planning to implement an similar approach for Linux (at least virtual block devices). You might want to check out Plan 9 from Bell Labs: http://plan9.bell-labs.com/plan9/ Have fun, Roy -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] iwl4965 performance
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I am using the iwl4965 driver which is included in the kernel 2.6.25-rc6. Everything works fine (Networkmanager, WPA2, etc.) The only thing I experience is a very bad performance. I cannot get more than around 30 kb/s. Also the responses are rather slow. If I open some new tabs in firefox it takes up to 5 seconds before there is enough data to render something. When using wired network its much faster. The router is also not the source of the problem, with my old airo card i could get up to 200 kb/s, the macbook running gentoo gets to around 500kb/s. Any ideas where to start investigation ? Thanks Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH59amrpEWPKIUt7MRAqdhAJ9+QC796Ru3Gy3QxnEbpuSopk2FEgCfXCDA wYRlsepf7rwt+5FgzlaUw2M= =k17g -END PGP SIGNATURE- -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] defect management block device
On Monday 24 March 2008, Enrico Weigelt wrote: > Hi folks, > > > does anyone know an (virtual) block device which can do automatic > defect management (if the underlying disks have badblocks) ? > > My idea goes like this: > * one or more devices are assigned to one block device > * a bunch of spare blocks are reserved for defect management > (so the device looks smaller than the sum of assigned disks) > * if an badblock is detected, it's automatically remapped > to an spare block > > In fact, just what drive-internal defect manangement does, but > at OS / driver level. I don't see the point, unless you are dealing with drives that do not have defect management. What makes you think you can accomplish this result better than the firmware on the drive? It seems to me that if the drive firmware missed the opportunity to relocate the bad block, then your window of opportunity to do it in your code has long since passed. IOW, the OS code cannot possibly ever achieve it's design result. Just a thought, maybe you know some aspect of disks that I don't and can see where this would be useful. From where I sit, I can;t see any such use-case. -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] 1/2 OT: What Linux could learn from mainframes ?
On Monday 24 March 2008, Enrico Weigelt wrote: > Hi folks, > > > after reading several articles about Mainframes and similar archs > (even ancient ones like B7000), I wonder if Linux world could > learn something from there. > > One very interesting point (IMHO) is the storage abstraction. > AFAIK, Mainframes work on one large virtual memory (disks for > swapping out RAM, tapes for swapping out disks, etc). > This way you just allocate some piece of space (like some virtual > partition) to an application (of guest). If you need more space, > just plug in more disks and the OS will handle all this > automatically. > > I'm currently planning to implement an similar approach for Linux > (at least virtual block devices). > > What do you think about this ? I believe these concepts are to a large degree implemented in an existing product. It's called ZFS. Pity about the license though. We are out in the cold. -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] crontab entry
On Mon, Mar 24, 2008 at 7:59 PM, Mike Edenfield <[EMAIL PROTECTED]> wrote: > Kaushal Shriyan wrote: > > Hi I have the following entry in the crontab > > > > [EMAIL PROTECTED] > > 0 18 * * * /home/kaushal/rsync_mysql.sh > > > > I want my subject line to be "hostxx:yyDB refresh daily" > > > > is there a way to do it > > > > Thanks and Regards > > > > Kaushal > > > > The easiest way is to write a wrapper script; I have a few of them that > do something like: > > > ( > echo "From: songbird.jungle <[EMAIL PROTECTED]>" > echo "To: Michael Edenfield <[EMAIL PROTECTED]>" > echo "Subject: Portage Update Report" > echo "" > > # do stuff here. > > ) | sendmail [EMAIL PROTECTED] > > -- > gentoo-user@lists.gentoo.org mailing list > > Hi, I have two scripts file one is http://pastebin.com/m263e6f3c and http://pastebin.com/m175098db. The requirement is run http://pastebin.com/m175098db script once the below line succeeds in the http://pastebin.com/m263e6f3c if /usr/bin/rsync -av /var/lib/mysql host77:/var/lib/ > /tmp/rsync-${TIMESTAMP}.log 2>&1 then /usr/bin/mailx -s "Success: host77 DB refresh daily" [EMAIL PROTECTED] < /tmp/rsync-${TIMESTAMP}.log I am not able to proceed Thanks and Regards Kaushal
Re: [gentoo-user] Error emerging gtk+ Pango not found (expat issue or not?)
Hi! > What does config.out say about this ? There is no config.out in /var/tmp/portage. You can find build.log and config.log here: http://big.homeftp.net/~pholthau/ Tell me if you need other files aswell. Patrick -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] 1/2 OT: What Linux could learn from mainframes ?
On Mon, 2008-03-24 at 16:03 +0100, Enrico Weigelt wrote: > Hi folks, > > > after reading several articles about Mainframes and similar archs > (even ancient ones like B7000), I wonder if Linux world could > learn something from there. > > One very interesting point (IMHO) is the storage abstraction. > AFAIK, Mainframes work on one large virtual memory (disks for > swapping out RAM, tapes for swapping out disks, etc). > This way you just allocate some piece of space (like some virtual > partition) to an application (of guest). If you need more space, > just plug in more disks and the OS will handle all this automatically. > > I'm currently planning to implement an similar approach for Linux > (at least virtual block devices). > > What do you think about this ? I am not certain this is the true for mainframes, at least not all of them. But interestingly enough the Unununium project had a similar philosophy, basically L1/2 cache, RAM, and disk were essentially the same things, though with different price/performance ratios, and that each should be indistinguishable for the user. Personally I don't think that level of abstraction provides any great benefit for the user, though from a strictly technical standpoint it is at least interesting. If you are speaking strictly of hot-pluggable memory/storage then Linux has this already (if the hardware supports it), and at least Xen gives a similar "mainframe" type feeling for allocating/deallocating storage/memory for guests on-the-fly. -a -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] 1/2 OT: What Linux could learn from mainframes ?
Enrico Weigelt wrote: Hi folks, after reading several articles about Mainframes and similar archs (even ancient ones like B7000), I wonder if Linux world could learn something from there. One very interesting point (IMHO) is the storage abstraction. AFAIK, Mainframes work on one large virtual memory (disks for swapping out RAM, tapes for swapping out disks, etc). This way you just allocate some piece of space (like some virtual partition) to an application (of guest). If you need more space, just plug in more disks and the OS will handle all this automatically. I'm currently planning to implement an similar approach for Linux (at least virtual block devices). What do you think about this ? cu Check out LVM (Logical Volume Manager) http://tldp.org/HOWTO/LVM-HOWTO/ http://www.gentoo.org/doc/en/lvm2.xml Seems to do exactly what you're talking about. Chris -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Error emerging gtk+ Pango not found (expat issue or not?)
* Patrick Holthaus <[EMAIL PROTECTED]> wrote: > Hi Gentooers! > > I don't know if I am facing the expat issue or not. gtk fails with the > following error message: > > > checking Pango flags... > > -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > > -I/usr/include/cairo -I/usr/include/freetype2 > > -I/usr/include/libpng12 -I/usr/include/pixman-1 > > -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl > > -lglib-2.0 > > configure: error: > > *** Can't link to Pango. Pango is required to build > > *** GTK+. For more information see http://www.pango.org > What does config.out say about this ? cu -- - Enrico Weigelt== metux IT service - http://www.metux.de/ - Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ - -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] 1/2 OT: What Linux could learn from mainframes ?
Hi folks, after reading several articles about Mainframes and similar archs (even ancient ones like B7000), I wonder if Linux world could learn something from there. One very interesting point (IMHO) is the storage abstraction. AFAIK, Mainframes work on one large virtual memory (disks for swapping out RAM, tapes for swapping out disks, etc). This way you just allocate some piece of space (like some virtual partition) to an application (of guest). If you need more space, just plug in more disks and the OS will handle all this automatically. I'm currently planning to implement an similar approach for Linux (at least virtual block devices). What do you think about this ? cu -- - Enrico Weigelt== metux IT service - http://www.metux.de/ - Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ - -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] AMD vs. Intel on Gentoo?
Hi folks, from an "typical" SME view (mostly workstation and fileservers) I don't really see an performance difference worth thinking of (as already stated, there're lot's of other bottlenecks, like storage IO). AMD tends to win this battle by price, but Intel tends to be a bit more rubust: I'm still running a bunch of P3 boxes and never get an CPU killed, but Athlon's ("plain", not notebook variants) can be easily burned by improper cooling. But with an good cooling (eg. NOT using cheap gel beared fans), I don't see major problems. So for most cases I personally prefer AMD simply by costs. BTW: I'd really interested in experience reports about completely different architectures (eg. RISC based). cu -- - Enrico Weigelt== metux IT service - http://www.metux.de/ - Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ - -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] defect management block device
Hi folks, does anyone know an (virtual) block device which can do automatic defect management (if the underlying disks have badblocks) ? My idea goes like this: * one or more devices are assigned to one block device * a bunch of spare blocks are reserved for defect management (so the device looks smaller than the sum of assigned disks) * if an badblock is detected, it's automatically remapped to an spare block In fact, just what drive-internal defect manangement does, but at OS / driver level. cu -- - Enrico Weigelt== metux IT service - http://www.metux.de/ - Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ - -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] Re: Bug in server_test.c
Oops. Wrong group... On 2008-03-24, Grant Edwards <[EMAIL PROTECTED]> wrote: > There appears to be a bug in server_test.c: > > ecos-opt/net/net/common/current/tests/server_test.c -- Grant -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] HELP! partition table is corrupted
* Stroller <[EMAIL PROTECTED]> wrote: > >- is the photorec able to search data in this partition table > >corruption level? > > Read the tool's homepage. But I'm pretty sure it just looks at the > bits on the drive and saves any collection of said bits which match > specification for a jpeg, doc &c file. I.E. no remaining filesystem > is needed, it does exactly what you need (although filenames aren't > preserved. I don't know about the other suggestions, so they might be > worth trying first. Yes, photorec is an completely different thing. It scans through all blocks on disk and tries to find out what kind of files they might belong to. This way you can reconstruct a lot of files if you lost the fs' metadata (which can happen easily on FAT :(). But this is an heuristic, not an stable approach. So you have to look through all reconstructed files if they're really okay. If just the partition table is broken, you shouldn't play with this - use testdisk instead. cu -- - Enrico Weigelt== metux IT service - http://www.metux.de/ - Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ - -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] crontab entry
Kaushal Shriyan wrote: Hi I have the following entry in the crontab [EMAIL PROTECTED] 0 18 * * * /home/kaushal/rsync_mysql.sh I want my subject line to be "hostxx:yyDB refresh daily" is there a way to do it Thanks and Regards Kaushal The easiest way is to write a wrapper script; I have a few of them that do something like: ( echo "From: songbird.jungle <[EMAIL PROTECTED]>" echo "To: Michael Edenfield <[EMAIL PROTECTED]>" echo "Subject: Portage Update Report" echo "" # do stuff here. ) | sendmail [EMAIL PROTECTED] -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] HELP! partition table is corrupted
* Florian Philipp <[EMAIL PROTECTED]> wrote: > Try testdisk. It's ncurses-based and easy to use. It saved my sorry arse > twice. ACK. If *just* the partition table is lost, but no damage inside the individual partitions, testdisk can easily reconstruct it but looking for superblocks (even w/ FAT). Used it several times successfully. Testdisk folks did a great work :) cu -- - Enrico Weigelt== metux IT service - http://www.metux.de/ - Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ - -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] Bug in server_test.c
There appears to be a bug in server_test.c: ecos-opt/net/net/common/current/tests/server_test.c 94 95 #ifdef CYGPKG_LIBC_STDIO 96 sprintf(buf, "Hello %s:%d\n", inet_ntoa(client_addr.sin_addr), ntohs(client_addr.sin_port)); 97 #else 98 strcpy(buf, "Hello "); 99 strcat(buf, inet_ntoa(client_addr.sin_addr)); 100 strcat(buf,":"); 101 strcat(buf, atoi(ntohs(client_addr.sin_port))); 102 strcat(buf,"\n"); 103 #endif In line 101, the call to atoi() doesn't look right. Shouldn't that be a call to itoa() (assuming such a function existed)? -- Grant -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] Error emerging gtk+ Pango not found (expat issue or not?)
Hi Gentooers! I don't know if I am facing the expat issue or not. gtk fails with the following error message: > checking Pango flags... > -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/cairo -I/usr/include/freetype2 > -I/usr/include/libpng12 -I/usr/include/pixman-1 > -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl > -lglib-2.0 > configure: error: > *** Can't link to Pango. Pango is required to build > *** GTK+. For more information see http://www.pango.org However revdep-rebuild --library=libexpat.so.0 doesn't show anything. I already did the following: > emerge -1 gettext XML-Parser > revdep-rebuild -i That didn't help so I also tried: > emerge -1 fontconfig pango That one did not make it any better. So I tried unmerging cairo and pango: > emerge -C cairo pango gtk+ Cairo and pango emerged fine after that but gtk+ is still failing. Now I don't have gtk+ anymore :( Atfer that I tried rebuilding every package that depends on expat. Still no luck :( Someone knows a solution? I'm on ~x86 with cairo-1.5.12, pango-1.20.0, expat-2.0.1. Tried gtk+-2.12.8 and 2.12.9. Thanks Patrick -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] crontab entry
On Monday 24 March 2008, Kaushal Shriyan wrote: > On Mon, Mar 24, 2008 at 4:36 PM, Peter Humphrey > <[EMAIL PROTECTED]> > > wrote: > > On Monday 24 March 2008 10:19:25 Collin Starkweather wrote: > > > ... you left a '>' out of your rsync call. It's fixed below. > > > > His version is exactly the same as yours, apart from layout. I > > suggest that > > the '>' at the beginning of a line has confused your mail reader. > > > > -- > > Rgds > > Peter > > -- > > gentoo-user@lists.gentoo.org mailing list > > Hi Collin > > I have two scripts file > one is http://pastebin.com/m263e6f3c and > http://pastebin.com/m175098db. > > The requirement is run http://pastebin.com/m175098db script once > the below line succeeds in the http://pastebin.com/m263e6f3c > > if /usr/bin/rsync -av /var/lib/mysql host77:/var/lib/ > > /tmp/rsync-${TIMESTAMP}.log 2>&1 > then > /usr/bin/mailx -s "Success: host77 DB refresh daily" > [EMAIL PROTECTED] < /tmp/rsync-${TIMESTAMP}.log > > I am not able to proceed Make that last line: cat /tmp/rsync-${TIMESTAMP}.log | mailx -s "blablabla"... Uwe -- Informal Linux Group Namibia: http://www.linux.org.na/ SysEx (Pty) Ltd.: http://www.SysEx.com.na/ -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] crontab entry
On Mon, Mar 24, 2008 at 4:36 PM, Peter Humphrey <[EMAIL PROTECTED]> wrote: > On Monday 24 March 2008 10:19:25 Collin Starkweather wrote: > > > ... you left a '>' out of your rsync call. It's fixed below. > > His version is exactly the same as yours, apart from layout. I suggest > that > the '>' at the beginning of a line has confused your mail reader. > > -- > Rgds > Peter > -- > gentoo-user@lists.gentoo.org mailing list > > Hi Collin I have two scripts file one is http://pastebin.com/m263e6f3c and http://pastebin.com/m175098db. The requirement is run http://pastebin.com/m175098db script once the below line succeeds in the http://pastebin.com/m263e6f3c if /usr/bin/rsync -av /var/lib/mysql host77:/var/lib/ > /tmp/rsync-${TIMESTAMP}.log 2>&1 then /usr/bin/mailx -s "Success: host77 DB refresh daily" [EMAIL PROTECTED] < /tmp/rsync-${TIMESTAMP}.log I am not able to proceed Thanks and Regards Kaushal
Re: [gentoo-user] crontab entry
On Monday 24 March 2008 10:19:25 Collin Starkweather wrote: > ... you left a '>' out of your rsync call. It's fixed below. His version is exactly the same as yours, apart from layout. I suggest that the '>' at the beginning of a line has confused your mail reader. -- Rgds Peter -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] crontab entry
Am Montag, 24. März 2008 schrieb Kaushal Shriyan: > So the Final script looks like Is it the final script :-) ? > #!/bin/bash > #rsync mysql database shell script > #author kaushal > #bash script file name rsync_mysql.sh > #created on 24/03/2008 > > TIMESTAMP=`date +%Y-%m-%d-%H:%M:%S:%N` > > if /usr/bin/rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ 2>&1 | > /usr/bin/tee /tmp/rsync-${TIMESTAMP}.log | /usr/bin/mailx -s "host77 DB > refresh daily" [EMAIL PROTECTED] > > then > echo "Success" > else > echo "Please check the file rsync-${TIMESTAMP}.log for errors." > fi > > Please let me know if its correct There's no need for the if-then-else part anymore. You get the whole output mailed to the given address. However, if you follow Collins very good proposal, you could do with: if /usr/bin/rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ > /tmp/rsync-${TIMESTAMP}.log 2>&1 then subj_prefix="Success" else subj_prefix="Error" fi cat /tmp/rsync-${TIMESTAMP}.log| /usr/bin/mailx -s "${subj_prefix}: host77 DB refresh daily" [EMAIL PROTECTED] So that you can tell from the subject wether the command was succesful or not. Bye... Dirk signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] crontab entry
Quoting Kaushal Shriyan <[EMAIL PROTECTED]>: so according to your suggestion where does this line fits "cat /tmp/file|mailx -s "my subject" [EMAIL PROTECTED]" <[EMAIL PROTECTED]> in my above bash script Dirk gave a lovely one-liner, but my guess is you'll get sick of having to actually check the body of the e-mail to know whether there is a problem, so you could also put the system call to mailx in the if-then-else-fi and indicate in the subject line whether it is a success or failure. Also, you want to cut out the echo or else cron will send an e-mail (remember cron sends an e-mail if there's any output from the command), which is redundant now that you're calling mailx. Finally, note that you left a '>' out of your rsync call. It's fixed below. #!/bin/bash #rsync mysql database shell script #author kaushal #created on 21/03/2008 TIMESTAMP=`date +%Y-%m-%d-%H:%M:%S:%N` if rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ \ > /tmp/rsync-${TIMESTAMP}.log 2>&1 then cat /tmp/rsync-${TIMESTAMP}.log | \ mailx -s "Success: hostxx:yyDB refresh daily" <[EMAIL PROTECTED]> else cat /tmp/rsync-${TIMESTAMP}.log | \ mailx -s "Error: hostxx:yyDB refresh daily" <[EMAIL PROTECTED]> fi Hope this helps, Cheers, -Collin -- Collin Starkweather, Ph.D. http://www.linkedin.com/in/collinstarkweather -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] crontab entry
On Mon, Mar 24, 2008 at 3:17 PM, Dirk Heinrichs <[EMAIL PROTECTED]> wrote: > Am Montag, 24. März 2008 schrieb Kaushal Shriyan: > > On Mon, Mar 24, 2008 at 2:44 PM, Dirk Heinrichs < > [EMAIL PROTECTED]> > > > > wrote: > > > Am Montag, 24. März 2008 schrieb Kaushal Shriyan: > > > > [EMAIL PROTECTED] > > > > 0 18 * * * /home/kaushal/rsync_mysql.sh > > > > > > > > I want my subject line to be "hostxx:yyDB refresh daily" > > > > > > > > is there a way to do it > > > > > > Don't rely on cron to send the mail, use mailx inside your script > > > instead. That means, inside the script, capture all output in a temp. > > > file, then use > > > > > > cat /tmp/file|mailx -s "my subject" [EMAIL PROTECTED] > > > > > > HTH... > > > > > >Dirk > > > > Hi Dirk > > > > Below is my script > > > ### > >## > > > > #!/bin/bash > > #rsync mysql database shell script > > #author kaushal > > #created on 21/03/2008 > > > > TIMESTAMP=`date +%Y-%m-%d-%H:%M:%S:%N` > > > > if rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ > > > > >/tmp/rsync-${TIMESTAMP}.log 2>&1 > > > > then > > echo "Success" > > else > > echo "Please check the file rsync-${TIMESTAMP}.log for errors." > > fi > > > > > ### > >## > > > > so according to your suggestion where does this line fits "cat > > /tmp/file|mailx -s "my subject" [EMAIL PROTECTED]" < > [EMAIL PROTECTED]> > > in my above bash script > > > > Thanks and Regards > > > > Kaushal > > Hmm, if the script is used from cron only, you could reduce it to the > following (note that when run from cron, you may need to use full paths to > your binaries, or set $PATH inside the script): > > /usr/bin/rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ > 2>&1 |/usr/bin/tee /tmp/rsync-${TIMESTAMP}.log | /usr/bin/mailx -s "My > subject" [EMAIL PROTECTED] > > This will mail the output and save it to a file at the same time. > > HTH... > >Dirk > Hi Dirk, Thanks Dirk So the Final script looks like ## #!/bin/bash #rsync mysql database shell script #author kaushal #bash script file name rsync_mysql.sh #created on 24/03/2008 TIMESTAMP=`date +%Y-%m-%d-%H:%M:%S:%N` if /usr/bin/rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ 2>&1 | /usr/bin/tee /tmp/rsync-${TIMESTAMP}.log | /usr/bin/mailx -s "host77 DB refresh daily" [EMAIL PROTECTED] then echo "Success" else echo "Please check the file rsync-${TIMESTAMP}.log for errors." fi ## and the crontab entry would be 0 18 * * * /home/kaushal/rsync_mysql.sh Please let me know if its correct Thanks again Thanks and Regards Kaushal
Re: [gentoo-user] crontab entry
Am Montag, 24. März 2008 schrieb Kaushal Shriyan: > On Mon, Mar 24, 2008 at 2:44 PM, Dirk Heinrichs <[EMAIL PROTECTED]> > > wrote: > > Am Montag, 24. März 2008 schrieb Kaushal Shriyan: > > > [EMAIL PROTECTED] > > > 0 18 * * * /home/kaushal/rsync_mysql.sh > > > > > > I want my subject line to be "hostxx:yyDB refresh daily" > > > > > > is there a way to do it > > > > Don't rely on cron to send the mail, use mailx inside your script > > instead. That means, inside the script, capture all output in a temp. > > file, then use > > > > cat /tmp/file|mailx -s "my subject" [EMAIL PROTECTED] > > > > HTH... > > > >Dirk > > Hi Dirk > > Below is my script > ### >## > > #!/bin/bash > #rsync mysql database shell script > #author kaushal > #created on 21/03/2008 > > TIMESTAMP=`date +%Y-%m-%d-%H:%M:%S:%N` > > if rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ > > >/tmp/rsync-${TIMESTAMP}.log 2>&1 > > then > echo "Success" > else > echo "Please check the file rsync-${TIMESTAMP}.log for errors." > fi > > ### >## > > so according to your suggestion where does this line fits "cat > /tmp/file|mailx -s "my subject" [EMAIL PROTECTED]" <[EMAIL PROTECTED]> > in my above bash script > > Thanks and Regards > > Kaushal Hmm, if the script is used from cron only, you could reduce it to the following (note that when run from cron, you may need to use full paths to your binaries, or set $PATH inside the script): /usr/bin/rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ 2>&1 |/usr/bin/tee /tmp/rsync-${TIMESTAMP}.log | /usr/bin/mailx -s "My subject" [EMAIL PROTECTED] This will mail the output and save it to a file at the same time. HTH... Dirk signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] crontab entry
On Mon, Mar 24, 2008 at 2:44 PM, Dirk Heinrichs <[EMAIL PROTECTED]> wrote: > Am Montag, 24. März 2008 schrieb Kaushal Shriyan: > > > [EMAIL PROTECTED] > > 0 18 * * * /home/kaushal/rsync_mysql.sh > > > > I want my subject line to be "hostxx:yyDB refresh daily" > > > > is there a way to do it > > Don't rely on cron to send the mail, use mailx inside your script instead. > That means, inside the script, capture all output in a temp. file, then > use > > cat /tmp/file|mailx -s "my subject" [EMAIL PROTECTED] > > HTH... > >Dirk > Hi Dirk Below is my script # #!/bin/bash #rsync mysql database shell script #author kaushal #created on 21/03/2008 TIMESTAMP=`date +%Y-%m-%d-%H:%M:%S:%N` if rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ >/tmp/rsync-${TIMESTAMP}.log 2>&1 then echo "Success" else echo "Please check the file rsync-${TIMESTAMP}.log for errors." fi # so according to your suggestion where does this line fits "cat /tmp/file|mailx -s "my subject" [EMAIL PROTECTED]" <[EMAIL PROTECTED]> in my above bash script Thanks and Regards Kaushal
Re: [gentoo-user] crontab entry
Am Montag, 24. März 2008 schrieb Kaushal Shriyan: > [EMAIL PROTECTED] > 0 18 * * * /home/kaushal/rsync_mysql.sh > > I want my subject line to be "hostxx:yyDB refresh daily" > > is there a way to do it Don't rely on cron to send the mail, use mailx inside your script instead. That means, inside the script, capture all output in a temp. file, then use cat /tmp/file|mailx -s "my subject" [EMAIL PROTECTED] HTH... Dirk signature.asc Description: This is a digitally signed message part.
[gentoo-user] crontab entry
Hi I have the following entry in the crontab [EMAIL PROTECTED] 0 18 * * * /home/kaushal/rsync_mysql.sh I want my subject line to be "hostxx:yyDB refresh daily" is there a way to do it Thanks and Regards Kaushal