Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread Nicolas Thierry-Mieg
Ljubomir Ljubojevic wrote:
> for i in $(find . -type f | grep .rpm); do

> rpmsign --addsign `find . -type f | grep .rpm | grep -v .zzz`

just a small comment, grep uses regexps so this doesn't do what you want 
(eg the . is a wildcard char). Your script can break, silently (won't 
sign rpms whose name contains "any char followed by zzz") or not (will 
attempt to rpmsign eg myrpms.pl), with some particular file names.

what you really want is files ending with .rpm, so:
grep '\.rpm$'

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


Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread John R. Dennison
On Sat, May 21, 2011 at 09:30:06AM +0200, Nicolas Thierry-Mieg wrote:
> Ljubomir Ljubojevic wrote:
> > for i in $(find . -type f | grep .rpm); do
> 
> > rpmsign --addsign `find . -type f | grep .rpm | grep -v .zzz`
> 
> just a small comment, grep uses regexps so this doesn't do what you want 
> (eg the . is a wildcard char). Your script can break, silently (won't 
> sign rpms whose name contains "any char followed by zzz") or not (will 
> attempt to rpmsign eg myrpms.pl), with some particular file names.
> 
> what you really want is files ending with .rpm, so:
> grep '\.rpm$'

Why are people passing this off to grep?

rpmsign --addsign $(find . -type f -name \*.rpm ! -name \*.zzz)

To be fair I've not read this entire thread so I may be missing
something here.




John

-- 
Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former.
-- Albert Einstein


pgpJGIJJrBkLW.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread John R Pierce
On 05/21/11 12:43 AM, John R. Dennison wrote:

> find . -type f -name \*.rpm ! -name \*.zzz


that won't work right anyways.the first -name says match just .rpm 
files.   none of those will be .zzz so the 2nd expression won't ever get 
hit (all .rpm files are not .zzz files).



-- 
john r pierceN 37, W 123
santa cruz ca mid-left coast

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


Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread John R. Dennison
On Sat, May 21, 2011 at 12:50:10AM -0700, John R Pierce wrote:
> 
> that won't work right anyways.the first -name says match just .rpm 
> files.   none of those will be .zzz so the 2nd expression won't ever get 
> hit (all .rpm files are not .zzz files).

That's what I get for posting at this hour of the morning :(

But even so, I still see little point in going through grep step when
find has the ability internally.




John
-- 
Worrying works.  About 90% of the things I worry about never happen.

-- Woody Paige (1946-), sports columnist, on ESPN's "Around the Horn"


pgpkR96Yj2UBR.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread Ljubomir Ljubojevic
John R. Dennison wrote:
> On Sat, May 21, 2011 at 12:50:10AM -0700, John R Pierce wrote:
>> that won't work right anyways.the first -name says match just .rpm 
>> files.   none of those will be .zzz so the 2nd expression won't ever get 
>> hit (all .rpm files are not .zzz files).
> 
> That's what I get for posting at this hour of the morning :(
> 
> But even so, I still see little point in going through grep step when
> find has the ability internally.
> 

Please post on OT, I messed up with this post, did not use reply.

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


Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread Nicolas Thierry-Mieg
John R. Dennison wrote:
> On Sat, May 21, 2011 at 09:30:06AM +0200, Nicolas Thierry-Mieg wrote:
>> Ljubomir Ljubojevic wrote:
>>> for i in $(find . -type f | grep .rpm); do
>>
>>> rpmsign --addsign `find . -type f | grep .rpm | grep -v .zzz`
>>
>> just a small comment, grep uses regexps so this doesn't do what you want
>> (eg the . is a wildcard char). Your script can break, silently (won't
>> sign rpms whose name contains "any char followed by zzz") or not (will
>> attempt to rpmsign eg myrpms.pl), with some particular file names.
>>
>> what you really want is files ending with .rpm, so:
>> grep '\.rpm$'
>
> Why are people passing this off to grep?
>
> rpmsign --addsign $(find . -type f -name \*.rpm ! -name \*.zzz)

agreed, using find alone is "another way to do it", although as stated 
by John Pierce the second -name is useless here.
I was pointing out a flaw in the code and offering a correction using 
"the same way to do it".
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread Ljubomir Ljubojevic
Nicolas Thierry-Mieg wrote:
> John R. Dennison wrote:
>> On Sat, May 21, 2011 at 09:30:06AM +0200, Nicolas Thierry-Mieg wrote:
>>> Ljubomir Ljubojevic wrote:
 for i in $(find . -type f | grep .rpm); do
 rpmsign --addsign `find . -type f | grep .rpm | grep -v .zzz`
>>> just a small comment, grep uses regexps so this doesn't do what you want
>>> (eg the . is a wildcard char). Your script can break, silently (won't
>>> sign rpms whose name contains "any char followed by zzz") or not (will
>>> attempt to rpmsign eg myrpms.pl), with some particular file names.
>>>
>>> what you really want is files ending with .rpm, so:
>>> grep '\.rpm$'
>> Why are people passing this off to grep?
>>
>> rpmsign --addsign $(find . -type f -name \*.rpm ! -name \*.zzz)
> 
> agreed, using find alone is "another way to do it", although as stated 
> by John Pierce the second -name is useless here.
> I was pointing out a flaw in the code and offering a correction using 
> "the same way to do it".

I did some checking, yes
find . -type f -name \*.rpm
does what I need it to do. Original command from KB's blog just used 
something like
"find . -type f -name *.rpm"
, without "\" before *.rpm so I used grep to correct. I was not aware of 
   benefit of "\", finding examples for command "find" is little harder 
to google since it is VERY common word in general. Thanks for pointing 
this out.

Using \*.rpm eliminates need for anything that contains ".zzz"

OK,

Part of e-mail from OT:

Anyhow, I have developed nice script for automatic signing of (--addsign
= only unsigned, --resign = all) rpm's.

Features:
1) It supports subdirectories of unlimited? depth.
2) Password is only asked once.
3) Timestamps are preserved.
4) Script outputs check of rpm's together with active GPG Key ID and
time of signing. Useful for final check and logging.

I hope this script will find good use for rpm packagers.

I named the script "rpm-autosign".

And the code is:

#!/bin/bash
# Author Ljubomir Ljubojevic 
for i in $(find . -type f -name \*.rpm); do
 touch -r "$i" "$i.zzz"
done
rpmsign --addsign `find . -type f -name \*.rpm`
for i in $(find . -type f -name \*.rpm); do
 touch -r "$i.zzz" "$i"
done
for i in $(find . -type f -name \*.zzz); do
 rm -f "$i"
done
#rpmsign --checksig `find . -name \*.rpm`
rpm -qp `find . -type f -name \*.rpm` --qf='%-{NAME} %{BUILDHOST}
%{PACKAGER} %{SIGGPG:pgpsig} \n'

Notice that last line is broken in two by mail client.

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


Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread John R. Dennison
On Sat, May 21, 2011 at 10:13:52AM +0200, Nicolas Thierry-Mieg wrote:
> 
> agreed, using find alone is "another way to do it", although as stated 
> by John Pierce the second -name is useless here.
> I was pointing out a flaw in the code and offering a correction using 
> "the same way to do it".

Oh, indeed.  My find construct was flawed from converting from the
previous example at 0darkhundred and not paying proper attention after a
far too long work week.  Sorry for any confusion my post caused.




John

-- 
No government is perfect.  One of the chief virtues of a democracy,
however, is that its defects are always visible and under democratic
processes can be pointed out and corrected.

-- Harry S Truman (1884 - 1972), 33rd US President, to a joint session
of the US Congress (12 March 1947), outlining what became known as
The Truman Doctrine


pgpmarfH7ChRT.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread Johnny Hughes
On 05/20/2011 01:13 PM, Keith Roberts wrote:
> On Fri, 20 May 2011, Ljubomir Ljubojevic wrote:
> 
>> To: CentOS mailing list 
>> From: Ljubomir Ljubojevic 
>> Subject: [CentOS] Passing password to script for rpmsign of list of .rpm 
>> files
>>
>> I am trying to automatize signing of unsigned .rpm files. My repo has at
>> least 50 x 3 packages.
>>
>> But I would have to type numerous passwords for each file. I can not see
>> hot to pass pass phrase to script.
>>
>> rpmsign --resign {--pass=??}  
>>
>> Can someone advise me how to do that?
>>
> 
> Hi Ljubomir.
> 
> Not sure if this would work for signing packages, but I use 
> this script to start all services listed in a text file:
> 
> #!/bin/bash
> 
> # Start all services on machine
> 
> echo
> echo 
> ""
> echo "Running script: $0"
> echo 
> ""
> echo
> 
> # start all services listed in service-names
> xargs -a ./service-names -i chkconfig --level 2345 {} on
> 
> # list the status of services in service-names file
> echo "All services are now turned on (all those listed in 
> service-names file)
> "
> echo "for run levels 2345"
> echo
> xargs -a ./service-names -i chkconfig --list {}
> echo
> 
> exit 0
> 
> You may be able to modify the above script to do what you 
> need it to. xargs is in the findutils package:
> 
> Name   : findutils
> Arch   : i386
> Epoch  : 1
> Version: 4.2.27
> Release: 6.el5
> Size   : 662 k
> Repo   : installed
> Summary: The GNU versions of find utilities (find and xargs).
> URL: http://www.gnu.org/software/findutils/
> License: GPL
> 
> Description: The findutils package contains programs which 
> will help you locate files on your system.  The find utility 
> searches through a hierarchy of directories looking for 
> files which match a certain set of criteria (such as a 
> filename pattern).  The xargs utility builds and executes 
> command lines from standard input arguments (usually lists 
> of file names generated by the find command).

I don't think he wants to find the files ... I think he wants to know
how to pass in a passwd for signature.

Can't you just do this in the script:

rpm --resign   <
EOF





signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] xferlog not rotating.

2011-05-21 Thread Lamar Owen
On Friday, May 20, 2011 10:43:10 AM Ray Van Dolson wrote:
> On Fri, May 20, 2011 at 10:44:49AM -0400, Steven Crothers wrote:
> > It's a bit funny that logrotate is difficult to fix for you...
> > considering you have "System Engineer Sr. Professional" in your
> > signature...
> 
> This gave me a chuckle. :)  Ah, the advantage of being a consultant or
> working at a tiny company where you can assign your own titles!

The company in question is not small.

As logrotate under linux is somewhat niche, it is not surprising that an 
otherwise very experienced person may not be familiar with it.  That and the 
fact the the logrotate script to rotate the vsftpd.log is 

Wait a cotton-picking minute.  Why is vsftpd writing to /var/log/xferlog in the 
first place, and not /var/log/vsftpd.log?

I have one machine on CentOS 4.9, and it exhibits a similar symptom.  In 
/etc/vsftpd/vsftpd.conf, the following lines appear:
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#

But I see the logging in /var/log/xferlog, and in fact on this system (which is 
taking 35-40 ftp transfers per minute from weather station software for five 
weather stations, along with a seismometer and some other instruments) there is 
no /var/log/vsftpd.log file.

So there is an error in the configuration of the vsftpd package on CentOS 4.9 
(and I presume on upstream EL4.9) that sends the log to the wrong file, and 
doesn't set up to rotate xferlog.

Now, one of my C5.6 boxen is set up with /etc/vsftpd/vsftpd.conf:
# The name of log file when xferlog_enable=YES and xferlog_std_format=YES
# WARNING - changing this filename affects /etc/logrotate.d/vsftpd.log
#xferlog_file=/var/log/xferlog
#
which matches observed behavior.

But why didn't the packager change the name of the logrotate script?  
Furthermore, the packager even went as far as leaving the lines for vsftpd.log 
in place, and adding the xferlog stanza.  Perhaps the packager should have made 
a symlink  /etc/logrotate.d/xferlog pointing the the correct file as well?

Pati, to check to see if it's rotating the files at all, if you do an 
ls -l /var/log/xferlog*
do you see something like:
# ls -l /var/log/xferlog*
-rw--- 1 root root 0 May 15 04:02 /var/log/xferlog
-rw--- 1 root root 0 May  8 04:02 /var/log/xferlog.1
-rw--- 1 root root 0 May  1 04:02 /var/log/xferlog.2
-rw--- 1 root root 0 Apr 24 04:02 /var/log/xferlog.3
-rw--- 1 root root 0 Apr 17 04:02 /var/log/xferlog.4
#
?  (yeah, this machine isn't heavily used for ftp; its the C4.9 box that gets 
loaded.  And this is a good reminder for me to fix my own logrotate scripts on 
that box :-) ).

But to deride a person for not following the arcana of a confusingly named log 
file and with the package in a somewhat confusing state when it comes to the 
logrotate script's naming, among other things well, it's just not 
professional.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread Ljubomir Ljubojevic
Johnny Hughes wrote:
> On 05/20/2011 01:13 PM, Keith Roberts wrote:
>> On Fri, 20 May 2011, Ljubomir Ljubojevic wrote:
>>
>>> To: CentOS mailing list 
>>> From: Ljubomir Ljubojevic 
>>> Subject: [CentOS] Passing password to script for rpmsign of list of .rpm 
>>> files
>>>
>>> I am trying to automatize signing of unsigned .rpm files. My repo has at
>>> least 50 x 3 packages.
>>>
>>> But I would have to type numerous passwords for each file. I can not see
>>> hot to pass pass phrase to script.
>>>
>>> rpmsign --resign {--pass=??}  
>>>
>>> Can someone advise me how to do that?
>>>
>> Hi Ljubomir.
>>
>> Not sure if this would work for signing packages, but I use 
>> this script to start all services listed in a text file:
>>
>> #!/bin/bash
>>
>> # Start all services on machine
>>
>> echo
>> echo 
>> ""
>> echo "Running script: $0"
>> echo 
>> ""
>> echo
>>
>> # start all services listed in service-names
>> xargs -a ./service-names -i chkconfig --level 2345 {} on
>>
>> # list the status of services in service-names file
>> echo "All services are now turned on (all those listed in 
>> service-names file)
>> "
>> echo "for run levels 2345"
>> echo
>> xargs -a ./service-names -i chkconfig --list {}
>> echo
>>
>> exit 0
>>
>> You may be able to modify the above script to do what you 
>> need it to. xargs is in the findutils package:
>>
>> Name   : findutils
>> Arch   : i386
>> Epoch  : 1
>> Version: 4.2.27
>> Release: 6.el5
>> Size   : 662 k
>> Repo   : installed
>> Summary: The GNU versions of find utilities (find and xargs).
>> URL: http://www.gnu.org/software/findutils/
>> License: GPL
>>
>> Description: The findutils package contains programs which 
>> will help you locate files on your system.  The find utility 
>> searches through a hierarchy of directories looking for 
>> files which match a certain set of criteria (such as a 
>> filename pattern).  The xargs utility builds and executes 
>> command lines from standard input arguments (usually lists 
>> of file names generated by the find command).
> 
> I don't think he wants to find the files ... I think he wants to know
> how to pass in a passwd for signature.
> 
> Can't you just do this in the script:
> 
> rpm --resign   < 
> EOF
> 
Script is already done:
http://lists.centos.org/pipermail/centos/2011-May/111937.html

I made a mistake and broke the thread, so guys replied there.

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


Re: [CentOS] xferlog not rotating.

2011-05-21 Thread Jussi Hirvi
On 21.5.2011 19.02, Lamar Owen wrote:
> Now, one of my C5.6 boxen is set up with /etc/vsftpd/vsftpd.conf:
> # The name of log file when xferlog_enable=YES and xferlog_std_format=YES
> # WARNING - changing this filename affects /etc/logrotate.d/vsftpd.log
> #xferlog_file=/var/log/xferlog
> #
> which matches observed behavior.
>

The important parameter in vsftpd.conf, if I read you right, is this:
# Switches between logging into vsftpd_log_file and xferlog_file files.
# NO writes to vsftpd_log_file, YES to xferlog_file
xferlog_std_format=YES

That is where you choose the log file. What do you have for 
xferlog_std_format?

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


[CentOS] xferlog not rotating.

2011-05-21 Thread R P Herrold
On Sat, 21 May 2011, Lamar Owen wrote:

> Wait a cotton-picking minute.  Why is vsftpd writing to 
> /var/log/xferlog in the first place, and not 
> /var/log/vsftpd.log?

early in the thread, it was clear from a reply's content that 
a locally installed 'ftpd' and not the CentOS vsftpd was 
being used

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


Re: [CentOS] xferlog not rotating.

2011-05-21 Thread Jussi Hirvi
On 21.5.2011 20.43, R P Herrold wrote:
> early in the thread, it was clear from a reply's content that
> a locally installed 'ftpd' and not the CentOS vsftpd was
> being used

I think you are inadvertently confusing the issue. ftpd is mentioned in 
this file (see below), but still vsftpd is used:

[root@mx2 logrotate.d]# cat vsftpd.log
/var/log/vsftpd.log {
 # ftpd doesn't handle SIGHUP properly
 nocompress
 missingok
}

/var/log/xferlog {
 # ftpd doesn't handle SIGHUP properly
 nocompress
 missingok
}

As for me, vsftpd is logging to xferlog, and it is rotated normally 
(CentOS 5.6) with the following settings in vsftpd.conf:

# The target log file can be vsftpd_log_file or xferlog_file.
# This depends on setting xferlog_std_format parameter
xferlog_enable=YES
# Switches between logging into vsftpd_log_file and xferlog_file files.
# NO writes to vsftpd_log_file, YES to xferlog_file
xferlog_std_format=YES

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


Re: [CentOS] xferlog not rotating.

2011-05-21 Thread Lamar Owen
On Saturday, May 21, 2011 01:43:10 PM R P Herrold wrote:
> On Sat, 21 May 2011, Lamar Owen wrote:
> > Wait a cotton-picking minute.  Why is vsftpd writing to 
> > /var/log/xferlog in the first place, and not 
> > /var/log/vsftpd.log?
> 
> early in the thread, it was clear from a reply's content that 
> a locally installed 'ftpd' and not the CentOS vsftpd was 
> being used

Looking... don't see that.  Perhaps I'm just missing it.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SSD for Centos SWAP /tmp & /var/ partition

2011-05-21 Thread yonatan pingle
Hi Keith
not sure about OCZ reliability for production , but i can confirm
Intel x-25 drives work great with centos ( about 11 month's now ).
I use two drives as /var in md mirror , using it for SQL and logs -
it's an amazing boost vs ordinary drives.


if you use the SSD for swap, don't put anything important on them, I
have managed to destroy a drive which was used for heavy swap
operations.
(insane experiment with KVM virtual machines got to that situation ).
the machines used the drive as RAM. ( that was an intel drive! ).

I did experience a bad OCZ drive in the past, that's the reason i gone
for the intel disks instead for production.
the OCZ one died from normal usage on a laptop as a single drive.

the intels might be slower then other SSD drives, but i find them to
be very reliable in contrast for normal (sane) usage.




On Sat, May 21, 2011 at 9:56 AM, Keith Roberts  wrote:
> On Sat, 21 May 2011, Eero Volotinen wrote:
>
>> To: CentOS mailing list 
>> From: Eero Volotinen 
>> Subject: Re: [CentOS] SSD for Centos SWAP /tmp & /var/ partition
>>
>> 2011/5/20 Keith Roberts :
>>> Has anyone actually used a SSD in a Centos setup?
>>
>> Yes.
>>
>>
>>> I'm wondering if it would be a good idea to use a new SSD
>>> for moving all the disk i/o to, that Linux likes to do so
>>> often. Plus putting SWAP onto a decent SSD should speed
>>> things up somewhat.
>>
>> Just buy fastest ocz drive than you can find from stores.
>>
>
> Regards,
>
> Keith
>


-- 
Best Regards,
Yonatan Pingle
RHCT | RHCSA | CCNA1
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SSD for Centos SWAP /tmp & /var/ partition

2011-05-21 Thread Steven Crothers
On Fri, May 20, 2011 at 10:21 PM, Eero Volotinen  wrote:
>
> Just buy fastest ocz drive than you can find from stores.
>
> --
> Eero

Simply buying OCZ because its cheap is wrong. OCZ drives use MLC
flash, I'm sure you know the difference between single level cells and
multiple level cells since you are making a product recommendation.
However in case you don't, your statement is incorrect. Using an OCZ
drive as swap is probably the worst thing you can do to it, when you
add in the fact you're also running some caches from var on it with
ext3... Well the results will not be pleasant in 1-2 years to say the
least.

It's really neat when an OCZ drive fails, it doesn't tick. You just
lose all your data. Here today, gone tomorrow.

-- 
Steven Crothers
steven.croth...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SSD for Centos SWAP /tmp & /var/ partition

2011-05-21 Thread Steven Crothers
On Sat, May 21, 2011 at 6:29 PM, yonatan pingle
 wrote:
> if you use the SSD for swap, don't put anything important on them, I
> have managed to destroy a drive which was used for heavy swap
> operations.
> (insane experiment with KVM virtual machines got to that situation ).
> the machines used the drive as RAM. ( that was an intel drive! ).

I have to ask, how was your performance before death? I don't have a
sacrificial SSD laying around so I can't exactly test myself. I
imagine the gains had to be pretty high?

Were you running a 3 or 6 gbps sata bus?

-- 
Steven Crothers
steven.croth...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] scsi3 persistent reservations in cluster storage fencing

2011-05-21 Thread Steven Crothers
You might be able to go a simpler route, try building a GFBD between
them and sharing the storage that way. I personally have never tried
it, but that might give you the HA you're looking for while staying
withing the CentOS/Upstream packaging. One added benefit is the
ability to scale vertically and horizontally with a setup like that
with failover and quorum. Heck, toss in a little heartbeat scripting
and you could call it an auto-healing storage cloud.

Good luck!

On Fri, May 20, 2011 at 5:28 PM, John R Pierce  wrote:
> I'm interested in the idea of sharing a bunch of SAS JBOD devices
> between two CentOS servers in an active-standby HA cluster sort of
> arrangement, and found something about using scsi3 persistent
> reservations as a fencing method.    I'm not finding a lot of specifics
> about how this works, or how you configure two initiator systems on a
> SAS chain.   I don't have any suitable hardware for running any tests or
> evaluations yet.
>
> general idea:  2 centos servers each with 8 port external SAS cards (2
> x4), cascaded through a SAS box-o-disks with a whole bunch of SAS dual
> ported drives, to implement high availability large nearline
> storage.       all storage configured as JBOD, using linux md raid or
> lvm mirroring. drives should only be accessible by the currently active
> server, with heartbeat managing the fencing.
>
> here's a hardware block diagram
> http://freescruz.com/shared-sas.jpg
>
>
> This is about the only details I've found on scsi persistant
> reservations and linux HA
> http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Configuration_Example_-_Fence_Devices/SCSI_Configuration.html
>
> One question I have is: how well will this scale with several strings of
> 100 SAS drives on the same HA pair of servers?
>
> Can SAS storage instead be fenced at the SES/expander level rather than
> having to use reservations with each separate drive?
>
> --
> john r pierce                            N 37, W 123
> santa cruz ca                         mid-left coast
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Steven Crothers
steven.croth...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SSD for Centos SWAP /tmp & /var/ partition

2011-05-21 Thread Eero Volotinen
> It's really neat when an OCZ drive fails, it doesn't tick. You just
> lose all your data. Here today, gone tomorrow.

Just swap drive and restore from backup, no problem ?

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


Re: [CentOS] SSD for Centos SWAP /tmp & /var/ partition

2011-05-21 Thread Steven Crothers
That's expensive, don't know about you but I don't factor in drives to
be dead within 3-4 months of installation for my machines. Running
swap on an MLC SSD will most definitely kill it in 3-4 months. You
expect to get at least 18-36 months out of a drive before it either
dies or requires an upgrade.

500GB Sata disks = $150 for good ones, that's $150 every 30 months (2
1/2 years).

A CHEAP OCZ MLC drive is $100 for 40GB, burn one of those every 4
months and you have to buy 8 in the same 2 1/2 years.

That's a $650 operating increase, or an additional $21/mo for a rented
server before profit mark up. Why not just use what Linux was designed
to use? A regular spinning disk, if you want performance get into Raid
10 with SAS drives. You'll get a significant speed increase at a lower
monthly operating cost due to the longevity of the drives, and you can
avoid all that pesky restore from backup situation 4 times a year.

Lets face it, a var partition goes and you're gonna have a hard time
starting up some services on boot, depending on your setup SSH wont
start. So now you're entering the realm of remote hands and eyes fees,
and at minimum that's going to be $50/hr with a hefty commit (if
you're in a quality datacenter of course).

On Sat, May 21, 2011 at 9:22 PM, Eero Volotinen  wrote:
>> It's really neat when an OCZ drive fails, it doesn't tick. You just
>> lose all your data. Here today, gone tomorrow.
>
> Just swap drive and restore from backup, no problem ?
>
> --
> Eero
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Steven Crothers
steven.croth...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos