[CentOS] shrink LV with ext3 filesystem
Hi. I want to make a snapshot from a logical volume and noticed that there must be enough free disk space in the volume group. Actually there is no free disk space left. How do i shrink online /var without losing any data or restore from backup? I do not have physical access to the server. Specs: Dell PE SC1430 with a 5/i RAID Controller one RAID 1 array from the Dell RAID controller 2 partitons (boot and LVM) 1 VG 3 LV (swap, /var (/dev/VolGroup00/LogVol02) and / formatted with ext3) /dev/mapper/VolGroup00-LogVol02 211G 39G 162G 20% /var Thank you in advance. Thomas Antony ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] shrink LV with ext3 filesystem
On Tue, Sep 04, 2007 at 12:40:24PM +0200, Thomas Antony wrote: > Hi. > > I want to make a snapshot from a logical volume and noticed that there must > be enough free disk space in the volume group. Actually there is no free > disk space left. > How do i shrink online /var without losing any data or restore from backup? You can't shrink ext2/ext3 filesystems online. You'll have to schedule a downtime. Another solution is to remove and use a file for swap (swapoff ... && lvremove ...), or reduce it (swapoff ... && lvreduce ... && mkswap && swapon). -- lfr 0/0 pgpWNyYQ1lIb9.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] strange chgrp behavior
Thanks for your reply and your time, i've reported it to centos bug tracking system. I will try it also on RHEL and if it occurs, i'll sent it also to the RH. > ISTM it's a bug and should be reported on both CentOS and RH tracking > systems. Two errors are apparent. One may be difficult to correct. > > As you originally discovered, the user ID is being change during > execution of the command to change a group. And it is using the ID from > the symbolic link owner, as you later noticed. > > The 2nd bug is a recursion into the original directory via the symbolic > link when dereference is not suppressed. IMO, recursion should not > occur, but I know from a programming background that it takes a little > foresight, thought and intense effort to avoid this sort of trap. I think, that dereferrence should occure (at least for my coreutils version); man chgrp: --dereference affect the referent of each symbolic link, rather than the symbolic link itself (this is the default) > As an afterthought, how valid is it to have user control files that are > supposed to be contained in an "invisible" directory in the user's > $HOME? This presents a "non-standard" structure that offers increased > opportunities for mishaps of various types. > > -- > Bill > Well, that's another point, but that's not my job here :( I realized this behavior on shared home directories server. These homes are used by Win domain in classrooms, on terminal services, etc. It's not my business to control, if some users (or local administrators) create symlink to their home directory... But maybe i should write some little audit scrip, which would search for these... thanks, Tomas ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Re: OT: Suggestions for RAID HW for 2 SATA drives in
On Mon, 2007-09-03 at 15:31 -0500, Lanny Marcus wrote: > On 31 August 2007, Phil Schaffner <[EMAIL PROTECTED]> wrote: > > > Message: 21 > > > > > As discussed recently on-list, VMware CPU requirements to support > > > virtualization are not nearly so rigorous as for Xen. You are > > > probably OK with VMware on most any relatively modern x86 or x86_64 > > > CPU. > > > http://lists.centos.org/pipermail/centos/2007-August/085796.htmlg. > > http://www.vmware.com/products/server/?urlcode=yahoo_ssp > > Phil: That's very cool! The largest free space I have on my HD is about > 5.3 GB. Can I create a new partition there and try VMware Server? TIA, No new partition is needed. VMware virtual disks are created as files within the hosts OS. That's not a lot of free space to play with, but enough to experiment with. Here's a sample of a directory of assorted VMware VMs: [EMAIL PROTECTED] vmware]$ du -sh * 23G C5_64 4.0GCentOS_3_9 4.7GCentOS-QA 6.7Gfedora-7-i386 4.1GPCLinuxOS_2007 21G W2K_Pro 22G XP ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] shrink LV with ext3 filesystem
Luciano Rocha schrieb: On Tue, Sep 04, 2007 at 12:40:24PM +0200, Thomas Antony wrote: Hi. I want to make a snapshot from a logical volume and noticed that there must be enough free disk space in the volume group. Actually there is no free disk space left. How do i shrink online /var without losing any data or restore from backup? You can't shrink ext2/ext3 filesystems online. You'll have to schedule a downtime. Another solution is to remove and use a file for swap (swapoff ... && lvremove ...), or reduce it (swapoff ... && lvreduce ... && mkswap && swapon). Hi. Is it possible that i log into the server with ssh and umount only /var and then resize the logical volume? Thomas ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] shrink LV with ext3 filesystem
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Antony > > Luciano Rocha schrieb: > > On Tue, Sep 04, 2007 at 12:40:24PM +0200, Thomas Antony wrote: > >> Hi. > >> > >> I want to make a snapshot from a logical volume and > noticed that there must > >> be enough free disk space in the volume group. Actually > there is no free > >> disk space left. > >> How do i shrink online /var without losing any data or > restore from backup? > > > > You can't shrink ext2/ext3 filesystems online. You'll have > to schedule a > > downtime. > > > > Another solution is to remove and use a file for swap > (swapoff ... && > > lvremove ...), or reduce it (swapoff ... && lvreduce ... && > mkswap && swapon). > > Hi. > > Is it possible that i log into the server with ssh and umount > only /var > and then resize the logical volume? Maybe in single user mode, but /var is needed for multi-user mode to function. Remember: if shrinking, shrink filesystem first then LV, if expanding then expand the LV first then the filesystem. -Ross __ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] shrink LV with ext3 filesystem
Thomas Antony wrote: > Is it possible that i log into the server with ssh and umount only > /var and then resize the logical volume? > Try it. Most probably the system will tell you that the disk is in use. What you could do then is booting from a live CD and resize it from there (System will be offline, of course). Regards Sebastian ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] shrink LV with ext3 filesystem
On Tue, Sep 04, 2007 at 03:26:53PM +0200, Thomas Antony wrote: > Luciano Rocha schrieb: > > On Tue, Sep 04, 2007 at 12:40:24PM +0200, Thomas Antony wrote: > >> Hi. > >> > >> I want to make a snapshot from a logical volume and noticed that there > >> must be enough free disk space in the volume group. Actually there is no > >> free disk space left. > >> How do i shrink online /var without losing any data or restore from > >> backup? > > You can't shrink ext2/ext3 filesystems online. You'll have to schedule a > > downtime. > > Another solution is to remove and use a file for swap (swapoff ... && > > lvremove ...), or reduce it (swapoff ... && lvreduce ... && mkswap && > > swapon). > > Hi. > > Is it possible that i log into the server with ssh and umount only /var and > then resize the logical volume? Yes, but you'll have to stop a lot of daemons and other processes that run with files opened in /var. You can find the processes accessing /var with lsof or fuser: # fuser -mv /var # lsof /var -- lfr 0/0 pgp0QRc8Vc5Zz.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Re: Using HTTP proxy for yum
On 8/28/07, Scott Moseman <[EMAIL PROTECTED]> wrote: > > > > > proxy=http://hostname.domain.com/ > > > > proxy_username=domain\myusername > > > > proxy_password=mypassword > > Perhaps the problem is that its a web -filter- and not really a -proxy-? > Maybe I should try bypassing the corporate -filter- and use my -proxy- > at home to see what happens. > For those interested, the cause of the problem is the corporate filter requires NTLM authentication -- and Yum does not support NTLM. Our filter/proxy vendor suggested... http://ntlmaps.sourceforge.net/ Thanks, Scott ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] RAID + LVM Addition to CentOS 5 Install
Hi All, I have what I believe to be a pretty basic LVM & RAID setup on my CentOS 5 machine: Raid Partitions: /dev/sda1,sdb1 /dev/sda2,sdb2 /dev/sda3,sdb3 During the install I created a RAID 1 volume md0 out of sda1,sdb1 for the boot partition and then added sda2,sdb2 to a separate RAID 1 volume as well (md1). I then setup md1 as a LVM physical volume for volume group 'system'. I left the sda3,sdb3 partitions available for future use. Next I created swap, /, /usr, /var, etc. logical volumes in the system volume group and continued with this install as normal. Everything went fine. I was able to use the system, reboot, etc., without problems. I then discovered that I needed more space in my /var volume than was available in the system volume group. So, I created another RAID device, /dev/md2 (using sda3,sdb3), and created an LVM physical volume on top of that. Finally, I extended the system physical volume to contain this new physical volume and expanded the size of the /var volume. This worked fine, but on reboot I get a ton of errors from LVM saying that volume with id --... was not found and the system automatically reboots. This seems to happen for all volumes, not just the ones I changed. This error even happens for a separate volume group (called 'extended') that is on a separate set of disks and was existing prior to the CentOS 5 install. Any idea on some step I missed? I know things are still fine on the disks, as when I boot with the CentOS DVD with the 'linux rescue' option all RAID & LVM volumes are available for use. So from this it seems I need to update some CentOS config file? Here are some config files: http://pastebin.com/m6d5075dc Thanks! Nick ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RAID + LVM Addition to CentOS 5 Install
Hi You have all the history of your lvm volumes in /etc/lvm/archive|backup search for the missing id in the archive to understand what append ! Does raid synchronization was ended before your have created your new PV or before to reboot. It should not change anything, but just an idea. On 9/4/07, Nick Webb <[EMAIL PROTECTED]> wrote: > Hi All, > > I have what I believe to be a pretty basic LVM & RAID setup on my > CentOS 5 machine: > > Raid Partitions: > /dev/sda1,sdb1 > /dev/sda2,sdb2 > /dev/sda3,sdb3 > > During the install I created a RAID 1 volume md0 out of sda1,sdb1 for > the boot partition and then added sda2,sdb2 to a separate RAID 1 > volume as well (md1). I then setup md1 as a LVM physical volume for > volume group 'system'. I left the sda3,sdb3 partitions available for > future use. > > Next I created swap, /, /usr, /var, etc. logical volumes in the system > volume group and continued with this install as normal. Everything > went fine. I was able to use the system, reboot, etc., without > problems. > > I then discovered that I needed more space in my /var volume than was > available in the system volume group. So, I created another RAID > device, /dev/md2 (using sda3,sdb3), and created an LVM physical volume > on top of that. Finally, I extended the system physical volume to > contain this new physical volume and expanded the size of the /var > volume. > > This worked fine, but on reboot I get a ton of errors from LVM saying > that volume with id --... was not found and the system > automatically reboots. This seems to happen for all volumes, not just > the ones I changed. This error even happens for a separate volume > group (called 'extended') that is on a separate set of disks and was > existing prior to the CentOS 5 install. > > Any idea on some step I missed? I know things are still fine on the > disks, as when I boot with the CentOS DVD with the 'linux rescue' > option all RAID & LVM volumes are available for use. So from this it > seems I need to update some CentOS config file? > > Here are some config files: > http://pastebin.com/m6d5075dc > > Thanks! > Nick > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > -- Alain Spineux aspineux gmail com May the sources be with you ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] RAID + LVM Addition to CentOS 5 Install
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Webb > > Hi All, > > I have what I believe to be a pretty basic LVM & RAID setup on my > CentOS 5 machine: > > Raid Partitions: > /dev/sda1,sdb1 > /dev/sda2,sdb2 > /dev/sda3,sdb3 > > During the install I created a RAID 1 volume md0 out of sda1,sdb1 for > the boot partition and then added sda2,sdb2 to a separate RAID 1 > volume as well (md1). I then setup md1 as a LVM physical volume for > volume group 'system'. I left the sda3,sdb3 partitions available for > future use. > > Next I created swap, /, /usr, /var, etc. logical volumes in the system > volume group and continued with this install as normal. Everything > went fine. I was able to use the system, reboot, etc., without > problems. > > I then discovered that I needed more space in my /var volume than was > available in the system volume group. So, I created another RAID > device, /dev/md2 (using sda3,sdb3), and created an LVM physical volume > on top of that. Finally, I extended the system physical volume to > contain this new physical volume and expanded the size of the /var > volume. > > This worked fine, but on reboot I get a ton of errors from LVM saying > that volume with id --... was not found and the system > automatically reboots. This seems to happen for all volumes, not just > the ones I changed. This error even happens for a separate volume > group (called 'extended') that is on a separate set of disks and was > existing prior to the CentOS 5 install. > > Any idea on some step I missed? I know things are still fine on the > disks, as when I boot with the CentOS DVD with the 'linux rescue' > option all RAID & LVM volumes are available for use. So from this it > seems I need to update some CentOS config file? > > Here are some config files: > http://pastebin.com/m6d5075dc Did you PV /dev/sda3 and /dev/sdb3 instead of /dev/md2 either before or after the RAID set was created? -Ross __ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RAID + LVM Addition to CentOS 5 Install
On 9/4/07, Ross S. W. Walker <[EMAIL PROTECTED]> wrote: > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Nick Webb > > > > Hi All, > > > > I have what I believe to be a pretty basic LVM & RAID setup on my > > CentOS 5 machine: > > > > Raid Partitions: > > /dev/sda1,sdb1 > > /dev/sda2,sdb2 > > /dev/sda3,sdb3 > > > > During the install I created a RAID 1 volume md0 out of sda1,sdb1 for > > the boot partition and then added sda2,sdb2 to a separate RAID 1 > > volume as well (md1). I then setup md1 as a LVM physical volume for > > volume group 'system'. I left the sda3,sdb3 partitions available for > > future use. > > > > Next I created swap, /, /usr, /var, etc. logical volumes in the system > > volume group and continued with this install as normal. Everything > > went fine. I was able to use the system, reboot, etc., without > > problems. > > > > I then discovered that I needed more space in my /var volume than was > > available in the system volume group. So, I created another RAID > > device, /dev/md2 (using sda3,sdb3), and created an LVM physical volume > > on top of that. Finally, I extended the system physical volume to > > contain this new physical volume and expanded the size of the /var > > volume. > > > > This worked fine, but on reboot I get a ton of errors from LVM saying > > that volume with id --... was not found and the system > > automatically reboots. This seems to happen for all volumes, not just > > the ones I changed. This error even happens for a separate volume > > group (called 'extended') that is on a separate set of disks and was > > existing prior to the CentOS 5 install. > > > > Any idea on some step I missed? I know things are still fine on the > > disks, as when I boot with the CentOS DVD with the 'linux rescue' > > option all RAID & LVM volumes are available for use. So from this it > > seems I need to update some CentOS config file? > > > > Here are some config files: > > http://pastebin.com/m6d5075dc > > Did you PV /dev/sda3 and /dev/sdb3 instead of /dev/md2 either before or > after the RAID set was created? > > -Ross I don't think so, the partition types are 'fd' and if I boot from the rescue CD, everything seems to be working fine. sh-3.1# fdisk -l Disk /dev/sda: 18.2 GB, 18210036736 bytes 255 heads, 63 sectors/track, 2213 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 32 257008+ fd Linux raid autodetect /dev/sda2 331122 8755425 fd Linux raid autodetect /dev/sda311232213 8763457+ fd Linux raid autodetect Disk /dev/sdb: 18.2 GB, 18210036736 bytes 255 heads, 63 sectors/track, 2213 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 32 257008+ fd Linux raid autodetect /dev/sdb2 331122 8755425 fd Linux raid autodetect /dev/sdb311232213 8763457+ fd Linux raid autodetect Nick ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RAID + LVM Addition to CentOS 5 Install
Hi Alain, On 9/4/07, Alain Spineux <[EMAIL PROTECTED]> wrote: > Hi > You have all the history of your lvm volumes in /etc/lvm/archive|backup > search for the missing id in the archive to understand what append ! > > Does raid synchronization was ended before your have created your new > PV or before to reboot. It should not change anything, but just an > idea. I will check that. I found those files before, but had no direction on them. Anyone have an idea on how to capture the output of LVM on boot? It goes by pretty fast then reboots, I have only 1 or 2 seconds to write it down before it reboots. Took me 2 or 3 reboots just to get the gist of the message last time. I've tried using a serial console (append options to grub: console=tty0 console=ttyS0,38400), but the errors don't show up on the serial console only on the real console. If I could get it to output to the serial console, it would be much easier to track down the volumes with errors. Nick > > > On 9/4/07, Nick Webb <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I have what I believe to be a pretty basic LVM & RAID setup on my > > CentOS 5 machine: > > > > Raid Partitions: > > /dev/sda1,sdb1 > > /dev/sda2,sdb2 > > /dev/sda3,sdb3 > > > > During the install I created a RAID 1 volume md0 out of sda1,sdb1 for > > the boot partition and then added sda2,sdb2 to a separate RAID 1 > > volume as well (md1). I then setup md1 as a LVM physical volume for > > volume group 'system'. I left the sda3,sdb3 partitions available for > > future use. > > > > Next I created swap, /, /usr, /var, etc. logical volumes in the system > > volume group and continued with this install as normal. Everything > > went fine. I was able to use the system, reboot, etc., without > > problems. > > > > I then discovered that I needed more space in my /var volume than was > > available in the system volume group. So, I created another RAID > > device, /dev/md2 (using sda3,sdb3), and created an LVM physical volume > > on top of that. Finally, I extended the system physical volume to > > contain this new physical volume and expanded the size of the /var > > volume. > > > > This worked fine, but on reboot I get a ton of errors from LVM saying > > that volume with id --... was not found and the system > > automatically reboots. This seems to happen for all volumes, not just > > the ones I changed. This error even happens for a separate volume > > group (called 'extended') that is on a separate set of disks and was > > existing prior to the CentOS 5 install. > > > > Any idea on some step I missed? I know things are still fine on the > > disks, as when I boot with the CentOS DVD with the 'linux rescue' > > option all RAID & LVM volumes are available for use. So from this it > > seems I need to update some CentOS config file? > > > > Here are some config files: > > http://pastebin.com/m6d5075dc > > > > Thanks! > > Nick > > ___ > > CentOS mailing list > > CentOS@centos.org > > http://lists.centos.org/mailman/listinfo/centos > > > > > -- > Alain Spineux > aspineux gmail com > May the sources be with you > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RAID + LVM Addition to CentOS 5 Install
This worked fine, but on reboot I get a ton of errors from LVM saying that volume with id --... was not found and the system automatically reboots. This seems to happen for all volumes, not just the ones I changed. This error even happens for a separate volume group (called 'extended') that is on a separate set of disks and was existing prior to the CentOS 5 install. Any idea on some step I missed? I know things are still fine on the disks, as when I boot with the CentOS DVD with the 'linux rescue' option all RAID & LVM volumes are available for use. So from this it seems I need to update some CentOS config file? Did you re-create the initrd after adding the new raid group? Not 100% about this but my guess would be that the initrd isn't starting md2 and thus can't find the pv on that raid device. -Shad ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RAID + LVM Addition to CentOS 5 Install
On 9/4/07, Nick Webb <[EMAIL PROTECTED]> wrote: > On 9/4/07, Shad L. Lords <[EMAIL PROTECTED]> wrote: > > > This worked fine, but on reboot I get a ton of errors from LVM saying > > > that volume with id --... was not found and the system > > > automatically reboots. This seems to happen for all volumes, not just > > > the ones I changed. This error even happens for a separate volume > > > group (called 'extended') that is on a separate set of disks and was > > > existing prior to the CentOS 5 install. > > > > > > Any idea on some step I missed? I know things are still fine on the > > > disks, as when I boot with the CentOS DVD with the 'linux rescue' > > > option all RAID & LVM volumes are available for use. So from this it > > > seems I need to update some CentOS config file? > > > > Did you re-create the initrd after adding the new raid group? Not 100% > > about this but my guess would be that the initrd isn't starting md2 and thus > > can't find the pv on that raid device. > > > > -Shad > Hi Shad, That solved it! Thanks so much for the help. Awesome group on here, BTW, 4 responses within a hour or two of my post, and a solution! Nick ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Performance Issues
On Sun, 2 Sep 2007 at 8:11am, Dan Dansereau wrote We have a DELL6850 with 8Gbytes of memory, four 3.2Ghz CPU's , perc 4 raid controller, with fourteen 300Gbyte 10Krpm disk on a powervault 220s, And a powervault 124T LTO-3 tape systems on a separate 160Mbyte/sec adaptec SCSI card. Which card and driver? ISTR folks having issues with adaptec cards and LTO3 drives. Might you have a spare LSI SCSI card (ultra320, preferably) about that you could test with? The disks are configured as two 2Tbyte raid 0 partitions using the perc 4 hardware. The problem is - reading from the disk, and writing to the tape is pathetically slow. The specs say I should get around 80Mbyte/second - in reality - is about 500 Kbytes/second Have you benchmarked the disks to make sure you get decent performance out of them? Writing just to tape, using /dev/zero as input and dd to write, I can get up to 60Mybte/second, indicating that the tape drive and scsi card is functional from a hardware perspective. Since I can read and write data to the disks - I assume that they are functional. The files are 80Mybtes for the minimum size that I am writing to tape. 80MB total or lots of 80MB files? If the former, you really need to test with, IMO, at least 2X RAM (preferably 4X) sized data to get a reliable speed estimate. Is there a standard disk / tape IO test package that could test the speed/performance of the disks and /or tapes? bonnie++ is somewhat standard for testing disk sequential read/write speeds. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] recompiling httpd
Akemi Yagi schrieb: On 9/3/07, Matthias Leopold <[EMAIL PROTECTED]> wrote: sorry, centos version is 5. problem appears with httpd-2.2.3-6.el5.centos.1.src.rpm and httpd-2.2.3-7.el5.centos.src.rpm (updates) Matthias Leopold schrieb: hi, i'm trying to recompile the httpd rpm on a x86_64 system. all i've changed in the spec file is the "--with-suexec-docroot" configure option. the error message i get from the "rpmbuild -ba SPECS/httpd.spec" command is "ln: creating symbolic link `/var/tmp/httpd-root/etc/httpd/logs' to `../../usr/var/log/httpd': No such file or directory". so what do i do now? If you do not make any changes, does it compile normally? And if that is the case, what did you change the "--with-suexec-docroot" to? Akemi ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos i get the same error with the original spec file matthias -- Mit freundlichen Grüssen Matthias Leopold System & Network Administration Streams Telecommunications GmbH Universitaetsstrasse 10/7, 1090 Vienna, Austria tel: +43 1 40159113 fax: +43 1 40159300 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] recompiling httpd
On 9/4/07, Matthias Leopold <[EMAIL PROTECTED]> wrote: > i get the same error with the original spec file How is the build environment configured? Does this box have any i386/i686 packages on it, or is it entirely x86_64? I can assure you that the original src.rpm as we ship it builds just fine in a proper environment. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] recompiling httpd
On 9/4/07, Jim Perrin <[EMAIL PROTECTED]> wrote: > On 9/4/07, Matthias Leopold <[EMAIL PROTECTED]> wrote: > > > i get the same error with the original spec file > > How is the build environment configured? > Does this box have any i386/i686 packages on it, or is it entirely x86_64? > > I can assure you that the original src.rpm as we ship it builds just > fine in a proper environment. In fact, I was able to build it using the original spec on my x86_64 machine. I have nearly 300 i386 packages on it. Akemi ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] recompiling httpd
Jim Perrin schrieb: On 9/4/07, Matthias Leopold <[EMAIL PROTECTED]> wrote: i get the same error with the original spec file How is the build environment configured? Does this box have any i386/i686 packages on it, or is it entirely x86_64? I can assure you that the original src.rpm as we ship it builds just fine in a proper environment. removing all i386|i686 rpms (including hp management software...) doesn't make a difference, for better debugging i'll post the last few lines before the build stops (german locale error messages are irrelevant) + install -m 644 /usr/src/redhat/SOURCES/centos_index.html /var/tmp/httpd-root/var/www/error/noindex.html + find /var/tmp/httpd-root/var/www/manual '(' -name '*.xml' -o -name '*.xml.*' -o -name '*.ent' -o -name '*.xsl' -o -name '*.dtd' ')' -print0 + xargs -0 rm -f + set +x + rmdir /var/tmp/httpd-root/usr/etc/httpd/logs + mkdir -p /var/tmp/httpd-root/usr/var/log/httpd + ln -s ../../usr/var/log/httpd /var/tmp/httpd-root/etc/httpd/logs ln: Erzeugen der symbolischen Verknüpfung „/var/tmp/httpd-root/etc/httpd/logs“ zu „../../usr/var/log/httpd“: Datei oder Verzeichnis nicht gefunden Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.98951 (%install) since i don't know a lot about building rpms i'll post the output of "rpmbuild --showrc" (which wasn't modified at all), hope it's not to long... # rpmbuild --showrc ARCHITECTURE AND OS: build arch: x86_64 compatible build archs: ia32e x86_64 noarch build os : Linux compatible build os's : linux install arch : ia32e install os: Linux compatible archs : ia32e x86_64 athlon noarch amd64 i686 i586 i486 i386 fat compatible os's : linux RPMRC VALUES: macrofiles: /usr/lib/rpm/macros:/usr/lib/rpm/ia32e-linux/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/ia32e-linux/macros:~/.rpmmacros optflags : -O2 -g Features supported by rpmlib: rpmlib(VersionedDependencies) = 3.0.3-1 PreReq:, Provides:, and Obsoletes: dependencies support versions. rpmlib(CompressedFileNames) = 3.0.4-1 file name(s) stored as (dirName,baseName,dirIndex) tuple, not as path. rpmlib(PayloadIsBzip2) = 3.0.5-1 package payload can be compressed using bzip2. rpmlib(PayloadFilesHavePrefix) = 4.0-1 package payload file(s) have "./" prefix. rpmlib(ExplicitPackageProvide) = 4.0-1 package name-version-release is not implicitly provided. rpmlib(HeaderLoadSortsTags) = 4.0.1-1 header tags are always sorted after being loaded. rpmlib(ScriptletInterpreterArgs) = 4.0.3-1 the scriptlet interpreter can use arguments from header. rpmlib(PartialHardlinkSets) = 4.0.4-1 a hardlink file set may be installed without being complete. rpmlib(ConcurrentAccess) = 4.1-1 package scriptlets may access the rpm database while installing. rpmlib(BuiltinLuaScripts) = 4.2.2-1 internal support for lua scripts. -14: GNUconfigure(MCs:) CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS; LDFLAGS="${LDFLAGS:-%{-s:-s}}" ; export LDFLAGS; %{-C:_mydir="`pwd`"; %{-M: %{__mkdir} -p %{-C*};} cd %{-C*}} dirs="`find ${_mydir} -name configure.in -print`"; export dirs; for coin in `echo ${dirs}` do dr=`dirname ${coin}`; if test -f ${dr}/NO-AUTO-GEN; then : else macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE((.*)),1,gp' < ${coin}`; ( cd ${dr}; aclocalinclude="${ACLOCAL_FLAGS}"; for k in ${macrodirs}; do if test -d ${k}; then aclocalinclude="${aclocalinclude} -I ${k}"; ##else ## echo "**Warning**: No such directory `${k}'. Ignored." fi done if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then if grep "sed.*POTFILES" configure.in >/dev/null; then : do nothing -- we still have an old unmodified configure.in else test -r ${dr}/aclocal.m4 || touch ${dr}/aclocal.m4; echo "no" | gettextize --force --copy; test -r ${dr}/aclocal.m4 && %{__chmod} u+w ${dr}/aclocal.m4; fi fi if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then %{__libtoolize} --force --copy; fi aclocal ${aclocalinclude}; if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then %{__autoheader}; fi echo "Running automake --gnu ${am_opt} ..."; %{__automake} --add-missing --gnu ${am_opt}; %{__autoconf}; ); fi done %{-C:${_mydir}}%{!-C:.}/configure %{_target_platform} --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} --infodir=%{_infodir} %* ; %{-C:cd ${_mydir}; unset _mydir} -14: ___build_args -e -14: ___bu
[CentOS] SysVinit guidance, please
I have experienced a couple of power failures since installing CentOS 5, both while I was working on the system. The first time, several weeks ago, I thought there was some "feature" that I had never seen before but couldn't really put my finger on it. The power came back on after a few seconds and I never missed a beat. I also shrewdly forgot about the anomaly that I had almost noticed. I had a real power failure 2 days ago and tried to be more observant. What had gotten my attention earlier is that the once-familiar banner displayed on about everything except my room's ceiling was missing. After some red herrings and blind alleys (hey, you don't have to worry about mixed metaphors when you're an illiterate old coot!) I decided that the missing banners and the fact that the power was killed while a graphical page was displayed was what I saw. Anyhow, it seems that these extinct banners were a function of the /bin/shutdown routine in SysVinit because banners happen in CentOS 4.x whether the shutdown command is issued by fingers or by a UPS monitoring daemon. And I have since found that they're gone from CentOS 5, no matter how shutdown is invoked. After all of this, my question boils down to one of replacing the current SysVinit package, SysVinit-2.86-14.i386.rpm with the one from CentOS 4.x, SysVinit-2.85-34.3.i386.rpm Would that be courting disaster? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] dvb modules not in CentOS plus kernel for target=i686
I'm just trying to setup my hauppauge nova-T freeview card under Centos 5. It works on the same hardware under CentOS 4.x using the CentOS plus kernel. Having installed the latest CentOS Plus kernel for CentOS 5.0 (2.6.18-8.1.8.el5.centos.plus) I've found that various kernel modules are missing- specifically dvb_core cx88_dvb and cx22702 that were used by my system under CentOS 4.x I've downloaded the srpm and had a bit of a hack. I note with interest that the source file kernel-2.6.18-i686.config has the line "# CONFIG_DVB is not set" whereas in kernel-2.6.18-ia64.config it is switched on: with CONFIG_DVB=y and there is also CONFIG_VIDEO_CX88_DVB=m amongst various other references to DVB in there. Does anyone know the background to this- do the DVB modules fail to build under i686 and are therefore deliberately turned off? I guess I may have a hack at the config file and then leave my machine to do some serious rpm building. -- Cheers, Tony ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] shrink LV with ext3 filesystem
Is it possible that i log into the server with ssh and umount only /var and then resize the logical volume? Yes, but you'll have to stop a lot of daemons and other processes that run with files opened in /var. You can find the processes accessing /var with lsof or fuser: # fuser -mv /var # lsof /var I stopped all services except sshd and fuser and lsof doesn't show me any files, but i still can't unmount /var :-( # umount /var umount: /var: device is busy umount: /var: device is busy Ayn ideas? Thomas ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] shrink LV with ext3 filesystem
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Antony > > >> Is it possible that i log into the server with ssh and > umount only /var and > >> then resize the logical volume? > > > > Yes, but you'll have to stop a lot of daemons and other > processes that > > run with files opened in /var. > > > > You can find the processes accessing /var with lsof or fuser: > > # fuser -mv /var > > # lsof /var > > > I stopped all services except sshd and fuser and lsof doesn't show me > any files, but i still can't unmount /var :-( > > # umount /var > umount: /var: device is busy > umount: /var: device is busy > > Ayn ideas? /var is required for multi-user mode. Try bringing the system to single-user mode 'init 1' and then try it. -Ross __ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] shrink LV with ext3 filesystem
/var is required for multi-user mode. Try bringing the system to single-user mode 'init 1' and then try it. -Ross Hi. single-user mode is a problem because i don't have physical access to the server I will try to get some remote hands. Thank you everybody for your help! kind regards, Thomas ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] CPAN error
Hi all im not sure if this is the right mailing list but im using centos anyway. i run CPAN by perl -MCPAN -e shell and got through the first time configuration and after selecting the mirror sites i got this error and i can't get any modules to be installed. I haven't encountered this before and not very familiar with cpan. Constant subroutine __USE_POSIX undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 8, line 33. Constant subroutine __USE_POSIX2 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 9, line 33. Constant subroutine __USE_POSIX199309 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 10, line 33. Constant subroutine __USE_POSIX199506 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 11, line 33. Constant subroutine __USE_XOPEN undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 12, line 33. Constant subroutine __USE_XOPEN_EXTENDED undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 13, line 33. Constant subroutine __USE_UNIX98 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 14, line 33. Constant subroutine __USE_LARGEFILE undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 16, line 33. Constant subroutine __USE_LARGEFILE64 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 17, line 33. Constant subroutine __USE_FILE_OFFSET64 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 18, line 33. Constant subroutine __USE_BSD undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 19, line 33. Constant subroutine __USE_SVID undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 20, line 33. Constant subroutine __USE_MISC undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 21, line 33. Constant subroutine __USE_GNU undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 22, line 33. Constant subroutine __USE_REENTRANT undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 23, line 33. Constant subroutine _POSIX_SOURCE undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 48, line 33. Constant subroutine _POSIX_C_SOURCE undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 50, line 33. Constant subroutine _XOPEN_SOURCE undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 52, line 33. Constant subroutine _XOPEN_SOURCE_EXTENDED undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 54, line 33. Constant subroutine _LARGEFILE64_SOURCE undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 56, line 33. Constant subroutine _LARGEFILE_SOURCE undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 98, line 33. Constant subroutine __USE_ISOC99 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 102, line 33. Constant subroutine __GNU_LIBRARY__ undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 147, line 33. cpan shell -- CPAN exploration and modules installation (v1.7602) ReadLine support enabled Can't ioctl TIOCGETP: Invalid argument Consider installing Term::ReadKey from CPAN site nearby at http://www.perl.com/CPAN Or use perl -MCPAN -e shell to reach CPAN. Falling back to 'stty'. If you do not want to see this warning, set PERL_READLINE_NOWARN in your environment. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] NIS/Samba update
My test setup consists of Enterprise 5 server running NIS and Samba, and dual-boot XP and CentOS 5 clients. On my test setup, I'm able to create new samba accounts and change samba passwords with no problems. NIS still gives me problems, though. I am unable to change passwords no matter what. Also, ypwhich on the client returns localhost. I have reviewed everything, including configs of other networks that are live, and cannot figure out where the problem is. I believe that once I can password changed effortlessly on the NIS side, I can implement this on the live system. Until NIS account passwords can be changed at-will, this setup won't go to production. So, what might I be missing? Why can't I change passwords? Also, what would cause the client, when issued ypcat passwd, to not show the newer accounts create by the server, even after a /var/yp make has been issued? Both client and server have been rebooted many times. Thanks. Scott ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CPAN error
On 9/4/07, Mark Quitoriano <[EMAIL PROTECTED]> wrote: > Hi all im not sure if this is the right mailing list but im using centos > anyway. i run CPAN by perl -MCPAN -e shell and got through the first time > configuration and after selecting the mirror sites i got this error and i > can't get any modules to be installed. I haven't encountered this before and > not very familiar with cpan. CPAN is a horrible way to install software on a centos box, as it completely bypasses the package management system. Because of this, you can end up with unmet dependencies when things are really installed, centos updates to perl may break because cpan updated a core component, etc. Mostly, just don't do it. Use rpmforge or other 3rd party repositories to install perl modules. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] recompiling httpd
On 9/4/07, Matthias Leopold <[EMAIL PROTECTED]> wrote: > removing all i386|i686 rpms (including hp management software...) > doesn't make a difference, for better debugging i'll post the last few > lines before the build stops (german locale error messages are irrelevant) > > + install -m 644 /usr/src/redhat/SOURCES/centos_index.html > /var/tmp/httpd-root/var/www/error/noindex.html > + find /var/tmp/httpd-root/var/www/manual '(' -name '*.xml' -o -name > '*.xml.*' -o -name '*.ent' -o -name '*.xsl' -o -name '*.dtd' ')' -print0 > + xargs -0 rm -f > + set +x > + rmdir /var/tmp/httpd-root/usr/etc/httpd/logs > + mkdir -p /var/tmp/httpd-root/usr/var/log/httpd > + ln -s ../../usr/var/log/httpd /var/tmp/httpd-root/etc/httpd/logs > ln: Erzeugen der symbolischen Verknüpfung > „/var/tmp/httpd-root/etc/httpd/logs" zu „../../usr/var/log/httpd": Datei > oder Verzeichnis nicht gefunden > Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.98951 (%install) The only difference I find between your log and mine of this particular part is that I am building in my own directory. You are probably doing this as root as judged from the /usr/src/redhat/SOURCES directory. Although that should not cause the error you are getting, it is dangerous to do building as root (general advice). Akemi ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] CPAN error
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Perrin Sent: Tuesday, September 04, 2007 1:13 PM To: CentOS mailing list Subject: Re: [CentOS] CPAN error On 9/4/07, Mark Quitoriano <[EMAIL PROTECTED]> wrote: > Hi all im not sure if this is the right mailing list but im using centos > anyway. i run CPAN by perl -MCPAN -e shell and got through the first time > configuration and after selecting the mirror sites i got this error and i > can't get any modules to be installed. I haven't encountered this before and > not very familiar with cpan. CPAN is a horrible way to install software on a centos box, as it completely bypasses the package management system. Because of this, you can end up with unmet dependencies when things are really installed, centos updates to perl may break because cpan updated a core component, etc. Mostly, just don't do it. Use rpmforge or other 3rd party repositories to install perl modules. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Is this true for adding perl components not in CENTOS?? If so - what is your correct way to add a package ? Dan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CPAN error
On 9/4/07, Dan Dansereau <[EMAIL PROTECTED]> wrote: > Is this true for adding perl components not in CENTOS?? > If so - what is your correct way to add a package ? > Dan Yes. Use rpmforge or kbs for perl modules which aren't included in the base distro. See wiki.centos.org/Repositories for details. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] shrink LV with ext3 filesystem
On Tue, Sep 04, 2007 at 08:18:18PM +0200, Thomas Antony wrote: > > >> Is it possible that i log into the server with ssh and umount only /var > >> and then resize the logical volume? > > Yes, but you'll have to stop a lot of daemons and other processes that > > run with files opened in /var. > > You can find the processes accessing /var with lsof or fuser: > > # fuser -mv /var > > # lsof /var > > > I stopped all services except sshd and fuser and lsof doesn't show me any > files, but i still can't unmount /var :-( > > # umount /var > umount: /var: device is busy > umount: /var: device is busy > > Ayn ideas? Are you using chrooted BIND? Do a cat /proc/mounts, search for var, and unmount anything in use. -- lfr 0/0 pgp6YuR8J94u2.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] rootpw and graphical mode?
Is there some kind of caveat to using the rootpw --iscrypted directive and then specifying a graphical install? I always seem to get the prompt coming up... If I remove the graphical and do a text install, it works fine and if I remove the --iscrypted and put a plain-text password in there, it works as well. Any suggestions? - G ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Re: rootpw and graphical mode?
Sorry, should have specified - I'm using kickstart to load my machine(s). On 9/4/07, semi linux <[EMAIL PROTECTED]> wrote: > Is there some kind of caveat to using the rootpw --iscrypted directive > and then specifying a graphical install? > > I always seem to get the prompt coming up... > If I remove the graphical and do a text install, it works fine and if > I remove the --iscrypted and put a plain-text password in there, it > works as well. > > Any suggestions? > > - G > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] shrink LV with ext3 filesystem
# umount /var umount: /var: device is busy umount: /var: device is busy Ayn ideas? Are you using chrooted BIND? Do a cat /proc/mounts, search for var, and unmount anything in use. # cat /proc/mounts | grep var /dev/VolGroup00/LogVol02 /var ext3 rw,data=ordered 0 0 I can't unmount var. I think it is like Ross already wrote, that /var can't be unmounted in multi-user mode. It would be nice if someone could explain why /var is unmountable, even when "fuser -mv /var" and "/lsof /var" doesn't return any files. Thomas ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Hard-set network via ifup scripts...
> > Anyone know off the top of their head the "right" way to hard set a > link automatically to 100Mbps Full Duplex, etc using the ifup or ifcfg > files? > > Don't see options in the scripts that might cover this, but maybe > there's a more elegant way to do it than to do something in rc.local or > hack up the ifup files myself... > > Ray Ray, this in what we put in the /etc/sysconfig/network-scripts/ifcfg-eth0 or other similar files ETHTOOL_OPTS="speed 100 duplex full autoneg off" - rh ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Hard-set network via ifup scripts...
Ray Van Dolson wrote: Anyone know off the top of their head the "right" way to hard set a link automatically to 100Mbps Full Duplex, etc using the ifup or ifcfg files? Don't see options in the scripts that might cover this, but maybe there's a more elegant way to do it than to do something in rc.local or hack up the ifup files myself... You can add a line like: ETHTOOL_OPTS="speed 100 duplex full autoneg off" to the /etc/sysconfig/network-scripts/ifcfg-eth? files. But note that if you hard set one side of a link you must do the same on the other (switch) side or it will take the lack of negotiation to mean that it must assume half duplex. -- Les Mikesell [EMAIL PROTECTED] ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Hard-set network via ifup scripts...
Anyone know off the top of their head the "right" way to hard set a link automatically to 100Mbps Full Duplex, etc using the ifup or ifcfg files? Don't see options in the scripts that might cover this, but maybe there's a more elegant way to do it than to do something in rc.local or hack up the ifup files myself... Ray ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] X11 virtual screens on centos 5
When the you select an X11 virtual screen (1 of 4) with the mouse on default centos 5 what command gets executed to show screen 1, screen 2 etc... Basically, I want to have a command or know the command to execute to show the desired virtual X11 screen. Thanks, Jerry ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] CPAN Question
Maybe a little off-topic. But using cpan, I tried to install IO::Compress::Base 2.006. I already had 2.005 installed. For the life of me, I couldn't get it to upgrade. It finally occurred to me to download the ".tgz" file, and install it that way. That worked. But does anyone have any hints on how to force cpan to upgrade? I even tried the "upgrade" command, and that didn't work. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CPAN Question
On 9/4/07, Al Sparks <[EMAIL PROTECTED]> wrote: > Maybe a little off-topic. But using cpan, I tried to install > IO::Compress::Base 2.006. > > I already had 2.005 installed. For the life of me, I couldn't get it to > upgrade. > > It finally occurred to me to download the ".tgz" file, and install it that > way. > That worked. > > But does anyone have any hints on how to force cpan to upgrade? I even tried > the "upgrade" command, and that didn't work. You're going to make me drag out my soap box, broken record, and dead horse aren't you CPAN is bad on systems with package management like centos. The reason is because cpan doesn't inform the package management utility that it's installed anything. CPAN can also upgrade chunks of code which are provided by the perl rpm shipped by centos. This may not seem like a big deal until you attempt to install a package which requires a perl module you installed via cpan and yum or rpm tells you that it's not installed. Your options here are to force the installation, or install a copy via yum/rpm. This will result in either a code conflict, or multiple copies of something on your system. Either way things can slowly snowball and go wrong. The best method for installing perl modules is via package management. 3rd party repositories like RPMForge have dozens of perl modules which plug right into the centos perl packages and work like a champ. If all else fails and you can't find the particular perl module you need via one of these repositories, you should use cpan2rpm, or another packaging utility to create an rpm suitable for your system. Using package management features like this gives you reliability (you can install the package on multiple machines instead of hoping it builds identically on each one), and a 'paper trail' to follow for what's on your system (you can query rpm to see where a file is or what package owns it instead of guessing) and best of all, you can easily remove something without resorting to 'find /somepath -name something | xargs rm' or some other hack. Let your package manager do the heavy lifting. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Re: rootpw and graphical mode?
semi linux wrote: Sorry, should have specified - I'm using kickstart to load my machine(s). On 9/4/07, semi linux <[EMAIL PROTECTED]> wrote: Is there some kind of caveat to using the rootpw --iscrypted directive and then specifying a graphical install? I always seem to get the prompt coming up... If I remove the graphical and do a text install, it works fine and if I remove the --iscrypted and put a plain-text password in there, it works as well. Any suggestions? - G If you're installing via kickstart, why do you need graphical mode? -- j ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CPAN Question
The alternative that I prefer is to install a custom perl for your application in another location (like /opt/bin). This keeps it separate from your system perl, so your os patches work fine and patching won't break your application. On 9/4/07, Jim Perrin <[EMAIL PROTECTED]> wrote: > > On 9/4/07, Al Sparks <[EMAIL PROTECTED]> wrote: > > Maybe a little off-topic. But using cpan, I tried to install > IO::Compress::Base 2.006. > > > > I already had 2.005 installed. For the life of me, I couldn't get it to > upgrade. > > > > It finally occurred to me to download the ".tgz" file, and install it > that way. > > That worked. > > > > But does anyone have any hints on how to force cpan to upgrade? I even > tried > > the "upgrade" command, and that didn't work. > > You're going to make me drag out my soap box, broken record, and dead > horse aren't you > > CPAN is bad on systems with package management like centos. The reason > is because cpan doesn't inform the package management utility that > it's installed anything. CPAN can also upgrade chunks of code which > are provided by the perl rpm shipped by centos. > > This may not seem like a big deal until you attempt to install a > package which requires a perl module you installed via cpan and yum or > rpm tells you that it's not installed. Your options here are to force > the installation, or install a copy via yum/rpm. This will result in > either a code conflict, or multiple copies of something on your > system. Either way things can slowly snowball and go wrong. > > The best method for installing perl modules is via package management. > 3rd party repositories like RPMForge have dozens of perl modules which > plug right into the centos perl packages and work like a champ. If all > else fails and you can't find the particular perl module you need via > one of these repositories, you should use cpan2rpm, or another > packaging utility to create an rpm suitable for your system. > > Using package management features like this gives you reliability (you > can install the package on multiple machines instead of hoping it > builds identically on each one), and a 'paper trail' to follow for > what's on your system (you can query rpm to see where a file is or > what package owns it instead of guessing) and best of all, you can > easily remove something without resorting to 'find /somepath -name > something | xargs rm' or some other hack. > > Let your package manager do the heavy lifting. > > > -- > During times of universal deceit, telling the truth becomes a > revolutionary act. > George Orwell > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos