Re: [CentOS] LSI software raid with centos 5.4

2010-05-24 Thread CList
>>
>> I have been trying to install CentOS 5.4 on a Intel SR1530SHS, Intel
S3200SH
>> mainboard.. It has a 3 x 1TB sata hotswap drives with LSI software raid
>> onboard.
>>
>> I had configured the LSI to have Sata0 and Sata1 with raid 1 and the
third
>> drive as a hotspare drive.
>>
>> Format the harddisk and installation was a breeze. The server rebooted
into
>> a blank screen and the cursor just keep blinking.
>>



> I've had this problem on an Intel board when I had hard drives on the
> motherboards SATA ports and some on the motherboards silicon image
> SATA ports. The bios seemed to swap the order the drives were present
> to grub so it couldn't boot. I would either get a blinking cursor or
> GRUB. I ended up putting all the drives on a LSI PCI Express card and
> everything just worked. However in your situation it sounds like you
> only have drives on the LSI controller.
>
> I would try booting into resuce mode with the CentOS installation CD.
> You can do this by typing linux rescue. Have it search and mount the
> CentOS installation. Look at /boot/grub/device.map and make sure hd0
> references the correct /dev/sd device. Also chroot /mnt/sysimage and
> try grub-install /dev/sd

Ryan,

I followed your instruction, but it is still not working. Any other
suggestion?

Thanks
wL 

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


Re: [CentOS] [CentOS-announce] Release for CentOS-5.5 i386 and x86_64

2010-05-24 Thread Marcelo M. Garcia
Karanbir Singh wrote:
> We are pleased to announce the immediate availability of CentOS-5.5 for
> i386 and x86_64 Architectures.
Hello

Thank very much for all CentOS team for this.

Regards

Marcelo

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


Re: [CentOS] Naming of a Java Process in Linux

2010-05-24 Thread Mathieu Baudier
> linux box. So currently when i have these procs running on my box they
> show up as "java" in the ps -A command. I dont know for sure as to which

if you can use the 'f' option in your ps command, you will get the
arguments used to start the JVM. This may provide you with enough
information to distinguish between them them

e.g.: ps -Af | grep java

> identify them properly can i have it running as java_1 or java_2 or

as far as I know, it is not (easily) possible

You could give a try to the jconsole tool which comes with the JDK (in
package java-1.6.0-openjdk-devel), it allows you to monitor Java
processes precisely (either local or remote via JMX).

The Eclipse TPTP project also provides a lot of tools, but this would
probably be an overkill in your case.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] raid resync speed? - laptop drive-

2010-05-24 Thread Robert Nichols
On 05/23/2010 01:57 PM, Les Mikesell wrote:
> Robert Nichols wrote:
>> Another thing to keep in mind is that the SATA spec. only requires the
>> internal SATA connector to withstand 50 insertions.  I picked up some
>> nice acomdata (TM) eSATA housings for the drives (512-byte sectors,
>> thankfully) I use for my offsite backup copies.  The eSATA connector
>> is spec-ed for 50,000 insertions.  My laptop came with a warning about
>> the life of that connector, and I found those ratings mentioned at
>> http://www.serialata.org/technology/esata.asp .
>
> The trayless internal hotswap enclosures claim to be good for 10,000+ 
> insertions
> and I'm using larger ones for the desktop drives I had been using without any
> problems.   I have seen some postings to the effect that I need a newer kernel
> to recognize the 4k sectors besides doing the partition alignment.  Maybe I 
> can
> boot the RHEL 6 beta or a fedora iso and see if they are faster.

Sounds good, unless that 10,000 insertion spec is predicated on spreading
the usage among 200 drives such that no individual drives has more than
50 insertions.  ;-(

BTW, I got carried away typing zeros in that spec. for the eSATA connector.
The right number is 5,000 insertions, not 50,000.

If you want a good write-up on what the kernel developers have to contend
with to handle these 4KiB sector sizes, see
   https://ata.wiki.kernel.org/index.php/ATA_4_KiB_sector_issues

For those with a strong stomach for such things, a nice historical
perspective on the horrors of ever-increasing drive sizes can be found
at http://www.win.tue.nl/~aeb/linux/Large-Disk.html .  Just be sure to
keep the 2004 date in mind when it mentions "recent kernels."

-- 
Bob Nichols "NOSPAM" is really part of my email address.
 Do NOT delete it.

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


[CentOS] Creating a user defined service in Cent os

2010-05-24 Thread Chaitanya Yanamadala
hai
 i have a perl script which will automatically check for the existing files
and then ftp them to a server, this one runs in a loop until i kill it, now
what i wants is i want to make this as a service so that it can keep on
running until i kill the service. so does any one have an idea how to do
this??


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


Re: [CentOS] Creating a user defined service in Cent os

2010-05-24 Thread Brian Mathis
On Mon, May 24, 2010 at 9:59 AM, Chaitanya Yanamadala
 wrote:
> hai
>  i have a perl script which will automatically check for the existing files
> and then ftp them to a server, this one runs in a loop until i kill it, now
> what i wants is i want to make this as a service so that it can keep on
> running until i kill the service. so does any one have an idea how to do
> this??
>
> Chaitanya


You can write a start/stop script and put in in /etc/init.d, or you
can convert it to run from cron and put it in the user's crontab
(instead of using an infinite loop and sleeping in the script, remove
the loop & sleep and have cron run the script however often you need
to check for files).  Cron would be the preferred way here.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Mounting LVM disk

2010-05-24 Thread Weiner, Michael
List Readers -

 

I have a Dell server that uses the Perc 6i controller and had 5 1Tb
disks installed (1 for OS and the other 4 in a Raid0 for a large storage
pool). The owner of the server wanted me to swap out the 1Tb disks for
2Tb disks - easy enough I thought, but I ran into some issues trying to
clone the OS disk to the new 2Tb disk, so I just did a re-install. So
basically we now have 5 2Tb disks (1 for OS and the other 4 in a Raid0)
like before. I was able to copy off the data that was on the original
Raid0 volume and put it back on the newly created one that is now 8Tb
and that worked well enough. But since I was unable to clone the
original OS disk, and proceeded to simply re-install the OS, the owner
apparently wants his $HOME directory copied off (which of course resides
on the 1Tb OS disk). So, being a SAS disk, I purchased an ICY Dock which
allows me to mount the SAS disk in an external enclosure, and plug it in
via USB (SAS -> SATA -> USB). However when I do a 'fdisk -l /dev/sdc' I
receive the following:

 

[r...@gc-server2 ~]# fdisk -l /dev/sdc

 

Disk /dev/sdc: 2199.0 GB, 219902322 bytes

255 heads, 63 sectors/track, 267349 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Disk /dev/sdc doesn't contain a valid partition table

 

Two things are a bit unusual here, first of all its not a 2Tb disk, and
secondly why cant I read the partition table. 

 

Originally the OS was on an LVM volume and by default it was setup as

 

 /dev/VolGroup00/LogVol00 /   ext3defaults
1 1

 

My question is, is there a way to connect and mount this via USB and be
able to get the $HOME directory stuff off that I failed to copy off
before removing the disk?

 

Thanks in advance

Michael


===

P Please consider the environment before printing this e-mail

Cleveland Clinic is ranked one of the top hospitals
in America by U.S.News & World Report (2009).  
Visit us online at http://www.clevelandclinic.org for
a complete listing of our services, staff and
locations.


Confidentiality Note:  This message is intended for use
only by the individual or entity to which it is addressed
and may contain information that is privileged,
confidential, and exempt from disclosure under applicable
law.  If the reader of this message is not the intended
recipient or the employee or agent responsible for
delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If
you have received this communication in error,  please
contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy.  Thank you.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Creating a user defined service in Cent os

2010-05-24 Thread Hakan Koseoglu
Hai Chaitanya,

On 24 May 2010 14:59, Chaitanya Yanamadala  wrote:
> hai
>  i have a perl script which will automatically check for the existing files
> and then ftp them to a server, this one runs in a loop until i kill it, now
> what i wants is i want to make this as a service so that it can keep on
> running until i kill the service. so does any one have an idea how to do
> this??

Create an init script with start and stop options, spawn your perl
script as a background process and store the PID of this into a
pidfile in /var/run. At the stop section kill the pid stored in the
pidfile. You should be able to find some similar scripts in
/etc/init.d. Then add it to the services and you're done. You should
be able to issue the stop & start commands just like any service.

-- 
Hakan (m1fcj) - http://www.hititgunesi.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] LSI software raid with centos 5.4

2010-05-24 Thread Chan Chung Hang Christopher
CList wrote:
> Hi,
> 
> I have been trying to install CentOS 5.4 on a Intel SR1530SHS, Intel S3200SH
> mainboard.. It has a 3 x 1TB sata hotswap drives with LSI software raid
> onboard.

fake-raid alert!


> 
> I had configured the LSI to have Sata0 and Sata1 with raid 1 and the third
> drive as a hotspare drive.

Okay...


> 
> Format the harddisk and installation was a breeze. The server rebooted into
> a blank screen and the cursor just keep blinking.

Drivers for the LSI fake-raid not included in initrd maybe?


> 
> Please advise.

Reinstall and use md raid?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Creating a user defined service in Cent os

2010-05-24 Thread Jerry McAllister
On Mon, May 24, 2010 at 07:29:21PM +0530, Chaitanya Yanamadala wrote:

> hai
>  i have a perl script which will automatically check for the existing files
> and then ftp them to a server, this one runs in a loop until i kill it, now
> what i wants is i want to make this as a service so that it can keep on
> running until i kill the service. so does any one have an idea how to do
> this??

Has anyone syggested using rsync instead of a Perl script?
That is designed just for things like this and works well
and might be more secure than the Perl script.

Or you could put use rsync in your Perl script.  

You will need to create a little binary to invoke the Perl script.
Then create an rd.d type script that takes a 'start' and 'stop'
put it in and run it with a 'start' parameter.   Give the startup 
script a 'stop' when you want to quite.

Look at the stuff in init.d, etc such as apachectl for hints.
You probably don't need anything as elaborate as that for
the start/stop script, but it is a good example.

jerry


> 
> Chaitanya

> ___
> 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] Creating a user defined service in Cent os

2010-05-24 Thread Chaitanya Yanamadala
hai all
 thank you for your replies.
but can you send me some examples so that i can understand the things more
better..
i am quite new to linux..

so can u help me out.


Chaitanya




On Mon, May 24, 2010 at 8:03 PM, Jerry McAllister  wrote:

> On Mon, May 24, 2010 at 07:29:21PM +0530, Chaitanya Yanamadala wrote:
>
> > hai
> >  i have a perl script which will automatically check for the existing
> files
> > and then ftp them to a server, this one runs in a loop until i kill it,
> now
> > what i wants is i want to make this as a service so that it can keep on
> > running until i kill the service. so does any one have an idea how to do
> > this??
>
> Has anyone syggested using rsync instead of a Perl script?
> That is designed just for things like this and works well
> and might be more secure than the Perl script.
>
> Or you could put use rsync in your Perl script.
>
> You will need to create a little binary to invoke the Perl script.
> Then create an rd.d type script that takes a 'start' and 'stop'
> put it in and run it with a 'start' parameter.   Give the startup
> script a 'stop' when you want to quite.
>
> Look at the stuff in init.d, etc such as apachectl for hints.
> You probably don't need anything as elaborate as that for
> the start/stop script, but it is a good example.
>
> jerry
>
>
> >
> > Chaitanya
>
> > ___
> > 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 mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Naming of a Java Process in Linux

2010-05-24 Thread Pascal Robert

Le 2010-05-24 à 06:21, Mathieu Baudier a écrit :

>> linux box. So currently when i have these procs running on my box they
>> show up as "java" in the ps -A command. I dont know for sure as to which
> 
> if you can use the 'f' option in your ps command, you will get the
> arguments used to start the JVM. This may provide you with enough
> information to distinguish between them them
> 
> e.g.: ps -Af | grep java
> 
>> identify them properly can i have it running as java_1 or java_2 or
> 
> as far as I know, it is not (easily) possible
> 
> You could give a try to the jconsole tool which comes with the JDK (in
> package java-1.6.0-openjdk-devel), it allows you to monitor Java
> processes precisely (either local or remote via JMX).

+1 for JMX, and someone wrote a Nagios plugin that use JMX to monitor some 
parts of Java processes :


http://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/check_jmx/details
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] LSI software raid with centos 5.4

2010-05-24 Thread Dan Carl
On 5/24/2010 4:10 AM, CList wrote:
>>> I have been trying to install CentOS 5.4 on a Intel SR1530SHS, Intel
>>>
> S3200SH
>
>>> mainboard.. It has a 3 x 1TB sata hotswap drives with LSI software raid
>>> onboard.
>>>
>>> I had configured the LSI to have Sata0 and Sata1 with raid 1 and the
>>>
> third
>
>>> drive as a hotspare drive.
>>>
>>> Format the harddisk and installation was a breeze. The server rebooted
>>>
> into
>
>>> a blank screen and the cursor just keep blinking.
>>>
>>>
> 
>
>
>> I've had this problem on an Intel board when I had hard drives on the
>> motherboards SATA ports and some on the motherboards silicon image
>> SATA ports. The bios seemed to swap the order the drives were present
>> to grub so it couldn't boot. I would either get a blinking cursor or
>> GRUB. I ended up putting all the drives on a LSI PCI Express card and
>> everything just worked. However in your situation it sounds like you
>> only have drives on the LSI controller.
>>
>> I would try booting into resuce mode with the CentOS installation CD.
>> You can do this by typing linux rescue. Have it search and mount the
>> CentOS installation. Look at /boot/grub/device.map and make sure hd0
>> references the correct /dev/sd device. Also chroot /mnt/sysimage and
>> try grub-install /dev/sd
>>  
> Ryan,
>
> I followed your instruction, but it is still not working. Any other
> suggestion?
>
>
Have you considered using software raid instead?
I would take a reinstall, but IMO an easier/better solution over 
built-in and low-end HW raid controllers.
Dan

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


Re: [CentOS] Building an install disk on a USB key, solved (again)

2010-05-24 Thread Bowie Bailey
I was able to successfully install from an 8GB USB flash drive (4GB is
not quite big enough, even for i386) created with this procedure:

Create a 10M DOS partition and make it active
Create Linux partition using the rest of the drive

mkfs -t vfat 
mkfs 

 liveCD-iso-to-disk  /dev/
mount  /mnt
rsync --progress  /mnt/

You can get the boot.iso by loop-mounting the CentOS iso and pulling it
out of the /os/i386/images directory, or grab it from one of the mirrors
(the mirror links on the CentOS site link directly to the install isos,
so you'll have to browse up a few directories and then go back down to
find the images directory).

(I replaced the 'cp' command with 'rsync' here because I hate having a
copy run for 10 minutes with no progress indication :)

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


Re: [CentOS] Creating a user defined service in Cent os

2010-05-24 Thread Marcelo M. Garcia
Chaitanya Yanamadala wrote:
> hai all
>  thank you for your replies.
> but can you send me some examples so that i can understand the things 
> more better..
Hi

Have a look in the scripts in /etc/init.d/, some of them can be little 
bit complex, but worth the time to learn. You can start with 
/etc/init.d/atd.

Regards

mg.

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


Re: [CentOS] Naming of a Java Process in Linux

2010-05-24 Thread Hakan Koseoglu
Jatin,

On 24 May 2010 06:06, Jatin Davey  wrote:

> show up as "java" in the ps -A command. I dont know for sure as to which
> java process belongs to which component of my appliacation. Hence what i
> do is add up all the resource utilization values for all java processes
Add a -Darbitrary_string into your java commands.

Unless you are very unlucky with your arbitrary string, these will be
passed to the java engine as parameters and will be ignored by the
rest of the application. Then you can use this to pin the process in
ps output.

-- 
Hakan (m1fcj) - http://www.hititgunesi.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Creating a user defined service in Cent os

2010-05-24 Thread Chaitanya Yanamadala
thank u marcelo.
so after creating a file how do i add it to service list.
coz when  i create a new file in /etc/init.d it is not appearing in the
services list..

Chaitanya

"A man can get discouraged many times but he is not a failure until he stops
trying..."

"The difference between 'involvement' and 'commitment' is like an
eggs-and-ham breakfast: the chicken was 'involved' - the pig was
'committed'."


On Mon, May 24, 2010 at 8:32 PM, Marcelo M. Garcia <
marcelo.maia.gar...@googlemail.com> wrote:

> Chaitanya Yanamadala wrote:
> > hai all
> >  thank you for your replies.
> > but can you send me some examples so that i can understand the things
> > more better..
> Hi
>
> Have a look in the scripts in /etc/init.d/, some of them can be little
> bit complex, but worth the time to learn. You can start with
> /etc/init.d/atd.
>
> Regards
>
> mg.
>
> ___
> 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] Mounting LVM disk

2010-05-24 Thread Todd Denniston
Weiner, Michael wrote, On 05/24/2010 10:28 AM:
> List Readers -
> 
>  
> 
> I have a Dell server that uses the Perc 6i controller and had 5 1Tb
> disks installed (1 for OS and the other 4 in a Raid0 for a large storage
> pool). 


>  
> 
> [r...@gc-server2 ~]# fdisk -l /dev/sdc
> 
>  
> 
> Disk /dev/sdc: 2199.0 GB, 219902322 bytes
> 
> 255 heads, 63 sectors/track, 267349 cylinders
> 
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>  
> 
> Disk /dev/sdc doesn't contain a valid partition table
> 

Are you sure that the Perc was not presenting you with a logical disk (Volume)?
One I received from dell, with RHEL on it, was setup with 8 disks in a raid5 
and the controller was
presenting the whole array as two drives, i.e., no physical drives are 
presented to the OS.

BTW had your support contract ran out with Dell/RH?

>  
> 
> Two things are a bit unusual here, first of all its not a 2Tb disk, and
> secondly why cant I read the partition table. 
> 
>  
> 
> Originally the OS was on an LVM volume and by default it was setup as
> 
>  
> 
>  /dev/VolGroup00/LogVol00 /   ext3defaults
> 1 1
> 

you might get lucky with a vgscan or lvmdiskscan, however my bet is on having 
to put all the drives
back in a perc array.

>  
> 
> My question is, is there a way to connect and mount this via USB and be
> able to get the $HOME directory stuff off that I failed to copy off
> before removing the disk?
> 
>  
> 
> Thanks in advance
> 
> Michael
> 


-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mounting LVM disk

2010-05-24 Thread Brian Mathis
On Mon, May 24, 2010 at 10:28 AM, Weiner, Michael  wrote:
> List Readers –
>
> I have a Dell server that uses the Perc 6i controller and had 5 1Tb disks
> installed (1 for OS and the other 4 in a Raid0 for a large storage pool).
> The owner of the server wanted me to swap out the 1Tb disks for 2Tb disks –
> easy enough I thought, but I ran into some issues trying to clone the OS
> disk to the new 2Tb disk, so I just did a re-install. So basically we now
> have 5 2Tb disks (1 for OS and the other 4 in a Raid0) like before. I was
> able to copy off the data that was on the original Raid0 volume and put it
> back on the newly created one that is now 8Tb and that worked well enough.
> But since I was unable to clone the original OS disk, and proceeded to
> simply re-install the OS, the owner apparently wants his $HOME directory
> copied off (which of course resides on the 1Tb OS disk). So, being a SAS
> disk, I purchased an ICY Dock which allows me to mount the SAS disk in an
> external enclosure, and plug it in via USB (SAS -> SATA -> USB). However
> when I do a ‘fdisk –l /dev/sdc’ I receive the following:
>
> [r...@gc-server2 ~]# fdisk -l /dev/sdc
>
> Disk /dev/sdc: 2199.0 GB, 219902322 bytes
> 255 heads, 63 sectors/track, 267349 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Disk /dev/sdc doesn't contain a valid partition table
>
> Two things are a bit unusual here, first of all its not a 2Tb disk, and
> secondly why cant I read the partition table.
>
> Originally the OS was on an LVM volume and by default it was setup as
>
>  /dev/VolGroup00/LogVol00 /   ext3    defaults    1
> 1
>
> My question is, is there a way to connect and mount this via USB and be able
> to get the $HOME directory stuff off that I failed to copy off before
> removing the disk?
>
> Thanks in advance
> Michael


Since the disk was connected through a RAID controller it's most
likely that the disk is formatted for the custom format that the RAID
controller uses.  The controller then presents that disk to the OS.
You're going to have to put the drive back into the server so the PERC
can see it, then you might be able to get to the LVMs.


PS. You did something like this without making backups first?

PPS. You might have a reason, but it would be irresponsible not to
point out that by using RAID0 you now have an exponential risk of
losing all of that data.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Creating a user defined service in Cent os

2010-05-24 Thread Steve Huff

On May 24, 2010, at 11:06 AM, Chaitanya Yanamadala wrote:

> so after creating a file how do i add it to service list.
> coz when  i create a new file in /etc/init.d it is not appearing in the 
> services list..


man chkconfig

-steve

--
If this were played upon a stage now, I could condemn it as an improbable 
fiction. - Fabian, Twelfth Night, III,v
http://five.sentenc.es



PGP.sig
Description: This is a digitally signed message part
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Creating a user defined service in Cent os

2010-05-24 Thread Marcelo M. Garcia
Chaitanya Yanamadala wrote:
> so after creating a file how do i add it to service list.
> coz when  i create a new file in /etc/init.d it is not appearing in the 
> services list..
> 
> Chaitanya
> 
Hi

Then you use "chkconfig" to manage when the service will start, 
something like "chkconfig --add ", or simply "chkconfig 
 on", I'm not sure the best to way to do this.

There is a proper way of making the header for chkconfig, if I remember 
right. I think the man page give you this information.


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


Re: [CentOS] Mounting LVM disk

2010-05-24 Thread Weiner, Michael
Todd Denniston, On Monday, May 24, 2010 11:15 AM

> Are you sure that the Perc was not presenting you with a logical disk
(Volume)?
> One I received from dell, with RHEL on it, was setup with 8 disks in a
raid5 and the controller was
> presenting the whole array as two drives, i.e., no physical drives are
presented to the OS.

This is a possibility. I will have to check out the other server hanging
around

> BTW had your support contract ran out with Dell/RH?

We do have support on the box, but don't purchase a RHEL license and we
run CentOS instead

> you might get lucky with a vgscan or lvmdiskscan, however my bet is on
having to put all the drives
> back in a perc array.

I will try the lvmdiskscan, but vgscan only sees the currently running
disk. Problem is, if I put it back into the Perc then it will want to
'initialize' it which I believe will do a low level format :(

Thanks
Michael

===

P Please consider the environment before printing this e-mail

Cleveland Clinic is ranked one of the top hospitals
in America by U.S.News & World Report (2009).  
Visit us online at http://www.clevelandclinic.org for
a complete listing of our services, staff and
locations.


Confidentiality Note:  This message is intended for use
only by the individual or entity to which it is addressed
and may contain information that is privileged,
confidential, and exempt from disclosure under applicable
law.  If the reader of this message is not the intended
recipient or the employee or agent responsible for
delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If
you have received this communication in error,  please
contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy.  Thank you.

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


Re: [CentOS] Mounting LVM disk

2010-05-24 Thread Weiner, Michael
Brian Mathis, On Monday, May 24, 2010 11:17 AM

> Since the disk was connected through a RAID controller it's most
> likely that the disk is formatted for the custom format that the RAID
> controller uses.  The controller then presents that disk to the OS.
> You're going to have to put the drive back into the server so the PERC
> can see it, then you might be able to get to the LVMs.

You are probably right, but I believe it will want to initialize the
drive first which I cannot let it do as I believe that will wipe whats
there.

> PS. You did something like this without making backups first?

The only thing I really cared about was the data on the Raid0 honestly
and I wasn't too concerned about the $HOME directory since there is
another 'copy' on another server - however the individual has since let
me know that they were not in sync and there were things he had done
that he hadn't backed up.

> PPS. You might have a reason, but it would be irresponsible not to
> point out that by using RAID0 you now have an exponential risk of
> losing all of that data.

The Raid0 is simply a large disk pool for temporary data storage. Not
the way I would build this, but I am simply managing the hardware for
this individual, and he has been warned about the loss of data due to
the single point of failure, especially without backing this data up to
somewhere I can get to it with tape

Thanks again
Michael

===

P Please consider the environment before printing this e-mail

Cleveland Clinic is ranked one of the top hospitals
in America by U.S.News & World Report (2009).  
Visit us online at http://www.clevelandclinic.org for
a complete listing of our services, staff and
locations.


Confidentiality Note:  This message is intended for use
only by the individual or entity to which it is addressed
and may contain information that is privileged,
confidential, and exempt from disclosure under applicable
law.  If the reader of this message is not the intended
recipient or the employee or agent responsible for
delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If
you have received this communication in error,  please
contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy.  Thank you.

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


Re: [CentOS] Mounting LVM disk

2010-05-24 Thread Todd Denniston
Weiner, Michael wrote, On 05/24/2010 11:38 AM:
> Todd Denniston, On Monday, May 24, 2010 11:15 AM
> 

>> BTW had your support contract ran out with Dell/RH?
> 
> We do have support on the box, but don't purchase a RHEL license and we
> run CentOS instead
> 
>> you might get lucky with a vgscan or lvmdiskscan, however my bet is on
> having to put all the drives
>> back in a perc array.
> 
> I will try the lvmdiskscan, but vgscan only sees the currently running
> disk. Problem is, if I put it back into the Perc then it will want to
> 'initialize' it which I believe will do a low level format :(
> 

With the Dell support, you could call Dell and ask how they expect the Perc to 
work with the disk
upon reinsertion.
Should at least letup your nerves.

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mounting LVM disk

2010-05-24 Thread Rob Kampen




Todd Denniston wrote:

  Weiner, Michael wrote, On 05/24/2010 11:38 AM:
  
  
Todd Denniston, On Monday, May 24, 2010 11:15 AM


  
  
  
  

  BTW had your support contract ran out with Dell/RH?
  

We do have support on the box, but don't purchase a RHEL license and we
run CentOS instead



  you might get lucky with a vgscan or lvmdiskscan, however my bet is on
  

having to put all the drives


  back in a perc array.
  

I will try the lvmdiskscan, but vgscan only sees the currently running
disk. Problem is, if I put it back into the Perc then it will want to
'initialize' it which I believe will do a low level format :(


  
  
With the Dell support, you could call Dell and ask how they expect the Perc to work with the disk
upon reinsertion.
Should at least letup your nerves.

  

I also suspect that you will need to ensure each drive is plugged into
the same original controller port. Otherwise it may try to stripe data
across two incompatible drives (not an original pair) and thus bye bye
data.


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


Re: [CentOS] Mounting LVM disk

2010-05-24 Thread Weiner, Michael
Todd Denniston, On Monday, May 24, 2010 11:50 AM
To: CentOS mailing list

> With the Dell support, you could call Dell and ask how they expect the
Perc to work with the disk
> upon reinsertion.
> Should at least letup your nerves.


Thanks Todd, I think I will have to resort to that :)

Michael

===

P Please consider the environment before printing this e-mail

Cleveland Clinic is ranked one of the top hospitals
in America by U.S.News & World Report (2009).  
Visit us online at http://www.clevelandclinic.org for
a complete listing of our services, staff and
locations.


Confidentiality Note:  This message is intended for use
only by the individual or entity to which it is addressed
and may contain information that is privileged,
confidential, and exempt from disclosure under applicable
law.  If the reader of this message is not the intended
recipient or the employee or agent responsible for
delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If
you have received this communication in error,  please
contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy.  Thank you.

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


[CentOS] [WTA] Automatically blocking on failed login

2010-05-24 Thread David Suhendrik

Hello All,
I had problems with the security server, the server is frequently 
attacked using bruteforce attacks. Is there an application that can 
perform automatic blocking when there are failed login to the ports 
smtp, pop3 port, and others?


I am currently using CentOS 5.5 in some servers
Thanks in advanced...

--
--
Best regards,
David
http://blog.pnyet.web.id

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


Re: [CentOS] [WTA] Automatically blocking on failed login

2010-05-24 Thread Mr Gabriel
Google something called fail2ban :)
---
Kind Regards,
Mr Gabriel (bberry mail)

-Original Message-
From: "David Suhendrik" 
Date: Mon, 24 May 2010 23:55:05 
To: CentOS mailing list
Subject: [CentOS] [WTA] Automatically blocking on failed login

___
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] [WTA] Automatically blocking on failed login

2010-05-24 Thread m . roth
> Hello All,
> I had problems with the security server, the server is frequently
> attacked using bruteforce attacks. Is there an application that can
> perform automatic blocking when there are failed login to the ports
> smtp, pop3 port, and others?
>
> I am currently using CentOS 5.5 in some servers
> Thanks in advanced...

fail2ban will at least do some. And it works well, right out of the box,
er, package. 

  mark

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


Re: [CentOS] Created a custom/minimal CentOS 5.x install ISO

2010-05-24 Thread Gordon Messmer
On 05/20/2010 07:55 AM, Digimer wrote:
>
> So let me see if I've got this straight (sorry, I'm coming from a
> Debian background)...
>
> 1. I need to create my own local repo which revisor will draw from.

Creating a local repo is basically the effect of running revisor.  If 
you keep a copy of the disc or installation tree that revisor builds, 
you can use it later to avoid downloading packages that haven't changed. 
  If you don't want to rebuild the installer, you can also use the 
reuseinstaller plugin to copy the installer from the image you compose 
as well.

> 2. Create my own kickstart file (already done, actually)
> 3. Run revisor as you've both discussed.

Yep.

> My goal is to create a much smaller DVD, more than anything. I won't
> be adding any custom RPMs, but I do want to add some existing ones not
> on the normal DVD (ie: DRBD). Is there a way, after parsing the
> kickstart script, to get a list of RPMs that weren't used?

Not normally.  You'd have to gather the repodata from all of the 
repositories in the revisor configuration file, build a list of all of 
the packages available, and then remove those that appear in your image.

> Or does
> revisor only pull from the repo the RPMs required to satisfy the
> kickstart script already?

Yes.  It will use what your kickstart file states is required.  It may 
also pull in a small number of additional packages which are required to 
build the anaconda installer.  Older versions of revisor do this even if 
you are using the reuseinstaller plugin.

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


Re: [CentOS] raid resync speed? - laptop drive-

2010-05-24 Thread Les Mikesell
On 5/24/2010 6:56 AM, Robert Nichols wrote:
>
>>
>> The trayless internal hotswap enclosures claim to be good for 10,000+ 
>> insertions
>> and I'm using larger ones for the desktop drives I had been using without any
>> problems.   I have seen some postings to the effect that I need a newer 
>> kernel
>> to recognize the 4k sectors besides doing the partition alignment.  Maybe I 
>> can
>> boot the RHEL 6 beta or a fedora iso and see if they are faster.
>
> Sounds good, unless that 10,000 insertion spec is predicated on spreading
> the usage among 200 drives such that no individual drives has more than
> 50 insertions.  ;-(
>
> BTW, I got carried away typing zeros in that spec. for the eSATA connector.
> The right number is 5,000 insertions, not 50,000.
>
> If you want a good write-up on what the kernel developers have to contend
> with to handle these 4KiB sector sizes, see
> https://ata.wiki.kernel.org/index.php/ATA_4_KiB_sector_issues
>
> For those with a strong stomach for such things, a nice historical
> perspective on the horrors of ever-increasing drive sizes can be found
> at http://www.win.tue.nl/~aeb/linux/Large-Disk.html .  Just be sure to
> keep the 2004 date in mind when it mentions "recent kernels."

I booted a RHEL6 beta DVD in rescue mode, but it wasn't any better. 
That version of fdisk does show:
Logical/Physical Sector size512 bytes
though, so it's probably hopeless.   Oddly, that version of fdisk 
wouldn't let me move the beginning back below 63 either - but I did that 
with the 5.x fdisk.

-- 
   Les Mikesell
 lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [WTA] Automatically blocking on failed login

2010-05-24 Thread John Jasen
David Suhendrik wrote:
> Hello All,
> I had problems with the security server, the server is frequently
> attacked using bruteforce attacks. Is there an application that can
> perform automatic blocking when there are failed login to the ports
> smtp, pop3 port, and others?
> 
> I am currently using CentOS 5.5 in some servers
> Thanks in advanced...

You can also do some amount of work with the pam mod_access and
mod_tally modules.

-- 
-- John E. Jasen (jja...@realityfailure.org)
-- "Deserve Victory." -- Terry Goodkind, Naked Empire
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [WTA] Automatically blocking on failed login

2010-05-24 Thread m . roth
> David Suhendrik wrote:
>> Hello All,
>> I had problems with the security server, the server is frequently
>> attacked using bruteforce attacks. Is there an application that can
>> perform automatic blocking when there are failed login to the ports
>> smtp, pop3 port, and others?
>>
>> I am currently using CentOS 5.5 in some servers
>> Thanks in advanced...
>
> You can also do some amount of work with the pam mod_access and
> mod_tally modules.
>
I looked at that latter, and the one thing is that if blocks an account
after enough failures, even if they show the right credentials... but it
lets them keep trying, where fail2ban puts in a temporary firewall rule
(configurable, but by default it drops it after, um, I think 2 days), and
the rule is DROP, so they can't even try. And it doesn't fill your
logfiles.

mark

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


Re: [CentOS] Mounting LVM disk

2010-05-24 Thread Brian Mathis
On Mon, May 24, 2010 at 11:43 AM, Weiner, Michael  wrote:
> Brian Mathis, On Monday, May 24, 2010 11:17 AM
...
>> PPS. You might have a reason, but it would be irresponsible not to
>> point out that by using RAID0 you now have an exponential risk of
>> losing all of that data.
>
> The Raid0 is simply a large disk pool for temporary data storage. Not
> the way I would build this, but I am simply managing the hardware for
> this individual, and he has been warned about the loss of data due to
> the single point of failure, especially without backing this data up to
> somewhere I can get to it with tape
>
> Thanks again
> Michael
...

OK, I won't beat this to death, as I know there are always exceptions
to the rules, BUT a 4-way RAID0 is far more likely to fail than just a
single disk, so I wouldn't consider it a single point of failure.  I'm
not sure about the math right now, but it's something like 2^4 (16) or
even 4! (24) time more likely to fail than a single disk.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Created a custom/minimal CentOS 5.x install ISO

2010-05-24 Thread Gordon Messmer
On 05/20/2010 04:38 PM, Kahlil Hodgson wrote:
> On 05/21/2010 12:55 AM, Digimer wrote:
>> 3. Run revisor as you've both discussed.
>>
>>My goal is to create a much smaller DVD, more than anything.
>
> I think the smallest you can get away with for a non-graphical install
> is something like
>
> %packages
> @base
> @core
> kernel
> anaconda
> isomd5sum
> %end

You can specify only "@core" if you want the smallest possible install. 
  You can specify only "@base" if you want the "minimal" installation. 
You don't need to specify the other packages.  kernel will always be 
installed.  anaconda and isomd5sum (and other deps) will be included 
unless you're using a recent version of revisor with the reuseinstaller 
plugin.

> The Fedora 'spins-kickstart' package has the kickstart files used to
> build their live-cds.  The %packages sections in those files will give
> you some insight into what a black art this can be.

Theirs is messy, but it's not usually that bad.  The 
system-config-kickstart tool on Fedora can be used to set this up with a 
GUI if you prefer.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] apache redirection

2010-05-24 Thread Gordon Messmer
On 05/21/2010 02:02 PM, Ski Dawg wrote:
> Thanks to everyone else for the replies on this topic. I scanned
> through all of the logs for the last month, and this has only come up
> twice in that entire time, and I believe they change that I made to
> redirect them to http://www.domainname.com (instead of
> http://domainname.com) would have caught both of those instances.

Not sure what you mean by "caught", but to reiterate: You cannot prevent 
popups with a redirect.  The redirect will be sent after the user has 
already seen the warning.  You can only prevent the warning by using 
different certs on different IPs, or using a cert with additional valid 
names and SNI (which isn't available in the vendor's package in RHEL 5).
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [WTA] Automatically blocking on failed login

2010-05-24 Thread Matt
> Hello All,
> I had problems with the security server, the server is frequently attacked
> using bruteforce attacks. Is there an application that can perform automatic
> blocking when there are failed login to the ports smtp, pop3 port, and
> others?
>
> I am currently using CentOS 5.5 in some servers
> Thanks in advanced...

This is very simple and works great.  Have done it on about 5 servers now.

iptables -A INPUT -p tcp --dport 22 -m state --state NEW -m recent
--set --name SSH

iptables -A INPUT -p tcp --dport 22 -m state --state NEW -m recent
--update --seconds 60 --hitcount 3 --rttl --name SSH -j LOG
--log-prefix 'SSH attack: '

iptables -A INPUT -p tcp --dport 22 -m state --state NEW -m recent
--update --seconds 60 --hitcount 3 --rttl --name SSH -j DROP

http://kevin.vanzonneveld.net/techblog/article/block_brute_force_attacks_with_iptables/

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


Re: [CentOS] can't update CENTOS - mirrore issue? or what?

2010-05-24 Thread Karanbir Singh
On 05/20/2010 09:57 PM, Ryan Manikowski wrote:
>> Could not retrieve mirrorlist
>> http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons error was
>> [Errno 4] IOError:> resolution')>
>> Error: Cannot find a valid baseurl for repo: addons
>
> Disable the 'addons' repo and your problem will be resolved.

That sounds like a bit of very random advice, given that Dave's dns is 
not responding - how would disabling the addons repo have an impact on 
Dave's nameserver ?

- KB

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


Re: [CentOS] [WTA] Automatically blocking on failed login

2010-05-24 Thread kalinix
On Mon, 2010-05-24 at 23:55 +0700, David Suhendrik wrote:

> Hello All,
> I had problems with the security server, the server is frequently
> attacked using bruteforce attacks. Is there an application that can
> perform automatic blocking when there are failed login to the ports
> smtp, pop3 port, and others?
> 
> I am currently using CentOS 5.5 in some servers
> Thanks in advanced...
> 
> -- 
> --
> Best regards,
> David
> http://blog.pnyet.web.id
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos


If you want an complete IDS then you could go for OSSEC
(http://www.ossec.net/). You can configure it to scan whatever log file
you like and block the ip that generate an error message in that log
file. While it could be a little overhead to tweak, it can achieve
remarkable results.


Calin

Key fingerprint = 37B8 0DA5 9B2A 8554 FB2B 4145 5DC1 15DD A3EF E857

=
The climate of Bombay is such that its inhabitants have to live
elsewhere.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] can't update CENTOS - mirrore issue? or what?

2010-05-24 Thread Drew Weaver
Perhaps he has an invalid URL specified only for addons and not base/updates?

thanks,
-Drew


-Original Message-
From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of 
Karanbir Singh
Sent: Monday, May 24, 2010 3:17 PM
To: CentOS mailing list
Subject: Re: [CentOS] can't update CENTOS - mirrore issue? or what?

On 05/20/2010 09:57 PM, Ryan Manikowski wrote:
>> Could not retrieve mirrorlist
>> http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons error was
>> [Errno 4] IOError:> resolution')>
>> Error: Cannot find a valid baseurl for repo: addons
>
> Disable the 'addons' repo and your problem will be resolved.

That sounds like a bit of very random advice, given that Dave's dns is 
not responding - how would disabling the addons repo have an impact on 
Dave's nameserver ?

- KB

___
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] can't update CENTOS - mirrore issue? or what?

2010-05-24 Thread Dave Stevens
Quoting Karanbir Singh :

> On 05/20/2010 09:57 PM, Ryan Manikowski wrote:
>>> Could not retrieve mirrorlist
>>> http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons error was
>>> [Errno 4] IOError:>> resolution')>
>>> Error: Cannot find a valid baseurl for repo: addons
>>
>> Disable the 'addons' repo and your problem will be resolved.
>
> That sounds like a bit of very random advice, given that Dave's dns is
> not responding - how would disabling the addons repo have an impact on
> Dave's nameserver ?
>
> - KB

well I did disable addons and then was able to do the update. Then  
when I checked for available updates I got only three showing, all  
listed as epel. For the moment those updates are of no special  
importance so I'm happy to deal with other problems. Nonetheless I  
remained puzzled by both the original problem and the fix.

Dave

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



-- 
"It is no measure of health to be well adjusted to a profoundly sick society."
   Krishnamurti

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


Re: [CentOS] can't update CENTOS - mirrore issue? or what?

2010-05-24 Thread Karanbir Singh
On 05/24/2010 08:26 PM, Drew Weaver wrote:
> Perhaps he has an invalid URL specified only for addons and not base/updates?
>

look at the error, specially the bit where it says 'Temporary failure in 
name resolution'


And please dont top post, its not like you are new to mailing lists

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


Re: [CentOS] raid resync speed? - laptop drive-

2010-05-24 Thread Robert Nichols
On 05/24/2010 12:41 PM, Les Mikesell wrote:
> On 5/24/2010 6:56 AM, Robert Nichols wrote:
>>
>>>
>>> The trayless internal hotswap enclosures claim to be good for 10,000+ 
>>> insertions
>>> and I'm using larger ones for the desktop drives I had been using without 
>>> any
>>> problems.   I have seen some postings to the effect that I need a newer 
>>> kernel
>>> to recognize the 4k sectors besides doing the partition alignment.  Maybe I 
>>> can
>>> boot the RHEL 6 beta or a fedora iso and see if they are faster.
>>
>> Sounds good, unless that 10,000 insertion spec is predicated on spreading
>> the usage among 200 drives such that no individual drives has more than
>> 50 insertions.  ;-(
>>
>> BTW, I got carried away typing zeros in that spec. for the eSATA connector.
>> The right number is 5,000 insertions, not 50,000.
>>
>> If you want a good write-up on what the kernel developers have to contend
>> with to handle these 4KiB sector sizes, see
>>  https://ata.wiki.kernel.org/index.php/ATA_4_KiB_sector_issues
>>
>> For those with a strong stomach for such things, a nice historical
>> perspective on the horrors of ever-increasing drive sizes can be found
>> at http://www.win.tue.nl/~aeb/linux/Large-Disk.html .  Just be sure to
>> keep the 2004 date in mind when it mentions "recent kernels."
>
> I booted a RHEL6 beta DVD in rescue mode, but it wasn't any better.
> That version of fdisk does show:
> Logical/Physical Sector size512 bytes
> though, so it's probably hopeless.   Oddly, that version of fdisk
> wouldn't let me move the beginning back below 63 either - but I did that
> with the 5.x fdisk.

The only other thing I can think of to try would be to use 'dd' with a
blocksize that is a multiple of 4K directly into a raw partition located
at each of the 8 possible alignments and see if any of them gives
better throughput.  I suppose it's possible that something in the USB
bridge chip (guessing that the enclosure presents a USB interface) won't
allow the 4K write to pass.  Any chance of experimenting with one of
those drives hooked directly to an SATA port?

-- 
Bob Nichols "NOSPAM" is really part of my email address.
 Do NOT delete it.

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


Re: [CentOS] Naming of a Java Process in Linux

2010-05-24 Thread Agile Aspect
On Sun, May 23, 2010 at 10:06 PM, Jatin Davey  wrote:
> Hi
>
> Not a specific question on CentOS but in general about java processes
> running on Linux boxes.
>
> I have a couple of java processes running on my linux boxes , They
> basically form a component of a bigger application. My point of interest
> is to monitor the resource usage of the java processes running on the
> linux box. So currently when i have these procs running on my box they
> show up as "java" in the ps -A command. I dont know for sure as to which
> java process belongs to which component of my appliacation. Hence what i
> do is add up all the resource utilization values for all java processes
> as my monitoring application relies on process names. So what i thought
> was , Is there a solution in linux or the way the JVM is initiated can
> we have process names different for different java processes. To be more
> specific if i have two java processes running in my system , in order to
> identify them properly can i have it running as java_1 or java_2 or
> something in those lines.
>

Use

  ps auxwww

to identify the process, and you can use

  jconsole

(which is bundled with jdk) to monitor.

-- 
  Enjoy global warming while it lasts.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos