Re: [CentOS] forcing linux kernel 3 to recognize cdrom as hdX

2013-08-08 Thread Manish Kathuria
On Thu, Aug 8, 2013 at 8:39 PM, Oguz Yilmaz oguzyilmazl...@gmail.comwrote:

 Hello,

 I have a problem with older version of anaconda linux installer. I have
 upgraded kernel in my distro, but, when this anaconda boot with new 3.4.52
 kernel, can NOT find cdrom. As far as I understand, this is because the new
 kernel recognize cd drive as srX, scdX instead of older hdX with 2.6.18. At
 the moment I can not upgrade anaconda and forced this kernel to recognize
 it as before.

 Are there any kernel command line argument, kernel config or something else
 for kernel 3.4.52 to recognize this cdrom as hdX?

 Best Regards,

 --
 Oguz YILMAZ


I think you need to write some udev rules to name the device differently.
Refer to the following:

https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/udev.html
http://www.linuxforu.com/2012/06/some-nifty-udev-rules-and-examples/
http://www.reactivated.net/writing_udev_rules.html

HTH,
-- 
Manish Kathuria
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] forcing linux kernel 3 to recognize cdrom as hdX

2013-08-08 Thread Manish Kathuria
On Thu, Aug 8, 2013 at 9:03 PM, Oguz Yilmaz oguzyilmazl...@gmail.comwrote:

 Actually I have tried lots of things. As far as I see, this is not as
 simple as a symlink. Anaconda C application find CDROM according to some
 info provided by kernel. Also, Anaconda stage1 has a very limited debug
 option. I have possibilities to recompile kernel with some options or run
 kickstart with some kernel arguments. My original problem can be found at
 the following mailing list thread:


 http://article.gmane.org/gmane.linux.redhat.kickstart.general/9616/match=%5D


 --
 Oguz YILMAZ


 On Thu, Aug 8, 2013 at 6:23 PM, Manish Kathuria 
 mkathu...@tuxtechnologies.co.in wrote:

  On Thu, Aug 8, 2013 at 8:39 PM, Oguz Yilmaz oguzyilmazl...@gmail.com
  wrote:
 
   Hello,
  
   I have a problem with older version of anaconda linux installer. I have
   upgraded kernel in my distro, but, when this anaconda boot with new
  3.4.52
   kernel, can NOT find cdrom. As far as I understand, this is because the
  new
   kernel recognize cd drive as srX, scdX instead of older hdX with
 2.6.18.
  At
   the moment I can not upgrade anaconda and forced this kernel to
 recognize
   it as before.
  
   Are there any kernel command line argument, kernel config or something
  else
   for kernel 3.4.52 to recognize this cdrom as hdX?
  
   Best Regards,
  
   --
   Oguz YILMAZ
  
 
  I think you need to write some udev rules to name the device differently.
  Refer to the following:
 
  https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/udev.html
  http://www.linuxforu.com/2012/06/some-nifty-udev-rules-and-examples/
  http://www.reactivated.net/writing_udev_rules.html
 
  HTH,
  --
  Manish Kathuria


If you have references to cdrom in your kickstart file, as you have
mentioned in that forum, try to change them to match the device name being
assigned by the kernel.

-- 
Manish Kathuria
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] www.centos.org is down

2013-06-25 Thread Manish Kathuria
On Tue, Jun 25, 2013 at 7:40 PM, Scott Robbins scot...@nyc.rr.com wrote:

 On Tue, Jun 25, 2013 at 08:23:01AM -0500, Blake Hudson wrote:
  Looks like Apache is not running...
 

 Working from NYC.
 --


Accessible from Delhi too.

--
Manish Kathuria
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] check file changes within several directories

2013-02-13 Thread Manish Kathuria
On Wed, Feb 13, 2013 at 4:43 PM, Laurent Wandrebeck
l.wandreb...@gmail.comwrote:

 On Wed, 13 Feb 2013 14:08:47 +0300
 Mihamina Rakotomandimby miham...@rktmb.org wrote:

  Hi all,
 
  I forgot the name a sofware (I think it was something related to
  security) wich checks for file content/permission changes, on a cron
  trigger basis.
 
  I could then have the list of added/changed files.
  I dont want to use some selfmade git-based or find|xargs-based piece
  of scripts.
 

 I bet you're searching for aide, base repo.
 HTH,
 Laurent.


Or  Tripwire.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Linux Software RAID 1 - Unequal Sized Hard Disks

2012-10-18 Thread Manish Kathuria
Has anyone created or rebuilt a Linux Software RAID having mirrored
partitions on unequal sized hard disks ? There is  a CentOS 5 server
having two 400 GB hard disks with five mirrored partitions (software
RAID 1) and one of the hard disks is dying. Since new 400 GB HDDs are
not available here, we are exploring the possibility of replacing the
faulty hard disk with one of a higher capacity (500 GB or more). And
once it is fully replicated, we plan to replace the other 400 GB HDD
also with another hard disk of the same higher capacity.

Just want to know if anyone has done something similar and what are
the chances of success (or data loss) ?

Thanks,
--
Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] list of websites visited through centos

2012-10-18 Thread Manish Kathuria
On Thu, Oct 18, 2012 at 7:59 PM, Mike Burger mbur...@bubbanfriends.org wrote:
 On 10/16/2012 09:08 AM, Chaitanya Yanamadala wrote:
 Hai
   i have installed a new centos server and i am planning to use this
 machine
 as my gateway and restrict the usage of the certain websites. So i guess
 basically i am trying to use this machine as my firewall. So could any
 one
 guide me on this. How to achieve this.

 Take a look at squid proxy server (http://www.squid-cache.org/) and
 squidguard (http://www.squidguard.org/).  Both are available in the
 CentOS repositories.

 Dansguardian is pretty good, as well, and also works in conjunction with
 Squid.
 --
 Mike Burger
 http://www.bubbanfriends.org

And you can also use calamaris, sarg or lightsquid for tracking the web usage.

-- 
Manish Kathuria
Tux Technologies
http://www.tuxtechnologies.co.in/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Linux Software RAID 1 - Unequal Sized Hard Disks

2012-10-18 Thread Manish Kathuria
On Thu, Oct 18, 2012 at 9:02 PM, Reindl Harald h.rei...@thelounge.net wrote:


 Am 18.10.2012 17:29, schrieb Manish Kathuria:
 Has anyone created or rebuilt a Linux Software RAID having mirrored
 partitions on unequal sized hard disks ? There is  a CentOS 5 server
 having two 400 GB hard disks with five mirrored partitions (software
 RAID 1) and one of the hard disks is dying. Since new 400 GB HDDs are
 not available here, we are exploring the possibility of replacing the
 faulty hard disk with one of a higher capacity (500 GB or more). And
 once it is fully replicated, we plan to replace the other 400 GB HDD
 also with another hard disk of the same higher capacity.

 Just want to know if anyone has done something similar and what are
 the chances of success (or data loss) ?

 no problem at all

 * remove the disk
 * dd if=/dev/one-of-the-living/ of=/dev/new-disk/ bs=512 count=1
 * reboot or bring the kernel to re-read the partition table
 * rebuild the raid

 the dd-trick is intented to clone the complete partition table and
 MBR to the new disk and the additional space is untouched

 linux-software raid has no problem with different disk-sizes
 only the used partitions must be equal



Thanks Reindl, copying the first sector using is the simplest and
foolproof way of ensuring that the exact partition table is cloned but
would it also include the logical partitions ? In our case we have 5
partitions, two of which are logical ones.

--
Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Linux Software RAID 1 - Unequal Sized Hard Disks

2012-10-18 Thread Manish Kathuria
On Thu, Oct 18, 2012 at 9:25 PM, Bowie Bailey bowie_bai...@buc.com wrote:
 On 10/18/2012 11:29 AM, Manish Kathuria wrote:
 Has anyone created or rebuilt a Linux Software RAID having mirrored
 partitions on unequal sized hard disks ? There is  a CentOS 5 server
 having two 400 GB hard disks with five mirrored partitions (software
 RAID 1) and one of the hard disks is dying. Since new 400 GB HDDs are
 not available here, we are exploring the possibility of replacing the
 faulty hard disk with one of a higher capacity (500 GB or more). And
 once it is fully replicated, we plan to replace the other 400 GB HDD
 also with another hard disk of the same higher capacity.

 Just want to know if anyone has done something similar and what are
 the chances of success (or data loss) ?

 I've done this with a 3-drive software raid 1.  It originally had 750GB
 drives which I replaced with 1TB drives.

 Swapped them out one by one configuring them with the exact same
 partition structure as the others and allowing each one to resync before
 continuing.  Once they were all in, I resized the filesystem (ext3) to
 take advantage of the extra space.

 --
 Bowie

That sounds perfect. Did you create the new partitions manually using
fdisk / sfdisk ? I guess that can take care of the logical partitions.

Thanks,
--
Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Routing issue

2012-10-03 Thread Manish Kathuria

 The routes-x.y-z.diff is a unified patch containing different parts
 which include support for Dead Gateway Detection as well.  However,
 since that is limited to the first hop, it is preferable to have a
 userspace script as you are doing. I also use a script to check the
 accessibility of a remote popular site from each of the ISPs and based
 upon the response the links are treated alive or dead and the default
 gateway is changed. However, the routing problem as described by you
 will only be solved after applying this patch (routes-x.y-z.diff).

 As for marking the incoming packets to ensure that they go out from
 the same interface they came from, you could do something like the
 following:

 Using iptables mark the incoming traffic from external interfaces

 /sbin/iptables -t mangle -A PREROUTING -j CONNMARK --restore-mark
 /sbin/iptables -t mangle -A OUTPUT -j CONNMARK --restore-mark
 /sbin/iptables -t mangle -A PREROUTING -i eth1 -j MARK  --set-mark 1
 /sbin/iptables -t mangle -A PREROUTING -i eth1 -j CONNMARK --save-mark
 /sbin/iptables -t mangle -A PREROUTING -i eth2 -j MARK  --set-mark 2
 /sbin/iptables -t mangle -A PREROUTING -i eth2 -j CONNMARK --save-mark

 Add the following rules to your existing ones for policy routing

 /sbin/ip rule add fwmark 1 table T1
 /sbin/ip rule add fwmark 2 table T2

 Hi Manish,

 Thanks for the info. The one question I have is about
 /sbin/iptables -t mangle -A OUTPUT -j CONNMARK --restore-mark

 I thought the OUTPUT chain was only for packets originating locally. I am
 only concerned
 with clients behind my Linux router, do I still need this?

 Yes you are right but in case if you have any services running on the
 linux router itself (for example sshd) and  accessible from the
 internet, it would help.


 Hi Manish,

 The above rules appear to be for clients coming into the router from
 external. They
 don't solve the problem for clients inside the router going out thru the
 load balanced
 interfaces.

 I have done much googling and testing without much luck. At this point in
 time I would
 be satisfied with just being able to have a client inside the router do FTP
 over just one
 of the outbound interfaces without any load balancing for FTP. I have this
 working but only
 for active mode FTP by using the following:

 /sbin/iptables -t mangle -A PREROUTING -p tcp --dport 20:21 -j MARK
 --set-mark 1

 But it doesn't work for passive because you don't know what ports are going
 to be used.


 Regards,

 --
 Stephen Clark

I was under the impression that you are running a FTP server inside
and were facing problems with the incoming traffic for the same. If
you are primarily concerned with the outgoing traffic through two ISP
links, please follow the following steps:

1. Refer to http://www.ssi.bg/~ja/nano.txt  for creating your rules.
2. Recompile the kernel after applying Julian Anistov's routes patch
(the URL is there in the earlier messages).
3. Make a script to check the status of the links and change the
default gateway accordingly. Let me know if you need a script.
4. Make sure that your firewall (iptables) is stateful and allows
related and established connections and the NAT and connection
tracking modules (nf_conntrack, nf_conntrack_ftp, nf_nat and
nf_nat_ftp) are loaded.

I have followed this approach at a number of places without any
problems related to FTP or other protocols. The only issue I faced was
that the patch failed for all the CentOS 5.x kernels I tried (perhaps
due to some conflict with an existing patch). But its working
perfectly for the kernels in CentOS 6 and 6.1.

Thanks,
--
Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Routing issue

2012-10-03 Thread Manish Kathuria
On Wed, Oct 3, 2012 at 7:00 PM, Steve Clark scl...@netwolves.com wrote:
 On 10/03/2012 08:46 AM, Manish Kathuria wrote:

 I was under the impression that you are running a FTP server inside
 and were facing problems with the incoming traffic for the same. If
 you are primarily concerned with the outgoing traffic through two ISP
 links, please follow the following steps:

 1. Refer to http://www.ssi.bg/~ja/nano.txt  for creating your rules.
 2. Recompile the kernel after applying Julian Anistov's routes patch
 (the URL is there in the earlier messages).
 3. Make a script to check the status of the links and change the
 default gateway accordingly. Let me know if you need a script.
 4. Make sure that your firewall (iptables) is stateful and allows
 related and established connections and the NAT and connection
 tracking modules (nf_conntrack, nf_conntrack_ftp, nf_nat and
 nf_nat_ftp) are loaded.

 I have followed this approach at a number of places without any
 problems related to FTP or other protocols. The only issue I faced was
 that the patch failed for all the CentOS 5.x kernels I tried (perhaps
 due to some conflict with an existing patch). But its working
 perfectly for the kernels in CentOS 6 and 6.1.

 Thanks,
 --
 Manish

 Hi Manish,

 Thanks for the response.
 It is good to know there is a general solution. It is too bad that
 the referenced patches were never merged into to main kernel tree, forcing
 people
 to have to build and maintain their own kernel.


 --
 Stephen Clark

In case you want to avoid compiling the kernel and are comfortable
with FreeBSD, try pfSense, it also offers outbound load balancing and
failover for multiple WAN links.

--
Manish Kathuria
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Routing issue

2012-09-27 Thread Manish Kathuria
On Thu, Sep 27, 2012 at 7:04 PM, Steve Clark scl...@netwolves.com wrote:
 On 09/26/2012 11:57 PM, Manish Kathuria wrote:

 On Thu, Sep 27, 2012 at 7:46 AM, Gordon Messmer yiny...@eburg.com wrote:

 On 09/26/2012 09:15 AM, Steve Clark wrote:

 Is there a way to make this work correctly?

 In addition, you should ideally  applying the following patches for
 Static, Alternative Routes, Dead Gateway Detection  NAT and recompile
 the kernel:

 http://www.ssi.bg/~ja/#routes


 Hmmm... not being a kernel guru, correct me if I am wrong but isn't  the
 route patch used to detect dead nexthops?
 I am already doing that from userspace.

 The second set looks like is calls the routing logic after the SNAT, is that
 correct? This could solve the problem.
 Why aren't these patches in the kernel?

 Thanks,


The routes-x.y-z.diff is a unified patch containing different parts
which include support for Dead Gateway Detection as well.  However,
since that is limited to the first hop, it is preferable to have a
userspace script as you are doing. I also use a script to check the
accessibility of a remote popular site from each of the ISPs and based
upon the response the links are treated alive or dead and the default
gateway is changed. However, the routing problem as described by you
will only be solved after applying this patch (routes-x.y-z.diff).

As for marking the incoming packets to ensure that they go out from
the same interface they came from, you could do something like the
following:

Using iptables mark the incoming traffic from external interfaces

/sbin/iptables -t mangle -A PREROUTING -j CONNMARK --restore-mark
/sbin/iptables -t mangle -A OUTPUT -j CONNMARK --restore-mark
/sbin/iptables -t mangle -A PREROUTING -i eth1 -j MARK  --set-mark 1
/sbin/iptables -t mangle -A PREROUTING -i eth1 -j CONNMARK --save-mark
/sbin/iptables -t mangle -A PREROUTING -i eth2 -j MARK  --set-mark 2
/sbin/iptables -t mangle -A PREROUTING -i eth2 -j CONNMARK --save-mark

Add the following rules to your existing ones for policy routing

/sbin/ip rule add fwmark 1 table T1
/sbin/ip rule add fwmark 2 table T2

Thanks,
-- 
Manish Kathuria
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Routing issue

2012-09-27 Thread Manish Kathuria
On Thu, Sep 27, 2012 at 8:55 PM, Steve Clark scl...@netwolves.com wrote:
 On 09/27/2012 11:01 AM, Manish Kathuria wrote:

 On Thu, Sep 27, 2012 at 7:04 PM, Steve Clark scl...@netwolves.com wrote:

 On 09/26/2012 11:57 PM, Manish Kathuria wrote:

 On Thu, Sep 27, 2012 at 7:46 AM, Gordon Messmer yiny...@eburg.com wrote:

 On 09/26/2012 09:15 AM, Steve Clark wrote:

 The routes-x.y-z.diff is a unified patch containing different parts
 which include support for Dead Gateway Detection as well.  However,
 since that is limited to the first hop, it is preferable to have a
 userspace script as you are doing. I also use a script to check the
 accessibility of a remote popular site from each of the ISPs and based
 upon the response the links are treated alive or dead and the default
 gateway is changed. However, the routing problem as described by you
 will only be solved after applying this patch (routes-x.y-z.diff).

 As for marking the incoming packets to ensure that they go out from
 the same interface they came from, you could do something like the
 following:

 Using iptables mark the incoming traffic from external interfaces

 /sbin/iptables -t mangle -A PREROUTING -j CONNMARK --restore-mark
 /sbin/iptables -t mangle -A OUTPUT -j CONNMARK --restore-mark
 /sbin/iptables -t mangle -A PREROUTING -i eth1 -j MARK  --set-mark 1
 /sbin/iptables -t mangle -A PREROUTING -i eth1 -j CONNMARK --save-mark
 /sbin/iptables -t mangle -A PREROUTING -i eth2 -j MARK  --set-mark 2
 /sbin/iptables -t mangle -A PREROUTING -i eth2 -j CONNMARK --save-mark

 Add the following rules to your existing ones for policy routing

 /sbin/ip rule add fwmark 1 table T1
 /sbin/ip rule add fwmark 2 table T2

 Hi Manish,

 Thanks for the info. The one question I have is about
 /sbin/iptables -t mangle -A OUTPUT -j CONNMARK --restore-mark

 I thought the OUTPUT chain was only for packets originating locally. I am
 only concerned
 with clients behind my Linux router, do I still need this?

Yes you are right but in case if you have any services running on the
linux router itself (for example sshd) and  accessible from the
internet, it would help.



 Again, thanks much for responding.

 --
 Stephen Clark
 NetWolves
 Director of Technology
 Phone: 813-579-3200
 Fax: 813-882-0209
 Email: steve.cl...@netwolves.com
 http://www.netwolves.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Routing issue

2012-09-26 Thread Manish Kathuria
On Thu, Sep 27, 2012 at 7:46 AM, Gordon Messmer yiny...@eburg.com wrote:
 On 09/26/2012 09:15 AM, Steve Clark wrote:
 Is there a way to make this work correctly?

 Shorewall will generate a proper configuration if you specify the
 track option in the providers file.  It might be a good idea to use
 that to generate your configs rather than building them by hand.

 I believe that you need to mark your connections and use the marks to
 select the routing table, in addition to using the from rules that you
 posted.  Otherwise, nothing binds the connection to a fixed
 route/interface in a load balanced configuration.

In addition, you should ideally  applying the following patches for
Static, Alternative Routes, Dead Gateway Detection  NAT and recompile
the kernel:

http://www.ssi.bg/~ja/#routes

Thanks,

-- 
Manish Kathuria
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Wireless Interface Does Not Connect Automatically At StartUp

2011-07-18 Thread Manish Kathuria
I have recently installed CentOS 6 on a system with  a Realtek 8180L
wireless card. The wireless card is detected properly and uses the
rtl8180 driver. But it connects to our wireless network only after
logging to the Desktop Environment (GNOME) and using the Network
Manager Applet. In order to make the wireless card connect to the
network automatically at system start up, I edited the Connection
using the Network Manager Applet and checked Connect Automatically
and Available to all users options.  However, while booting the
system, the following error message is displayed when the wireless
network interface is brought up.

Device does not seem to be present, delaying initialization

But as soon as a user logs on to the Desktop, he can connect to the
network using the NM Applet.

I have also toggled between using DHCP and Static IP Address for the
the wireless card but it makes no difference. The SSID is not being
broadcast and the Wireless Access Point / Router uses WPA-PSK.

TIA,
-- 
Manish Kathuria
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Wireless Interface Does Not Connect Automatically At StartUp

2011-07-18 Thread Manish Kathuria
On Mon, Jul 18, 2011 at 11:06 PM, Cody Jackson supertanke...@gmail.com wrote:
 Hi Manish;

 I've never tried NM during boot. (Personally, I dislike NM at all.)
 You might find a system similar to this to be more of your liking:

 http://wiki.centos.org/HowTos/Laptops/WpaSupplicant

 I use this in place of my CentOS 6 backup server, which has an
 rt2500pci card in it--which, by the way, is a horrible shoddy card
 that I do not recommend. It doesn't play nice with Netgear APs. But I
 digress.

 CentOS 6 appears to have made some changes to the above document. What
 I've discovered is:

 1. You don't need to edit ifup-wireless.
 2. You don't need to edit ifconfig-* (although one should be
 created--I can post mine if it'll help you.)
 3. All you need in /etc/rc.local is an 'ifup wlan0' line.
 4. You DO need to edit /etc/sysconfig/wpa_supplicant and add the
 interface of your wireless card to the options there (example:
 -iwlan0).
 5. wpa_supplicant should be ENABLED on boot.

 Cheers,
 Cody Jackson


 On 7/18/11, Manish Kathuria mkathu...@tuxtechnologies.co.in wrote:
 I have recently installed CentOS 6 on a system with  a Realtek 8180L
 wireless card. The wireless card is detected properly and uses the
 rtl8180 driver. But it connects to our wireless network only after
 logging to the Desktop Environment (GNOME) and using the Network
 Manager Applet. In order to make the wireless card connect to the
 network automatically at system start up, I edited the Connection
 using the Network Manager Applet and checked Connect Automatically
 and Available to all users options.  However, while booting the
 system, the following error message is displayed when the wireless
 network interface is brought up.

 Device does not seem to be present, delaying initialization

 But as soon as a user logs on to the Desktop, he can connect to the
 network using the NM Applet.

 I have also toggled between using DHCP and Static IP Address for the
 the wireless card but it makes no difference. The SSID is not being
 broadcast and the Wireless Access Point / Router uses WPA-PSK.
 --
 Manish Kathuria

Thanks for the tip. While searching for a solution, I also read about
wicd (http://wicd.sourceforge.net/) which can help, but will try
wpa_supplicant first since its a part of the distro.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Mount Point Ownership Group

2011-01-16 Thread Manish Kathuria
I am facing problems assigning the owner and group to an ext3
filesystem being mounted from an external storage. I created a mount
point /vol and changed its owner and group  to alpha and beta
respectively (as required). The ext3 filesystem (LV from the external
storage) was then mounted on /vol using the mount command. However,
after mounting the filesystem the owner and group of /vol changed back
to root.

How do I ensure that the owner and group for this (and other) external
filesystem to be mounted dynamically are preserved as required ? The
mount options uid and gid don't seem to work for ext3 filesystems. Are
there any other options for this purpose?

Thanks,

Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] yum list updates error (Manish Kathuria)

2010-10-18 Thread Manish Kathuria
On Mon, Oct 18, 2010 at 3:22 PM, Ritika Garg ritikagar...@gmail.com wrote:
 There was no proxy in the file /etc/yum.conf. I specified the proxy setting
 and now yum list updates is working. A part of the output was:
 Loaded plugins: fastestmirror
 Loading mirror speeds from cached hostfile
  * base: centos.01link.hk
  * updates: centos.01link.hk
  * addons: centos.01link.hk
  * extras: centos.01link.hk
 Updated Packages
 ImageMagick.i386 6.2.8.0-4.el5_5.2
 updates
 ImageMagick.x86_64   6.2.8.0-4.el5_5.2
 updates
 NetworkManager.i386  1:0.7.0-10.el5_5.1 updates

 Its written Updated Packages. Does this mean it has already updated? I
 thought that this command displays packages that need to be updated.


Updated Packages here means the list of the packages installed on your
system having updated versions available in the configured
repositories. The tabular listing would have the name of the package,
the latest version available in the repository and the name of that
repository.

--
Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Password Expiry

2010-10-18 Thread Manish Kathuria
Hello,

Is there any command / option available on CentOS to expire a user's
password immediately ? I remember using  passwd -e on some other
distribution but the -e option does not seem to be present on CentOS
5.x.

Thanks,

Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Password Expiry

2010-10-18 Thread Manish Kathuria
On Mon, Oct 18, 2010 at 10:21 PM, Scott Robbins scot...@nyc.rr.com wrote:
 On Mon, Oct 18, 2010 at 09:42:59PM +0530, Manish Kathuria wrote:

 Is there any command / option available on CentOS to expire a user's
 password immediately ? I remember using  passwd -e on some other
 distribution but the -e option does not seem to be present on CentOS
 5.x.
 If you want to make them change their password right now

 chage -d 0 username

 Which gives a message


 Password:
 You are required to change your password immediately (root enforced)
 Changing password for test2
 (current) UNIX password:


 --
 Scott Robbins

Thanks, this is precisely what I was looking for. Thank you Eero too.

--
Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] yum list updates error

2010-10-16 Thread Manish Kathuria
On Sat, Oct 16, 2010 at 12:21 PM, Ritika Garg ritikagar...@gmail.com wrote:
 Before doing yum update on system which has CentOS5.3, I gave yum list
 updates but the following message comes:
 Loaded plugins: fastestmirror
 Determining fastest mirrors
 Could not retrieve mirrorlist
 http://mirrorlist.centos.org/?release=5arch=x86_64repo=os error was
 [Errno 4] IOError: urlopen error (110, 'Connection timed out')
 Error: Cannot find a valid baseurl for repo: base



Check whether the system has internet connectivity, verify if the
nameservers have been listed in /etc/resolv.conf and if the system
connects to the net through a proxy server, specify proxy settings in
/etc/yum.conf. These could be the basic reasons for this error to
appear.

--
Manish Kathuria
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] GUID Partition Tables and Ext3 Partition Size

2009-11-08 Thread Manish Kathuria
Hello,

Does CentOS 5.4 support large (  2 TB) external storage devices using
GPT (GUID Partition Tables), while the main OS resides on smaller hard
disks using MBR. In this scenario, what can be the largest possible
size of an ext3 partition (and filesystem) which can be created on the
storage array under CentOS 5.4 ?

Thanks,

Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] GUID Partition Tables and Ext3 Partition Size

2009-11-08 Thread Manish Kathuria
On Mon, Nov 9, 2009 at 10:26 AM, Phil Manuel p...@zomojo.com wrote:
 This might help http://en.wikipedia.org/wiki/GUID_Partition_Table

 We certainly have a GPT partition of 15Tb but I know it can go much larger.

 Phil.


Thanks Phil. I had seen that site before and I wanted to know the
status on the current CentOS kernels. Are you running CentOS 5.x and
using LVM for this partition or have you formatted it as ext3
filesystem directly ?

--
Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail and spam

2008-06-05 Thread Manish Kathuria


On Wed, 2008-06-04 at 16:53 -0400, Alain Terriault wrote:
 Hi,
 
 What is todays most effective combination to filter spam ?
 
 On my old Redhat 3 system I used Sendmail and Spamassasin .. it was
 good, but with the current setup we are getting way to much spam.
 
 Looking around I found new players, well some I did not know then and
 they are very interesting..
 
 MailScanner .. http://www.mailscanner.info/
 Sagator .. http://www.salstar.sk/sagator/
 Smf .. http://smfs.sourceforge.net/index.html
 dspam .. http://dspam.nuclearelephant.com/index.shtml
 
 I am tempted to go with smfs because it is familiar .. but, mailscanner
 seems popular
 
 thanks,
 alain

I would recommend using Postfix along with Amavisd-new which in turn
would invoke Spamassassin for spam filtering. You can also use an anti
virus program like Clam AV with it to filter for viruses also. I have
experienced excellent performance using this combination with lesser
utilization of system resources as compared to sendmail.

As suggested by many others, you must also configure a couple of RBLs
which will actually reject a major part of the incoming spam / junk mail
and leave very little for subsequent filtering.

--
Manish

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /etc/resolv.conf - Number of Nameservers

2008-03-10 Thread Manish Kathuria


On Sun, 2008-03-09 at 22:02 -0700, John R Pierce wrote:
 Manish Kathuria wrote:
  What is the maximum number of nameservers mentioned in /etc/resolv.conf
  which will be queried while looking up a hostname or IP address in the
  present version ? Earlier implementations had a ceiling of 3 name
  servers which could be queried. Has there been any increase ?

 
 only one server is ever queried.  only if it if it can't be reached at 
 all will it fall back on the 2nd one (and if that can't be reached, the 
 3rd)   a answer of 'host not found' from the primary server does /not/ 
 trigger any fallback, instead it returns not found.
 
 so, why would you need more than 3 ?   DNS servers should have a . 
 uptime.


The idea is to switch between multiple internet links for the same
internal network, without making frequent changes to /etc/resolv.conf.
The ISPs here don't allow DNS look ups from an IP not belong to their
address, so a number of look up requests get denied when the outgoing
connection is through another ISP. Of course, I can run a caching
nameserver on the small network or use Open DNS servers but that adds to
the delay.

Thank you,

Manish

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] /etc/resolv.conf - Number of Nameservers

2008-03-09 Thread Manish Kathuria
What is the maximum number of nameservers mentioned in /etc/resolv.conf
which will be queried while looking up a hostname or IP address in the
present version ? Earlier implementations had a ceiling of 3 name
servers which could be queried. Has there been any increase ?

Thanks,

Manish

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RHEL / CentOS Kernel Updates

2008-01-29 Thread Manish Kathuria
On 1/30/08, Johnny Hughes [EMAIL PROTECTED] wrote:
 nate wrote:
  Manish Kathuria wrote:
 New features are typically not backported to
  current versions of the kernel, newer drivers are often back
  ported, assuming the driver existed in the RHEL kernel. If the
  driver did not exist then it's much less likely to get included.
 
  For the lifetime of a distribution like RHEL 4 or RHEL 5, Red Hat
  would stick to the same major and minor number of the kernel and would
  just change release numbers. What  is the relation, if any, between
  the new kernels and the updates released by Red Hat ?
 
  They make their systems ABI compatible throughout the lifetime of
  the major version(4.x, 5.x).
 
  If your looking to stay on the leading edge with kernel updates your
  best off using another distro maybe Fedora or something. If your
  looking for a stable system that you don't have to worry about even
  if it means you have to be more careful about picking what hardware
  you run it on, RHEL and CentOS are good choices.
 
  You can always build your own kernels on RHEL/CentOS if you wanted,
  or rebuild Fedora kernels and install them on RHEL/CentOS, in most
  cases it should work.

 All the rest of what you said is true though ... drivers get backported
 much more frequently than other features.

In this connection, I have an example. I have a Netgear WG111 v2 USB
Wireless Adapter which does not get detected by CentOS 5.1 updated
with the latest 2.6.18 kernel released. This particular adapter has
the Realtek 8187 chip. However, Fedora 8 running on 2.6.23 detects the
adapter and also loads the correct module for it. This leaves me
wondering whether the adapter will ever be supported by the current
Cent OS 5.x kernel or the subsequent updates.


Thanks,
-- 
Manish Kathuria
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Difficulty with 5.0 - 5.1 upgrade: sysreport vs. sos

2007-12-03 Thread Manish Kathuria
On 12/3/07, Bart Schaefer [EMAIL PROTECTED] wrote:
 I got file conflicts between the sysreport and sos packages on the
 file /usr/sbin/sysreport.  I unchecked sysreport in the package
 updater UI and the rest of the update is proceedng.
 ___

Sosreport is the package replacing sysreport. You can manually remove
sysreport using rpm -e and then install sos report using yum.

-- 
Manish Kathuria
Tux Technologies
http://www.tuxtechnologies.co.in/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to Load balancing

2007-12-03 Thread Manish Kathuria
On 11/22/07, D. Bettancourt M. [EMAIL PROTECTED] wrote:






 Hi



 I need informmation about this Topic: Load balancing,,



 I have 2 nic to internet, 1 nic to DMZ, and 1 nic to LAN, but I don,t know
 how do that.

 Where I can found information ??


If you haven't found a solution yet, check out http://www.lartc.org/ .


-- 
Manish Kathuria
Tux Technologies
http://www.tuxtechnologies.co.in/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] x86_64 versus i386

2007-12-02 Thread Manish Kathuria
Hello,

On the Intel Core 2 Duo processor based systems, we have the option of
installing either x86_64 or the i386 distribution. I would like to
know your experiences with the x86_64 port. How does it compare with
the i386 distribution in terms of stability, reliability and
performance ? How significant are the performance benefits gained by
using the x86_64 linux instead of i386 on the same system ? Keeping in
mind a production environment, which port of CentOS do you recommend
for a Core 2 Duo based server ? It would be great to have your
opinion.

Thanks,

Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] x86_64 versus i386

2007-12-02 Thread Manish Kathuria
On 12/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 - Original Message -
 From: Manish Kathuria [EMAIL PROTECTED]

 Hello,

 On the Intel Core 2 Duo processor based systems, we have the option of
 installing either x86_64 or the i386 distribution. I would like to
 know your experiences with the x86_64 port. How does it compare with
 the i386 distribution in terms of stability, reliability and
 performance ? How significant are the performance benefits gained by
 using the x86_64 linux instead of i386 on the same system ? Keeping in
 mind a production environment, which port of CentOS do you recommend
 for a Core 2 Duo based server ? It would be great to have your
 opinion.

 Thanks,

 Manish


 For me it comes down to 2 things;


 1) what are you going to use the server for ?

Typical uses like a mail server running sendmail / postfix along with
amavis and spamassassin, a proxy server and a mysql database on
different systems.


 2) how much ram do you have ?


a maximum of 2 GB.


 If these answers include database, webserver and/or  4gb of RAM then I'd
 definately go 64bit. From what I've seen these are the main areas where
 64bit will benefit you.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] GFS-kernel module - Version Magic Error

2007-10-06 Thread Manish Kathuria
Are the RPMs  for the latest GFS kernel module
GFS-kernel-2.6.9-72.2.0.8 to be used with the version 2.6.9-55.0.9.EL
available ? I tried to compile the Source RPMs available from the Red
Hat site but the modules can't be loaded because of invalid module
format arising from version magic issues. The syslog shows:

 node0 kernel: gfs: version magic '2.6.9-55.0.9.ELsmp SMP 686 REGPARM
4KSTACKS gcc-3.2' should be '2.6.9-55.0.9.ELsmp SMP 686 REGPARM
4KSTACKS gcc-3.4'

node0 modprobe: FATAL: Error inserting gfs
(/lib/modules/2.6.9-55.0.9.ELsmp/kernel/fs/gfs/gfs.ko): Invalid module
format

The error message is actually surprising since the Source RPM has been
compiled on a system having gcc-3.4. To complicate matters the modinfo
indicates

vermagic:   2.6.9-55.0.9.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.2

When are the CentOS builds expected for this module ?

Thanks,

Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos