Re: [CentOS] rsync question
On Monday 04 August 2008 11:35:18 pm Mag Gam wrote: > Hi All, > > I am trying to understand the purpose of rsyncd. Why does it exist? > Why not just use rsync ad-hoc or via script? This is explained in the rsync documentation, read the man page for more info. You either need to use rsync with a remote shell such as rsh (boo, hiss) or ssh (yeah), or you need to use rsyncd and rsyncd.conf. Ultimately you will need something to connect to, be it sshd, rsyncd or what ever. > > Also, to a more serious note. I need to keep a filesystem on 1 server > and another server synced by. > What is the best way to do this? I want to have /source and /target to > be exactly the same. I don't want any extra files in /target. I want > the timestamps to be the exact same in /target. Does anyone have a > good rsync arguments I can use? I have been using -avzl but I was > wondering if there was anything better. > Do you want everything mirrored exactly all the time (real time)? If so, your best bet may be to rely on whatever your application can provide. Using rsync, the "target" will almost certainly lag behind the "source", Could you be more specific with what you are trying to do? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] rsync question
Mag Gam wrote: Hi All, I am trying to understand the purpose of rsyncd. Why does it exist? Why not just use rsync ad-hoc or via script? well, if you use rsync -> rsyncd, there's no encryption, so less CPU overhead, so faster transfers, but there's also less security, so this should only be used on a secure local network. the normal way most folks use rsync is over ssh, where the sshd at the remote end invokes another copy of rsync for you to recieve the commands. Also, to a more serious note. I need to keep a filesystem on 1 server and another server synced by. What is the best way to do this? I want to have /source and /target to be exactly the same. I don't want any extra files in /target. I want the timestamps to be the exact same in /target. Does anyone have a good rsync arguments I can use? I have been using -avzl but I was wondering if there was anything better. you might look into drbd, although the target file system shouldn't be mounted while drbd is active.if you need to read /target at the same time, forget it, stick with batch rsync at some interval.drbd does online block level replication in near realtime, so if the source server crashes, the target usually has everything within a few milliseconds. Its most frequently used in conjunction with heartbeat to implement a HA solution without expensive sharable disk storage. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] rsync question
On Tue, Aug 5, 2008 at 1:35 PM, Mag Gam <[EMAIL PROTECTED]> wrote: > Hi All, > > I am trying to understand the purpose of rsyncd. Why does it exist? > Why not just use rsync ad-hoc or via script? The rsyncd is optional. I did not use it by myself, so can't comment on that. > > Also, to a more serious note. I need to keep a filesystem on 1 server > and another server synced by. > What is the best way to do this? I want to have /source and /target to > be exactly the same. I don't want any extra files in /target. I want > the timestamps to be the exact same in /target. Does anyone have a > good rsync arguments I can use? I have been using -avzl but I was > wondering if there was anything better. You can try rsync -avz --delete /source/ /target/ KC > > > TIA > ___ > 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
[CentOS] rsync question
Hi All, I am trying to understand the purpose of rsyncd. Why does it exist? Why not just use rsync ad-hoc or via script? Also, to a more serious note. I need to keep a filesystem on 1 server and another server synced by. What is the best way to do this? I want to have /source and /target to be exactly the same. I don't want any extra files in /target. I want the timestamps to be the exact same in /target. Does anyone have a good rsync arguments I can use? I have been using -avzl but I was wondering if there was anything better. TIA ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] 64bit vs 32bit
MHR wrote: On Sat, Aug 2, 2008 at 11:28 AM, nate <[EMAIL PROTECTED]> wrote: ... The above 64-bit system has 16G, the 32-bit system above has 2G. If you have a system with 8x the size of memory than another system, it will _need_ more memory just to run. I run 64-bit CentOS 5.2 on a system with 4GB of ram and have never had a memory problem, and only one time when it was 2GB and I inadvertently tried to open 300+ JPEGs all at the same time. IMNSHO, if you have a 64-bit CPU, unless you have a specific need to run in 32-bit mode, use it (64-bit mode). mhr __ Just to add - I have CentOS 5.2 with 2GB running 64bit and have not experienced any problems. It's a desktop, not a server, if that matters. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] HP ILO Fence Configuration
Balaji wrote: Dear All, Currently i am using HP x6600 Server and I have installed RHEL4 Update 4 AS Linux and RHEL4 Update 4 Support Cluster Suite in my server I am new in fence and can any one help me how to configure HP ILO fence in my server and HP ILO Fence Functionality Regards -S.Balaji ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi there, I would check out the documentation for administering and running RHCS @ RHEL 4: http://www.redhat.com/docs/manuals/csgfs/browse/rh-cs-en/index.html RHCS comes with a tool, system-config-cluster (And Ricci/Luci on RHEL 5) that might help you alot in your fencing configurationit's very easy to add fence devices for each node (including iLO). Hope this helps. Bgrds, Finnzi ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Outbound connections not using primary eth0 IP
Bill Campbell wrote: > It's worth noting that some software allows one to specify the outgoing IP > (e.g. using inet_interfaces in postfix or sourceaddress with innd). That certainly makes sense when you have multiple IPs that are routed by the same default gateway(most often in the same subnet, but it appears that the OP had two different subnets from the same ISP that could use the same gateway, I had a similar setup once but the subnets were adjacent (two /28s right next to each other, as the ISP wasn't willing to allocate a /27)). Certainly not a situation I like to have to deal with(two different subnets going to the same gateway), too complicated. nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Questions on cpu frequency scaling AMD vs. Intel
S.Tindall wrote on Mon, 4 Aug 2008 13:08:03 -0400: > http://products.amd.com/en-us/DesktopCPUFilter.aspx Thanks, nice tool! > Checking the cpuinfo on systems using a 4850e (G2) and a 4600+ EE > (F2) both give "cpu family: 15", so they have included the Gs in > the excluded group, too. Yeah. There's apparently no way to distinguish by stepping, so they used the family. It's a shame that most people will not know it and thus not get the benefits of frequency scaling. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Outbound connections not using primary eth0 IP
On Mon, Aug 4, 2008 at 15:31, Neil Aggarwal <[EMAIL PROTECTED]> wrote: > I don't understand how that works since the IP addresses > from :0 and :1 are on a different subnet than the one > for eth0 and they have a different gateway. I guess > I don't understand the finer points of networking. The point is that, when you have multiple gateways, the system will choose one for you for each outgoing packet. If the packet is not yet part of an established connection (i.e. if it is an outgoing connection that is being opened), when the gateway is chosen, so will the outgoing address, and this will cause you to experience what you have experienced. Administrators should *always* avoid using multiple default gateways unless they really know what they are doing (and even in that case I would recommend against it). > The solution worked and I am thankful for that. Great to know I could help! Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Outbound connections not using primary eth0 IP
Filipe: I removed the GATEWAY line from the :0 and :1 files and now everything seems to be working perfectly. I don't understand how that works since the IP addresses from :0 and :1 are on a different subnet than the one for eth0 and they have a different gateway. I guess I don't understand the finer points of networking. The solution worked and I am thankful for that. Thanks, Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. > Because you have two different default gateways. In that case, Linux > will "rotate" between them, using one or the other for each outgoing > packet. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] model_editor.py
I have googled for this and also grepped the hplip sources without finding it. It is used to convert the models.dat file into models.xml. I need to insert my printer data into this file as it is not in the 5.2 hplip rpm. Could anyone help? I do not want to replace 5.2 rpm with a newer one. Thanks. Bob -- Bob Taylor ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Outbound connections not using primary eth0 IP
On Mon, Aug 04, 2008, Bill Campbell wrote: >On Mon, Aug 04, 2008, nate wrote: >>Neil Aggarwal wrote: >> >>> Any ideas why this is happening? >> >>Try looking at this? >>http://www.clintoneast.com/articles/multihomed.php >> >>In general I try to make sure my systems only have 1 default >>gateway, makes life a lot easier. Leave the multi homing to >>the routers(or my preference layer 3 switches). > >It's worth noting that some software allows one to specify the outgoing IP >(e.g. using inet_interfaces in postfix or sourceaddress with innd). Whoops. That is smtp_bind_address for postfix, not inet_interfaces. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax:(206) 232-9186 The best we can hope for concerning the people at large is that they be properly armed. -- Alexander Hamilton, The Federalist Papers at 184-188 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] HP ILO Fence Configuration
On Mon, Aug 4, 2008 at 5:52 AM, Balaji <[EMAIL PROTECTED]> wrote: > Currently i am using HP x6600 Server and I have installed RHEL4 Update 4 AS > Linux and > RHEL4 Update 4 Support Cluster Suite in my server > I am new in fence and can any one help me how to configure HP ILO fence in > my server > and HP ILO Fence Functionality Did you consider posting on a Red Hat mailing list? This list is for CentOS users. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Outbound connections not using primary eth0 IP
On Mon, Aug 04, 2008, nate wrote: >Neil Aggarwal wrote: > >> Any ideas why this is happening? > >Try looking at this? >http://www.clintoneast.com/articles/multihomed.php > >In general I try to make sure my systems only have 1 default >gateway, makes life a lot easier. Leave the multi homing to >the routers(or my preference layer 3 switches). It's worth noting that some software allows one to specify the outgoing IP (e.g. using inet_interfaces in postfix or sourceaddress with innd). This can be very useful if one has a role IP, say news.example.com, and wants to be sure that outgoing connections originate with a specific IP address so your news partners don't have to mess with their incoming configuration files. I did see some ``interesting'' issues on an private LAN where a server had multiple IP addresses on the private interface. NFS mounts were failing to the primary IP, and after doing some tcp sniffing, I found that the return UDP packets were originating from one of the aliased IP addresses (this was SuSE 9.0 Pro). I fixed the problem by forcing NFS to use tcp conneections rather than beat my head against the wall trying to figure out why this was happening. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax:(206) 232-9186 Liberty don't work as good in practice as it does in speeches. Will Rogers ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] 64bit vs 32bit
On Sat, Aug 2, 2008 at 11:28 AM, nate <[EMAIL PROTECTED]> wrote: > ... The above 64-bit system has 16G, the 32-bit > system above has 2G. > If you have a system with 8x the size of memory than another system, it will _need_ more memory just to run. I run 64-bit CentOS 5.2 on a system with 4GB of ram and have never had a memory problem, and only one time when it was 2GB and I inadvertently tried to open 300+ JPEGs all at the same time. IMNSHO, if you have a 64-bit CPU, unless you have a specific need to run in 32-bit mode, use it (64-bit mode). mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] pam max locked memory issue after updating to 5.2 and rebooting
We were previously running 5.1 x86_64 and recently updated to 5.2 using yum. Under 5.1 we were having problems when running jobs using torque and the solution had been to add the following items to the files noted "* softmemlock unlimited" in /etc/security/limits.conf "sessionrequired pam_limits.so" in /etc/pam.d/{rsh,sshd} This changed the max locked memory setting in ulimit as follows: Before the change rsh nodeX ulimit -a still gives us max locked memory (kbytes, -l) 32 After the change rsh nodeX ulimit -a max locked memory (kbytes, -l) 16505400 The nodes have 16gb of memory. Now after the 5.2 updates those files are all the same and on most of the nodes we haven't yet rebooted them due to log running processes but a few nodes have been restarted and now that jobs are starting to be put on them we are back to max locked memory of 32k rather than 16gb. The error we are receiving on those jobs is : libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes. This will severely limit memory registrations. libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes. This will severely limit memory registrations. Fatal error in MPI_Init: Other MPI error, error stack: MPIR_Init_thread(306)...: Initialization failed MPID_Init(113)..: channel initialization failed MPIDI_CH3_Init(167).: MPIDI_CH3I_RDMA_init(138)...: rdma_setup_startup_ring(333): cannot create cq Fatal error in MPI_Init: Other MPI error, error stack: MPIR_Init_thread(306)...: Initialization failed MPID_Init(113)..: channel initialization failed MPIDI_CH3_Init(167).: MPIDI_CH3I_RDMA_init(138)...: rdma_setup_startup_ring(333): cannot create cq rank 45 in job 1 nodeX_35175 caused collective abort of all ranks exit status of rank 45: return code 1 rank 44 in job 1 nodeX_35175 caused collective abort of all ranks exit status of rank 44: return code 1 The full output of : rsh nodeX ulimit -a connect to address x.x.x.x port 544: Connection refused Trying krb4 rsh... connect to address x.x.x.x port 544: Connection refused trying normal rsh (/usr/bin/rsh) core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 135168 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size(512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 135168 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited Any ideas, suggestions or items I could roll back would be appreciated. I looked through the list of packages that were updated and the only one that I could see that was related was pam. ssh and rsh were not updated. Thank you, Rob ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] File system goes read-only once in a while
Toby Bluhm wrote: Mufit Eribol wrote: Toby Bluhm wrote: Mufit Eribol wrote: I have a LV on RAID mounted as /mnt/raid. Then /mnt/raid/var is symlinked to /var. I was afraid you were going to say that. Go back to single user mode. mkdir /new_var cd /mnt/raid/var tar cf - . | ( cd /new_var ; tar xvf - ) Make sure both dirs look the same. Change the link to /new_var. Or remove the old link & mv /new_var /var. reboot. Toby, Thank you for this nice tip. It worked perfectly. The server is back in the game again. Just for my learning experience, I would appreciate if you clarify one point though. Why are you afraid when you hear /mnt/raid/var symlinked to /var? Because it can complicate a recovery, as you just experienced. Why did you feel a need to have /var setup as you did? Did you expect to fill it up quickly or a need for speed? You also have /tmp separate - do you expect more than usual activity there? Perhaps a better question would be - What is the purpose of this machine? If it's a just a fileserver on a home lan, you don't *need* to make it complicated, although learning is fun :-). Running a very active internet facing box with email, mysql, apache, etc. would probably call for a more complicated setup - which would actually make recovery & security easier/better. This box is loaded with cyrus-imapd, postfix, amavisd, clamd, spamassassin, mysql, postgresql, apache, CRM, DMS, named, hylafax etc for a small company. I wanted to keep operating system on 2 SATA disks (RAID1), data (var and home) on a high capacity RAID10 (4 SATA disks). It works also a file server. I just wanted more capacity for home and var directories, hence they are on separate RAID controller. It is more difficult if the OS is also on RAID controller as the driver should be loaded before the OS is up and running. When I install a new kernel, I compile the raid driver easily with my setup. So, having OS on soft RAID and data files (home and var) on RAID controller seemed better idea when I setup the system. Here is my fstab: /dev/md2/ ext3 defaults1 1 <--- md2 Software RAID1 /dev/md1/boot ext3 defaults1 2 <--- md0 Software RAID1 /dev/md0/tmpext3 defaults1 2 <--- md1 Software RAID1 tmpfs /dev/shmtmpfs defaults0 0 devpts /dev/ptsdevpts gid=5,mode=620 0 0 sysfs /syssysfs defaults0 0 proc/proc proc defaults0 0 LABEL=SWAP-sda3 swapswap defaults,pri=1 0 0 LABEL=SWAP-sdb3 swapswap defaults,pri=1 0 0 /dev/raid_vg0/raid_lv0 /mnt/raid ext3 defaults0 0 <--- Hardware RAID10 Before, home and var were under /mnt/raid directory and symlinked to /home and /var. Now, both directories were copied to / (md2 software RAID1) as new_home and new_var and /home and /var symlinks are now pointing to these new directories. /mnt/raid (hardware RAID10) which is the main storage of my server is not being used at the moment. Instead of using links, may as well just mount it where it belongs. I will follow your advice. I will mount /var and /home on RAID controller separately (2 separate VGs). But, some distros, one of them is Ubuntu, wants to have /var/run and /var/lock on the same partition as /. I don't know if CentOS 5.2 has such a requirement. If it has, I will mkdir /var/run and /var/lock on the same partition as / bu umounting /var first. I am planning to have 2 logical volumes (for home and var separately) instead of 1. Then, they will be mounted as separate partitions as /home and /var to /dev/raid_vg0/raid_lv0 and /dev/raid_vg0/raid_lv1, respectively. Is it a good approach? Please advise. I'm somewhat simple-minded - I like to keep the system that way :-). I split the partitions into 3 / swap /home either on a single disk or mirrored ( swap mirrored too ) - no lvm. For data storage I use lvm on raid on a separate mount point. Not saying you should do the same - it's just what I do. Yes, it is simple. Perhaps I am victim of the articles advocating more partitions on the internet :-) Thank you. Mufit ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Outbound connections not using primary eth0 IP
Neil Aggarwal wrote: > Any ideas why this is happening? Try looking at this? http://www.clintoneast.com/articles/multihomed.php In general I try to make sure my systems only have 1 default gateway, makes life a lot easier. Leave the multi homing to the routers(or my preference layer 3 switches). nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Outbound connections not using primary eth0 IP
On Mon, Aug 4, 2008 at 13:00, Neil Aggarwal <[EMAIL PROTECTED]> wrote: > Any ideas why this is happening? Because you have two different default gateways. In that case, Linux will "rotate" between them, using one or the other for each outgoing packet. If you want all your outgoing traffic to go through one gateway only (from what you write, that is probably what you want), only remove the GATEWAY= line from the :0 and :1 files and restart the network with "service network restart". HTH, Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Whole disk encryption
On Mon, 2008-08-04 at 16:51 +0100, Plant, Dean wrote: > Has there been any updates to support encrypting the whole disk in 5.2? There hasn't been any built-in support until Fedora 9, so perhaps at the earliest it would be 5.3 if at all. There are however, ways you can implement it yourself. The biggest things you have to keep in mind are that you need to make a change to the mkinitrd script and then generate a new initrd image to be able to encrypt /, otherwise you could just modify init. There are a number of websites that have some docs on how to do it, here is just one that I've seen in the past: http://www.tummy.com/Community/Articles/cryptoroot-f8/ --Tim ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Whole disk encryption
On Monday 04 August 2008, Plant, Dean wrote: > Has there been any updates to support encrypting the whole disk in 5.2? As for booting from an encrypted root-filesystem I don't know. But any normal filesystem or swap can be encrypted with the normal linux blockdevice encryption functionality (dm-crypt). See the pkg cryptsetup-luks. /Peter signature.asc Description: This is a digitally signed message part. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Questions on cpu frequency scaling AMD vs. Intel
On Monday, August 04, 2008 at 5:08 AM, Kai Schaetzl wrote: ...The older one is a 3800+ EE and the newer one is a 4850e which I bought right after it became available. Unless rev. G and up are only quad core CPUs at least the latter 45nm one should be rev G or up, too. But I can't find a definitive list, shouldn't there be one on the AMD site? You can look up the processor revision/stepping here: http://products.amd.com/en-us/DesktopCPUFilter.aspx You can search by model number, etc. on the left side or more specifically by the cpu OPN (e.g., ADO4600CUBOX) on the right side. If you select steppings G1/G2 and then pull down the model list, you can see the range of processors in each stepping. I don't think any of them are quad/triple cores. Searching the "3800+" and knowing it is 65 watts (EE) shows either an F2 or F3. Likewise, the "4850e" is a G2. Checking the cpuinfo on systems using a 4850e (G2) and a 4600+ EE (F2) both give "cpu family: 15", so they have included the Gs in the excluded group, too. Steve ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Outbound connections not using primary eth0 IP
Hello: I have a machine running CentOS 5.2 I added two IP addresses to eth0 by copying /etc/sysconfig/network-scripts/ifcfg-eth0 to /etc/sysconfig/network-scripts/ifcfg-eth0:0 /etc/sysconfig/network-scripts/ifcfg-eth0:1 and changing the relevant IP info. I am now seeing outbound connections failing at my firewall from services like NTP, etc. since they are now using a source address from one of the added IP addresses instead of the original eth0 IP which is allow through the firewall. I don't want to have to keep maintaining 3 copies of each firewall rule to accommodate the new IP addresses. Is there a way to tell the machine to use the eth0 IP address as the source address for connections? Here is the original ifcfg-eth0 file: # nVidia Corporation MCP55 Ethernet DEVICE=eth0 BOOTPROTO=none BROADCAST=206.123.70.63 HWADDR=00:30:48:7A:B4:FE IPADDR=206.123.70.50 NETMASK=255.255.255.240 NETWORK=206.123.70.48 ONBOOT=yes GATEWAY=206.123.70.49 TYPE=Ethernet Here is ifcfg-eth0:0 # nVidia Corporation MCP55 Ethernet DEVICE=eth0:0 BOOTPROTO=none BROADCAST=72.249.130.47 HWADDR=00:30:48:7A:B4:FE IPADDR=72.249.130.42 NETMASK=255.255.255.248 NETWORK=72.249.130.40 ONBOOT=yes GATEWAY=72.249.130.41 TYPE=Ethernet Here is ifcfg-eth0:1 # nVidia Corporation MCP55 Ethernet DEVICE=eth0:0 BOOTPROTO=none BROADCAST=72.249.130.47 HWADDR=00:30:48:7A:B4:FE IPADDR=72.249.130.43 NETMASK=255.255.255.248 NETWORK=72.249.130.40 ONBOOT=yes GATEWAY=72.249.130.41 TYPE=Ethernet Any ideas why this is happening? Thanks, Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Re: Fetchmail pop server and clean spam messages
on 8-2-2008 12:04 PM Jay Leafey spake the following: nightduke wrote: Hi i want to fetchmail from a pop server and check every email to any rbl spamhaus,spamcop,etc and if match at any rbl the email will be deleted. It's possible to do this? Thanks Nightduke If you've got fetchmail configured to retrieve messages from a remote MTA and deliver to a local MTA, say your local Sendmail instance, then put the RBL-matching stuff in your Sendmail configuration. The mail will still be fetched but will be discarded by your local MTA before dumping it in you local mailbox. In principle, it would be better to have the system you are fetching the mail from do the RBL operations, but if you don't have control over it then you really don't get much choice. I'm using this setup myself and it works, but it offends my aesthetic sense. OTOH, I'm easily offended! Your mileage may vary. Just remember in this situation, you need to dump all bad stuff, and not bounce anything. Most of the bad stuff is forged and you will just end up on a blacklist. -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't signature.asc Description: OpenPGP digital signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Whole disk encryption
I think TrueCrypt (www.truecrypt.org) will do this. On 4 Aug, 2008, at 8:51 AM, Plant, Dean wrote: Has there been any updates to support encrypting the whole disk in 5.2? If not, Is anyone doing this and can point me to some good documentation? Thanks Dean ___ 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
[CentOS] Whole disk encryption
Has there been any updates to support encrypting the whole disk in 5.2? If not, Is anyone doing this and can point me to some good documentation? Thanks Dean ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Questions on cpu frequency scaling AMD vs. Intel
Ned Slider wrote on Mon, 04 Aug 2008 14:51:41 +0100: > Were you able to observe any drops in VCore voltage between load, idle > (2500MHz) and 1000MHz with lm_sensors? I can't get any other sensor data than the core temperatures. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] GFS and Smaill Files
Hi, I had found on the list that i can improve the performance of GFS with small files if i adapt the size of the rsbtbl_size/lkbtbl_size values. But it also found that this has to be done after loading the dlm module, but before the lockspace is created. What means "before the lockspace is created", before the GFS partitions are mounted? How i do this? Patricio Bruna V. IT Linux Ltda. http://www.it-linux.cl Fono : (+56-2) 333 0578 - Chile Fono: (+54-11) 6632 2760 - Argentina Móvil : (+56-09) 8827 0342 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Questions on cpu frequency scaling AMD vs. Intel
Kai Schaetzl wrote on Mon, 04 Aug 2008 11:08:55 +0200: > Hm, it occurs to me now that the older cpu where the time warning doesn't > appear runs already on Xen 3.2.1 which may already have some patch to > avoid this bug. Or it simply doesn't report it anymore :-) The warning is gone after upgrading that machine to 3.2.1 as well, indeed. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Reloading /etc/hosts
Ralph Angenendt wrote: Robert Moskowitz wrote: I am doing some testing and am having to make many changes to /etc/hosts Is there a way to reload the /etc/hosts file without doing a service network restart? That doesn't need to be reloaded *except* if you use the name service caching daemon (nscd). Then "service nscd reload" might be needed. Probably my memory cells were working off of nscd and I had cached memories about needing to clear out cache. :) So I got my mind cache flushed and working with fresh info. I am at hiit.fi today getting the HIP code working. I will have a 'story' to tell end of the week ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
No an Issue? Re: [CentOS] Reloading /etc/hosts
Robert Moskowitz wrote: I am doing some testing and am having to make many changes to /etc/hosts Is there a way to reload the /etc/hosts file without doing a service network restart? I 'forgot' to restart network after a change and did a ping6 and it worked. Ergo, I think my information is wrong and the /etc/hosts file content is not cached somewhere in the client resolver code, but read fresh each time? I am, it worked. I created a fqdn that has no connection to anything possible in DNS, and ping6 worked I hope that in a while I can run BIND with a bunch of faked-out zone files (did this once to crack a Vonage PAP2). But for right now, I cannot introduce BIND to the equation ___ 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] Reloading /etc/hosts
Robert Moskowitz wrote: > I am doing some testing and am having to make many changes to /etc/hosts > > Is there a way to reload the /etc/hosts file without doing a service > network restart? There is no need to reload the hosts file, it's read in real time. Some things like firefox maintain their own host cache though, and you'll either have to restart it or wait for it's timeout before the changes take effect. If your running nscd, you may have to either restart nscd or run "nscd -i hosts" to invalidate the hosts cache there. nscd is typically only run on a system that is participating in network authentication like LDAP. nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Questions on cpu frequency scaling AMD vs. Intel
Kai Schaetzl wrote: Kai Schaetzl wrote on Sun, 03 Aug 2008 16:57:20 +0200: I disagree about the reason. I think they are actually not so efficient. At least not if I compare to a low-voltage CPU. Just checked how much that AMD 4850e CPU drains under various conditions. There are *huge* differences. I checked whole power consumption of the machine. I don't know what "at wall" means. Did you measure the power consumption of the cpu alone or does "at wall" mean the same as I did? Yes, sounds like you did the same as I did. I meant I plugged one of those watt meters into the power outlet at the wall and plugged the machine into that, so you're measuring the current draw "at the wall" or outlet. What this doesn't do is take into account how efficient (or inefficient) your power supply may be - if it's drawing 100W from the wall and is 80% efficient, then your system is only actually pulling 80W, the other 20W is heat dissipated from the PSU. Here are the figures, considering this is for the whole machine I think it's quite good. idle: 1000 MHz: 76W 2500 MHz: 98W That's a nice little saving! Like I said previously, I only saw 2-3W saving at idle between full clock rate(2400MHz; 107-8W) and with freq scaling active (1600MHz; 105W) which would maybe imply that my system already has efficient halt state, and that throttling back (freq scaling) gives little further gains. Obviously that's not the case with your system. Were you able to observe any drops in VCore voltage between load, idle (2500MHz) and 1000MHz with lm_sensors? 1 core under load: 110W 2 core under load: 120W So, that's not just the processor, it's the whole machine. It takes into account the powerdrain from the processor plus (probably) faster fans plus any other drain from memory/chipset that may be higher underload. Likewise :) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Reloading /etc/hosts
Robert Moskowitz wrote: I am doing some testing and am having to make many changes to /etc/hosts Is there a way to reload the /etc/hosts file without doing a service network restart? Takes effect immediately. Do you not get the changes right away? -- Toby Bluhm Alltech Medical Systems America, Inc. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Reloading /etc/hosts
Robert Moskowitz wrote: > I am doing some testing and am having to make many changes to /etc/hosts > > Is there a way to reload the /etc/hosts file without doing a service > network restart? That doesn't need to be reloaded *except* if you use the name service caching daemon (nscd). Then "service nscd reload" might be needed. Ralph pgpCkXE8iCqaS.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Reloading /etc/hosts
I am doing some testing and am having to make many changes to /etc/hosts Is there a way to reload the /etc/hosts file without doing a service network restart? I hope that in a while I can run BIND with a bunch of faked-out zone files (did this once to crack a Vonage PAP2). But for right now, I cannot introduce BIND to the equation ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] File system goes read-only once in a while
Mufit Eribol wrote: Toby Bluhm wrote: Mufit Eribol wrote: I have a LV on RAID mounted as /mnt/raid. Then /mnt/raid/var is symlinked to /var. I was afraid you were going to say that. Go back to single user mode. mkdir /new_var cd /mnt/raid/var tar cf - . | ( cd /new_var ; tar xvf - ) Make sure both dirs look the same. Change the link to /new_var. Or remove the old link & mv /new_var /var. reboot. Toby, Thank you for this nice tip. It worked perfectly. The server is back in the game again. Just for my learning experience, I would appreciate if you clarify one point though. Why are you afraid when you hear /mnt/raid/var symlinked to /var? Because it can complicate a recovery, as you just experienced. Why did you feel a need to have /var setup as you did? Did you expect to fill it up quickly or a need for speed? You also have /tmp separate - do you expect more than usual activity there? Perhaps a better question would be - What is the purpose of this machine? If it's a just a fileserver on a home lan, you don't *need* to make it complicated, although learning is fun :-). Running a very active internet facing box with email, mysql, apache, etc. would probably call for a more complicated setup - which would actually make recovery & security easier/better. Here is my fstab: /dev/md2/ ext3defaults 1 1 <--- md2 Software RAID1 /dev/md1/boot ext3defaults 1 2 <--- md0 Software RAID1 /dev/md0/tmpext3defaults 1 2 <--- md1 Software RAID1 tmpfs /dev/shmtmpfs defaults0 0 devpts /dev/ptsdevpts gid=5,mode=620 0 0 sysfs /syssysfs defaults0 0 proc/proc procdefaults0 0 LABEL=SWAP-sda3 swapswapdefaults,pri=1 0 0 LABEL=SWAP-sdb3 swapswapdefaults,pri=1 0 0 /dev/raid_vg0/raid_lv0 /mnt/raid ext3defaults 0 0 <--- Hardware RAID10 Before, home and var were under /mnt/raid directory and symlinked to /home and /var. Now, both directories were copied to / (md2 software RAID1) as new_home and new_var and /home and /var symlinks are now pointing to these new directories. /mnt/raid (hardware RAID10) which is the main storage of my server is not being used at the moment. Instead of using links, may as well just mount it where it belongs. I am planning to have 2 logical volumes (for home and var separately) instead of 1. Then, they will be mounted as separate partitions as /home and /var to /dev/raid_vg0/raid_lv0 and /dev/raid_vg0/raid_lv1, respectively. Is it a good approach? Please advise. I'm somewhat simple-minded - I like to keep the system that way :-). I split the partitions into 3 / swap /home either on a single disk or mirrored ( swap mirrored too ) - no lvm. For data storage I use lvm on raid on a separate mount point. Not saying you should do the same - it's just what I do. -- Toby Bluhm Alltech Medical Systems America, Inc. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Questions on cpu frequency scaling AMD vs. Intel
Kai Schaetzl wrote on Sun, 03 Aug 2008 16:57:20 +0200: > I disagree about the reason. I think they are actually not so efficient. At > least not if I compare to a low-voltage CPU. Just checked how much that AMD 4850e CPU drains under various conditions. There are *huge* differences. I checked whole power consumption of the machine. I don't know what "at wall" means. Did you measure the power consumption of the cpu alone or does "at wall" mean the same as I did? Here are the figures, considering this is for the whole machine I think it's quite good. idle: 1000 MHz: 76W 2500 MHz: 98W 1 core under load: 110W 2 core under load: 120W So, that's not just the processor, it's the whole machine. It takes into account the powerdrain from the processor plus (probably) faster fans plus any other drain from memory/chipset that may be higher underload. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Questions on cpu frequency scaling AMD vs. Intel
Ned Slider wrote on Mon, 04 Aug 2008 10:34:57 +0100: > quote > # Frequency scaling on AMD rev F CPUs under Xen can result in > # timekeeping problems for fully virtualized guests, so we disable > # it by default. > if [ -d /proc/xen ] && [ "$cpu_vendor" == AuthenticAMD ] \ > && [ "$cpu_family" -le 15 ]; then >default_governor=performance > fi > /quote That's the patch mentioned by Steve. I didn't look in the cpuspeed init file earlier, I did now - it's inside it. As I assumed it doesn't load ondemand. Both my cpus are "family 15", so this applies. However, I'm not running fully virtualized guests. Nevertheless, the time warning occurs, not only in domU, but also in dom0. However, I think it's harmless. Time is absolutely stable in dom0 and domU. Maybe that may be change under more load. Maybe it's less harmless in fully virtualized machines. It's a pity that so few information is available. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] HP ILO Fence Configuration
Dear All, Currently i am using HP x6600 Server and I have installed RHEL4 Update 4 AS Linux and RHEL4 Update 4 Support Cluster Suite in my server I am new in fence and can any one help me how to configure HP ILO fence in my server and HP ILO Fence Functionality Regards -S.Balaji ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Questions on cpu frequency scaling AMD vs. Intel
S.Tindall wrote on Sun, 3 Aug 2008 21:47:06 -0400: > The cpuspeed changelog may be relevant: > > [quote] > * Thu Mar 06 2008 Jarod Wilson <[EMAIL PROTECTED]> > > - Disable freq scaling by default on AMD rev F and earlier cpus > when running xen, due to clock instability (#435321) > [/quote] Thanks, it didn't occur to me that cpuspeed may also be relevant to this. However, I don't think it's relevant for the wrong cpu frequency reading on the 3.2 Xen kernels (which in turn is responsible for the missing scalability). Cpuspeed is not part of the kernel and did not change during all my tests. See below for possible explanation. > > I didn't look up your cpu, but I think it's a revision F. Hm, /proc/cpuinfo doesn't show any revision number. A bit googling tells me that the CPUs, at least the second one, are more likely to be rev. H or above. The older one is a 3800+ EE and the newer one is a 4850e which I bought right after it became available. Unless rev. G and up are only quad core CPUs at least the latter 45nm one should be rev G or up, too. But I can't find a definitive list, shouldn't there be one on the AMD site? I saw postings about time problems on the xen-devel list, but these seemed to be more general and not restricted to older revisions of the AMD cpus. Now, after enabling frequency scaling on both I see that as well ("Warning Timer ISR/1: Time went backwards:"), but only on the newer CPU. It happens each time the frequency changes. It's possible it doesn't happen on the other (older!) cpu because there wasn't demand for a change yet, it's not doing any cpu intensive tasks. > > Also, thanks for the /etc/sysconfig/cpuspeed "ondemand" tip. > > It seemed counterintuitive to explicitly specify the so-called > default governor value (i.e., "empty defaults to ondemand"), > but doing so did the trick under xen for my > revision G AMD processor. I think what happens with cpuspeed is that the "Thu Mar 06 2008" patch mentioned above comes into play here. I assume they simply do not modprobe cpufreq_ondemand and thus it is not available and cannot be used as a default. All the other governors are available, no matter if cpuspeed is running or not, and ondemand is the only one that does real scaling. So, they simply disabled this and it gets only loaded once you force it (good, that they didn't disable that either). ondemand is missing on *both* kernels (the 3.2 one from Xen and the stock CentOS kernel) by default and adding the commandline I mentioned doesn't change this. However, it makes a difference on the Xen 3.2 (and Xen 3.2.1) kernel, as it corrects the frequency reading. The time warning only seems to occur on the Xen 3.2 kernels and not on the CentOS Xen kernels. At least I don't remember having it seen earlier. Which Xen kernel are you running? Hm, it occurs to me now that the older cpu where the time warning doesn't appear runs already on Xen 3.2.1 which may already have some patch to avoid this bug. Or it simply doesn't report it anymore :-) (It doesn't seem to be of any harm, not even dovecot - which is paranoid about time and has it's own time warning routinge - barks. But it spoils my monitoring :-() Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Questions on cpu frequency scaling AMD vs. Intel
Kai Schaetzl wrote: S.Tindall wrote on Sun, 3 Aug 2008 21:47:06 -0400: The cpuspeed changelog may be relevant: [quote] * Thu Mar 06 2008 Jarod Wilson <[EMAIL PROTECTED]> - Disable freq scaling by default on AMD rev F and earlier cpus when running xen, due to clock instability (#435321) [/quote] Thanks, it didn't occur to me that cpuspeed may also be relevant to this. However, I don't think it's relevant for the wrong cpu frequency reading on the 3.2 Xen kernels (which in turn is responsible for the missing scalability). Cpuspeed is not part of the kernel and did not change during all my tests. See below for possible explanation. I didn't look up your cpu, but I think it's a revision F. Hm, /proc/cpuinfo doesn't show any revision number. A bit googling tells me that the CPUs, at least the second one, are more likely to be rev. H or above. The older one is a 3800+ EE and the newer one is a 4850e which I bought right after it became available. Unless rev. G and up are only quad core CPUs at least the latter 45nm one should be rev G or up, too. But I can't find a definitive list, shouldn't there be one on the AMD site? Maybe this is relevant to you: http://www.centos.org/modules/newbb/viewtopic.php?topic_id=15328&forum=41 quote # Frequency scaling on AMD rev F CPUs under Xen can result in # timekeeping problems for fully virtualized guests, so we disable # it by default. if [ -d /proc/xen ] && [ "$cpu_vendor" == AuthenticAMD ] \ && [ "$cpu_family" -le 15 ]; then default_governor=performance fi /quote ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] File system goes read-only once in a while
Toby Bluhm wrote: Mufit Eribol wrote: I have a LV on RAID mounted as /mnt/raid. Then /mnt/raid/var is symlinked to /var. I was afraid you were going to say that. Go back to single user mode. mkdir /new_var cd /mnt/raid/var tar cf - . | ( cd /new_var ; tar xvf - ) Make sure both dirs look the same. Change the link to /new_var. Or remove the old link & mv /new_var /var. reboot. Toby, Thank you for this nice tip. It worked perfectly. The server is back in the game again. Just for my learning experience, I would appreciate if you clarify one point though. Why are you afraid when you hear /mnt/raid/var symlinked to /var? Is something wrong with it? Here is my fstab: /dev/md2/ ext3defaults 1 1 <--- md2 Software RAID1 /dev/md1/boot ext3defaults 1 2 <--- md0 Software RAID1 /dev/md0/tmpext3defaults 1 2 <--- md1 Software RAID1 tmpfs /dev/shmtmpfs defaults0 0 devpts /dev/ptsdevpts gid=5,mode=620 0 0 sysfs /syssysfs defaults0 0 proc/proc procdefaults0 0 LABEL=SWAP-sda3 swapswapdefaults,pri=1 0 0 LABEL=SWAP-sdb3 swapswapdefaults,pri=1 0 0 /dev/raid_vg0/raid_lv0 /mnt/raid ext3defaults 0 0 <--- Hardware RAID10 Before, home and var were under /mnt/raid directory and symlinked to /home and /var. Now, both directories were copied to / (md2 software RAID1) as new_home and new_var and /home and /var symlinks are now pointing to these new directories. /mnt/raid (hardware RAID10) which is the main storage of my server is not being used at the moment. I am planning to have 2 logical volumes (for home and var separately) instead of 1. Then, they will be mounted as separate partitions as /home and /var to /dev/raid_vg0/raid_lv0 and /dev/raid_vg0/raid_lv1, respectively. Is it a good approach? Please advise. Thank you again. Mufit ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] File system goes read-only once in a while
NiftyClusters Mitch wrote: On Fri, Aug 1, 2008 at 1:43 PM, William L. Maltby <[EMAIL PROTECTED]> wrote: On Fri, 2008-08-01 at 16:13 -0400, Toby Bluhm wrote: Mufit Eribol wrote: . . that you would correctly try to fsck the *device*. First backup data... It is possible to run "fsck" with a media test flag. Bad blocks are assigned to dummy files. Inadvertently reading one of these files can take a drive off line. One reason a device will go off line is the presence of a media error, or the presence of a situation assumed by "smartd" to be a pending data risk. Understanding the root cause error should be done. Smartd tends to be cautious but does identify pending problems. One puzzle can be the loss of log file data. It is sometimes possible to see events on a live system that later vanish after a reboot because buffers are live in memory but not on the disk. Sending logs to another 'log system' can be helpful and is a good idea on production systems for exactly this reason I copied /mnt/raid/var to /new_var using tar as explained in Toby's message. Changed the link var to /new_var. After reboot, it was possible to umount /mnt/raid and fsck. All the errors were corrected. Everything works perfect now. I appreciate all who shared his experience, knowledge and advised me on this thread. Thank you. Mufit ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos