Re: [CentOS] fs for > 16 TiB partition
On Wed, May 06, 2009 at 11:27:27AM +0200, Bent Terp wrote: > On Wed, May 6, 2009 at 10:48 AM, Adrian Sevcenco > wrote: > > Hi, > > What would you recommend as an FS for an partition greater than 16 TiB? > > This is for an production server (that is, no ext4 recommendations > > please :) ) > > What experiences did you had with your preferred FS ? (good and not so > > good points) > > We've got a 110 TB xfs system in production based on a logical volume > striped over 9 boxes of SATA disk, works like a charm with great > throughput as we stripe over 3 controllers :-) > Are you running x86 32bit or x86_64 ? iirc there has been problems with XFS on 32bit kernel.. stack size related or so? So 64bit has been the recommended way to go.. -- Pasi ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] fs for > 16 TiB partition
On Thu, May 7, 2009 at 9:05 AM, Pasi Kärkkäinen wrote: > On Wed, May 06, 2009 at 11:27:27AM +0200, Bent Terp wrote: >> We've got a 110 TB xfs system in production based on a logical volume >> striped over 9 boxes of SATA disk, works like a charm with great >> throughput as we stripe over 3 controllers :-) >> > > Are you running x86 32bit or x86_64 ? > > iirc there has been problems with XFS on 32bit kernel.. stack size related > or so? So 64bit has been the recommended way to go.. We run 64bit on most machines cuz they've got more than 4 gig ram. (And any besserwissers about to sound of about PAE kernels can kindly do so in another thread cuz I'm NOT listening!) As an aside, I hadn't heard of issues with 32bit xfs but in retrospect it can see the logic in it: a lot of company-supplied code has had 64bit issues cuz it came from a 32bit environment, but SGI was never "most companies" :-) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] fs for > 16 TiB partition
thus Pasi Kärkkäinen spake: > On Wed, May 06, 2009 at 11:27:27AM +0200, Bent Terp wrote: >> On Wed, May 6, 2009 at 10:48 AM, Adrian Sevcenco >> wrote: >>> Hi, >>> What would you recommend as an FS for an partition greater than 16 TiB? >>> This is for an production server (that is, no ext4 recommendations >>> please :) ) >>> What experiences did you had with your preferred FS ? (good and not so >>> good points) >> We've got a 110 TB xfs system in production based on a logical volume >> striped over 9 boxes of SATA disk, works like a charm with great >> throughput as we stripe over 3 controllers :-) >> > > Are you running x86 32bit or x86_64 ? > > iirc there has been problems with XFS on 32bit kernel.. stack size related > or so? So 64bit has been the recommended way to go.. > > -- Pasi Obviously -- as SGI introduced one of the first, if not *the* first 64bit machine (R4000) _ages_ (1991!) ago... ;) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Adding an 'official' CentOS image to the Amazon EC2 (Electronic Compute Cloud)
Jason Aubrey wrote: > I don't know if it's xen under the hood or not (not much experience > with this sort of thing). However, 'xen' is mentioned in the > following link which I'm following so perhaps it is xen related: > http://docs.amazonwebservices.com/AWSEC2/2009-03-01/DeveloperGuide/index.html?ami-via-loopback.html > > fromw hat I can tell, they are just creating a temp yum repo conf file to specify what repos to install from and calling it |yum-xen.conf for some reason. they then use that .conf file with yum like...| ||*|yum -c /||/ --installroot=/||/ -y groupinstall Base and install the 'base' group to the loopback mount, which populates the file system image. |* ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] fs for > 16 TiB partition
On Thursday 07 May 2009, Bent Terp wrote: > On Thu, May 7, 2009 at 9:05 AM, Pasi Kärkkäinen wrote: > > On Wed, May 06, 2009 at 11:27:27AM +0200, Bent Terp wrote: > >> We've got a 110 TB xfs system in production based on a logical volume > >> striped over 9 boxes of SATA disk, works like a charm with great > >> throughput as we stripe over 3 controllers :-) > > > > Are you running x86 32bit or x86_64 ? > > > > iirc there has been problems with XFS on 32bit kernel.. stack size > > related or so? So 64bit has been the recommended way to go.. > > We run 64bit on most machines cuz they've got more than 4 gig ram. > (And any besserwissers about to sound of about PAE kernels can kindly > do so in another thread cuz I'm NOT listening!) > > As an aside, I hadn't heard of issues with 32bit xfs but in retrospect > it can see the logic in it: a lot of company-supplied code has had > 64bit issues cuz it came from a 32bit environment, but SGI was never > "most companies" :-) This is not really a 32 vs. 64 bit issue. The problem is that redhat (unlike most everyone else) builds their 32-bit kernel with 4K kernel stack size and XFS almost needs 8K kernel stacks. /Peter signature.asc Description: This is a digitally signed message part. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Ghostscript in 5.3
[SOLVED!] On Wed, May 6, 2009 at 11:05 PM, Mogens Kjaer wrote: > MHR wrote: >> Ever since I updated to 5.3, I have been unable to convert any ps >> files to pdfs using the ps2pdf command. I usually get errors like >> this: >> >> [...@mhrichter forms]$ ps2pdf doe81008 >> ERROR: /undefinedfilename in (doe81008) > > Does the file doe81008 exist? > > If you have a doe81008.ps file that needs to > be converted to doe81008.pdf, write: > > $ ps2pdf doe81008.ps doe81008.pdf > Oh, crap! I have so many scripts and aliases that I routinely use to simplify commands like this, I forgot that I _don't_ have (or need) one for this! ps2pdf doe81008.ps works just fine. Mea maxima culpa! Oy, vey! Many thanks, Mogens. mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] [CentOS-devel] jigdo images
Shad L. Lords wrote: > Ralph Angenendt wrote: > >> I have been looking what Fedora is (or was) doing with Jigdo. It seems > >> to solve some problems and create new ones[1]. > > > > Let me look into that. > > From the os directory something like this should produce jigdo > files/templates for all associated iso files. > Hm. H. Hmmm. Any Jigdo-Howto-For-Dummies out there? What am I supposed to do with those files then? > After the files/templates are created they can be moved to a > different/better location as well as updating the Servers section if > desired. > > Hope this helps someone, Let's see :) Cheers, Ralph pgpYEJXEh1SNz.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Adding an 'official' CentOS image to the Amazon EC2 (Electronic Compute Cloud)
Jason Aubrey wrote: > In case people aren't aware, when you create an AWS (Amazon Web > Services) account there's a management console that shows a list of > available images. Of this list, some are published by Amazon, others > are uploaded anonymously, or you can upload your own. Given the > dubious nature of an anonymous image and a lack of an Amazon image for > CentOS, I'm left in the third camp - creating/bundling/uploading my > own. Luckily I have the required 64 bit hardware to generate a 64 bit > image! Selfishly I'd love to just start up an existing image > published by centos.org but one's not available. Do you have an idea of what is exspected/needs to be done to create such an image? Ralph pgpm5Fz3fqyUA.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Adding an 'official' CentOS image to the Amazon EC2 (Electronic Compute Cloud)
Jason Aubrey wrote: > I'm starting to use the EC2 cloud (as are others) and noticed that all > the available CentOS images seem to be of dubious origin. > I think it would further the reputation and popularity of CentOS if it > were represented in an official way. I started talking to Amazon about this a long time back ( early Feb 2008 - refer to posts on the centos-virt list ) and was quite interested in making things easier for people who might want to use CentOS images on EC2 - and their response at the time was semi-warm. After a few emails to and fro, I even agreed ( against usual principles ) to sign a NDA that they sent over so that we could move the situation forward. However, their continued attitude to the issue amounted to : go away, we dont care about you so stop wasting our time. Another way to interpret it is : give us loads of money and we'll talk to you, till then, stop wasting our time. So, unless they are happy to come back and start talking to us again I highly recommend everyone not bother using EC2. - KB ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Adding an 'official' CentOS image to the Amazon EC2 (Electronic Compute Cloud)
On 07/05/2009, Karanbir Singh wrote: > Jason Aubrey wrote: > > I'm starting to use the EC2 cloud (as are others) and noticed that all > > the available CentOS images seem to be of dubious origin. > > I think it would further the reputation and popularity of CentOS if it > > were represented in an official way. > > I started talking to Amazon about this a long time back ( early Feb 2008 > - refer to posts on the centos-virt list ) and was quite interested in > making things easier for people who might want to use CentOS images on > EC2 - and their response at the time was semi-warm. After a few emails > to and fro, I even agreed ( against usual principles ) to sign a NDA > that they sent over so that we could move the situation forward. > However, their continued attitude to the issue amounted to : go away, we > dont care about you so stop wasting our time. Another way to interpret > it is : give us loads of money and we'll talk to you, till then, stop > wasting our time. > > So, unless they are happy to come back and start talking to us again I > highly recommend everyone not bother using EC2. > yeah, we played around with it for a while and still use it for the occasional demo. It is a bit of a chore creating a machine image form one of your servers but once it is done then that is that. -unless your image is using one of the public ip addresses that has made it onto a blacklist. We find the s3 file storage and cloudfront content delivery service much more useful. mike ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] [CentOS-devel] jigdo images
Ralph Angenendt wrote: > Shad L. Lords wrote: >> Ralph Angenendt wrote: I have been looking what Fedora is (or was) doing with Jigdo. It seems to solve some problems and create new ones[1]. >>> Let me look into that. >> From the os directory something like this should produce jigdo >> files/templates for all associated iso files. >> > > Hm. H. Hmmm. Any Jigdo-Howto-For-Dummies out there? What am I > supposed to do with those files then? > >> After the files/templates are created they can be moved to a >> different/better location as well as updating the Servers section if >> desired. >> >> Hope this helps someone, > > Let's see :) > > Cheers, > > Ralph Hi I found this (almost) howto: http://syiron.wordpress.com/2008/01/13/creating-jigsaw-download-jigdo-files-for-downloading-iso%E2%80%99s/ The interesting think is that he is creating CentOS image. Regards mg. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] [CentOS-devel] jigdo images
Marcelo M. Garcia wrote: > I found this (almost) howto: > http://syiron.wordpress.com/2008/01/13/creating-jigsaw-download-jigdo-files-for-downloading-iso%E2%80%99s/ > > The interesting think is that he is creating CentOS image. Thanks. Although Jeroen advises against loop mounted ISOs, because of TRANS.TBL being in there. But that brings me a bit further. Ralph pgpevIM5ts1Ql.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
I returned from Bogotá and have a Folder with 272 photos that total 419.9 MB. I would like to email them to several people who were there for the concerts I attended. I have Picasa, gThumb (not really an Editor but I believe it can reduce the quality of photos) and The GIMP installed. Is there a way I can have a photo editor reduce all of them to VGA size, without doing that 272 times? The people who will receive them are using M$ Windoze. Also, they are in a folder and it doesn't seem possible to attach a folder in gmail. A good way to zip them up in one file that can be unzipped on Windoze boxes? TIA! P.S. I met people there who participate in the forum for my favorite singer. I suspect it would be equally interesting, to meet many of the people who participate in this Mailing List. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
On Thu, May 7, 2009 at 8:57 AM, Lanny Marcus wrote: > I returned from Bogotá and have a Folder with 272 photos that total > 419.9 MB. I would like to email them to several people who were there > for the concerts I attended. I have Picasa, gThumb (not really an > Editor but I believe it can reduce the quality of photos) and The GIMP > installed. Is there a way I can have a photo editor reduce all of them > to VGA size, without doing that 272 times? The people who will receive > them are using M$ Windoze. Also, they are in a folder and it doesn't > seem possible to attach a folder in gmail. A good way to zip them up > in one file that can be unzipped on Windoze boxes? TIA! ImageMagick's "convert" utility can do that.. Don't have the syntax handy, but it's fairly trivial. Just work on a copy first :D > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
Lanny Marcus wrote: > A good way to zip them up > in one file that can be unzipped on Windoze boxes? TIA! Maybe something like: convert -resize 640x480 *.jpg concert.pdf Might require a lot of RAM... Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark Phone: +45 33 27 53 25, Mobile: +45 22 12 53 25 Email: m...@crc.dk Homepage: http://www.crc.dk ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
On Thu, May 7, 2009 at 8:57 AM, Lanny Marcus wrote: > I returned from Bogotá and have a Folder with 272 photos that total > 419.9 MB. I would like to email them to several people who were there > for the concerts I attended. I have Picasa, gThumb (not really an > Editor but I believe it can reduce the quality of photos) and The GIMP > installed. Is there a way I can have a photo editor reduce all of them > to VGA size, without doing that 272 times? The people who will receive > them are using M$ Windoze. Also, they are in a folder and it doesn't > seem possible to attach a folder in gmail. A good way to zip them up > in one file that can be unzipped on Windoze boxes? TIA! You can do this with ImageMagick's tools. mkdir shrunk for in in *.jpg ; do convert $i -resize 640x480 shrunk/$i ; done change 640x480 to whatever size you want. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
On Thu, May 7, 2009 at 9:05 AM, Jim Perrin wrote: > On Thu, May 7, 2009 at 8:57 AM, Lanny Marcus wrote: >> I returned from Bogotá and have a Folder with 272 photos that total >> 419.9 MB. I would like to email them to several people who were there >> for the concerts I attended. I have Picasa, gThumb (not really an >> Editor but I believe it can reduce the quality of photos) and The GIMP >> installed. Is there a way I can have a photo editor reduce all of them >> to VGA size, without doing that 272 times? The people who will receive >> them are using M$ Windoze. Also, they are in a folder and it doesn't >> seem possible to attach a folder in gmail. A good way to zip them up >> in one file that can be unzipped on Windoze boxes? TIA! > > > You can do this with ImageMagick's tools. > > mkdir shrunk > for in in *.jpg ; do convert $i -resize 640x480 shrunk/$i ; done > change 640x480 to whatever size you want. er, for I in.. not for in in... need coffee. too early -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
Lanny Marcus wrote: >Is there a way I can have a photo editor reduce all of them > to VGA size, without doing that 272 times? Use convert from the ImageMagick package (convert -resize). > The people who will receive them are using M$ Windoze. Also, they > are in a folder and it doesn't seem possible to attach a folder in > gmail. A good way to zip them up in one file that can be unzipped on > Windoze boxes? yum install zip (if it isn't installed already). Ralph pgpThuIKMCN9L.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
Lanny Marcus wrote: > I returned from Bogotá and have a Folder with 272 photos that total > 419.9 MB. I would like to email them to several people who were there > for the concerts I attended. I have Picasa, gThumb (not really an > Editor but I believe it can reduce the quality of photos) and The GIMP > installed. Is there a way I can have a photo editor reduce all of them > to VGA size, without doing that 272 times? The people who will receive > them are using M$ Windoze. Also, they are in a folder and it doesn't > seem possible to attach a folder in gmail. A good way to zip them up > in one file that can be unzipped on Windoze boxes? TIA! > > P.S. > I met people there who participate in the forum for my favorite > singer. I suspect it would be equally interesting, to meet many of the > people who participate in this Mailing List. Why not upload to one of the online photo sharing sites like flikr or google's picasa web albums, send a link and let the recipients worry about whether or how to download copies? -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
On May 7, 2009, at 8:57 AM, Lanny Marcus wrote: I returned from Bogotá and have a Folder with 272 photos that total 419.9 MB. I would like to email them to several people who were there for the concerts I attended. I have Picasa, gThumb (not really an Editor but I believe it can reduce the quality of photos) and The GIMP installed. Is there a way I can have a photo editor reduce all of them to VGA size, without doing that 272 times? The people who will receive them are using M$ Windoze. Also, they are in a folder and it doesn't seem possible to attach a folder in gmail. A good way to zip them up in one file that can be unzipped on Windoze boxes? TIA! http://www.imagemagick.org/Usage/ the ImageMagick tool you probably want to use is called 'convert'. as for compressing the folder of images, `yum install zip; man zip`. -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 smime.p7s Description: S/MIME cryptographic signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Upgrade mail server to new machine
> if local users copy /home/* /etc/passwd /etc/shadow after first making sure > there are no dupes on new system > > as for mail - what format is tha mail box in? > > maybe as simple as copying /var/spool/something > > personally i like to use rsync for this as it keeps perms well if you ask it > to - your tool of choice is your call though I have no users on this box as of yet. It is a clean install of CentOS 5.3. The server only does email, as we have another server for domain control. I had thought I could just copy /home/* /etc/shadow and /etc/passwd and /var/spool/mail. Does it matter which file I copy first? Should I do passwd and shadow first? then do home, and leave /var/spool/mail to last? If I do it this way, will it keep all my users passwords as well? Thanks. -- -=/>Thom ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] system-config-printer and mapping to a ppd file
I have a lot of printers that will use the same ppd. For example, I have about 50 hp 4250 printers to configure. How can I figure out which driver that system-config-printer uses so I can use lpadmin to add the rest? _ "He's no failure. He's not dead yet." William Lloyd George ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] [CentOS-devel] jigdo images
Marcelo M. Garcia wrote: > I found this (almost) howto: > http://syiron.wordpress.com/2008/01/13/creating-jigsaw-download-jigdo-files-for-downloading-iso%E2%80%99s/ > > The interesting think is that he is creating CentOS image. And he hasn't understood the jigdo-file command :( I'll never understand why people don't test the stuff they publish. --uri can only be used in conjunction with --label - which he doesn't do. Ralph pgplGJPI5FN78.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Upgrade mail server to new machine
Thom Paine wrote: >> if local users copy /home/* /etc/passwd /etc/shadow after first making sure >> there are no dupes on new system >> >> as for mail - what format is tha mail box in? >> >> maybe as simple as copying /var/spool/something >> >> personally i like to use rsync for this as it keeps perms well if you ask it >> to - your tool of choice is your call though >> > > I have no users on this box as of yet. It is a clean install of CentOS > 5.3. The server only does email, as we have another server for domain > control. I had thought I could just copy /home/* /etc/shadow and > /etc/passwd and /var/spool/mail. Does it matter which file I copy > first? Should I do passwd and shadow first? then do home, and leave > /var/spool/mail to last? > > If I do it this way, will it keep all my users passwords as well? > > Thanks. > Try this link, worked for me :-) http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] problem with updates
Using Centos 5.2 and the "Software Updater/Package Updater/pup", I winnowed the problem updates down to six packages: 1: Updated file packages available 2: Updated gcc43 packages available 3: Updated gcc packages available 4: Updated pam packages available 5: Updated redhat-logos packages available 6: Updated redhat-menus packages available It'd really help if there was a button on pup to deselect all updates (and let me click just a few updates back on). The problem is typically... Updated file packages available Component: pirut Summary: TBe8ae967a sqlitesack.py:94:_read_db_obj:TypeError: unsubscriptable object As a result, /usr/share/gdm/themes/TreeFlower/background.png is missing, and so I get an error message about it and the "default" login screen. Of course, I don't know what else is missing (for example, those gcc packages...). Regards, Chip Campbell -- someday I'll have a good signature, I'm sure of it... ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Adding an 'official' CentOS image to the Amazon EC2 (Electronic Compute Cloud)
> So, unless they are happy to come back and start talking to us again I > highly recommend everyone not bother using EC2. > > - KB I had the exact same experience when trying to get a sales rep to talk to me about hosting an application for my company. We need to know that someone will be there to pick up the phone when there are problems, and I couldn't get anyone to call me back to answer my questions. I guess Amazon doesn't care too much about the customer service end of AWS. We'd feel a lot more confident about putting our application onto their cloud if someone would at least return my phone calls and emails. So not too surprising that they gave you the brush-off, given that they won't even call back a customer with dollars in hand, ready to spend. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Adding an 'official' CentOS image to the Amazon EC2(Electronic Compute Cloud)
> -Original Message- > From: centos-boun...@centos.org > [mailto:centos-boun...@centos.org] On Behalf Of Sean Carolan > Sent: Thursday, May 07, 2009 11:06 > To: CentOS mailing list > Subject: Re: [CentOS] Adding an 'official' CentOS image to > the Amazon EC2(Electronic Compute Cloud) > > > So, unless they are happy to come back and start talking to > us again I > > highly recommend everyone not bother using EC2. > > > > - KB > > I had the exact same experience when trying to get a sales > rep to talk to me about hosting an application for my > company. We need to know that someone will be there to pick > up the phone when there are problems, and I couldn't get > anyone to call me back to answer my questions. I guess > Amazon doesn't care too much about the customer service end > of AWS. We'd feel a lot more confident about putting our > application onto their cloud if someone would at least return > my phone calls and emails. So not too surprising that they > gave you the brush-off, given that they won't even call back > a customer with dollars in hand, ready to spend. Quoting from their website: "Inexpensive - Amazon EC2 passes on to you the financial benefits of Amazon's scale. You pay a very low rate for the compute capacity you actually consume." Remember, these are surplus resources that would otherwise be cost of doing business. > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100- - +1 (443) 269-1555 x333Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Adding an 'official' CentOS image to the Amazon EC2(Electronic Compute Cloud)
Jason Pyeron wrote: > "Inexpensive - Amazon EC2 passes on to you the financial benefits of > Amazon's > scale. You pay a very low rate for the compute capacity you actually > consume." Which is kinda funny since it's not true in many situations. My company did a cost analysis of using the Amazon cloud vs doing it ourselves, and the cloud cost at Amazon was more than double what we would pay if we did it ourselves(TCO over a 3 year period). And that's just the cost of the services themselves. We do need hundreds of megabits of internet bandwidth, and lots of CPU cycles as well as I/O cycles(and disk space), in the micro pay model that Amazon has it adds up fast.. I'm sure it's more cost effective if the stuff your doing sits idle most of the time. We also priced out a premium enterprise provider that used VMware enterprise and they came in at about 4x the cost of doing it ourselves, CPU cycles in VMware enterprise are of course a lot more expensive than non-vmware or even VMware foundation. The premium enterprise VMWare vendor(Terremark) came within about $15k of the cost of using Rackspace managed hosting(bare metal) to do the same over a 3 year period which I thought was very interesting, shows how expensive managed hosting can be as well(we weren't looking for much software on hands support but rather hardware support, leasing the equipment through them etc). So not surprisingly we're doing it ourselves, which makes me happy as an infrastructure guy. Building new sites and setting up new things is something that keeps me happy. I interviewed some guy for an operations position last week who was proud of the fact they had migrated to the cloud, and it was working great. Then I asked him what kind of traffic do they get and how many servers? They got something like 10,000 requests a DAY, and they had 2 or 3 servers. Big whoop! nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kghostview and xdg-open. Need to fix problem across whole system
On Wed, May 6, 2009 at 11:49 AM, Rex Dieter wrote: > Paul Johnson wrote: > >> In Centos 5.3, a bad problem has surfaced in user land. We want to use >> either Evince or Adobe acroread as the pdf view, but the update of >> kdegraphics has somehow screwed up these systems so that the odious, >> horrible, awful pdf viewer kghostview is used. > > It's most likely Acrobat Reader that f#$#$#d up here. It mucks with system > copies of mimetypes, etc... > > My guess is that kdegraphics update simply replaced the muck'd system copies > with known good ones. > > Now, opening pdf's from where is causing problems? Say, opening in > nautilus, a webbrowser, what? > > -- Rex > Same result in opening pdf from nautilus or LyX (via pdflatex). kghostview refuses to open the pdf file, saying its type is application/octet-stream. evince or acroread can open same without trouble. I have not bothered with this because I'm not using kde anymore, but the kdegraphics update with Centos-5.3 caused this by installing the program and re-configuring (explanation next). I've tracked down the problem, though, so I can stop kghostview from being invoked. When RPMS install, they often have a post script call to execute "update-desktop-database" which scans the desktop files under /usr/share/applications and it builds /usr/share/applications/mimeinfo.cache. To my surprise/astonishment, the update-desktop-database function is completely undocumented, not even a man page or a mention in the README file from the xdg group that provides it. To my even greater surprise, there is apparently no way to predict which programs will be at the front of the list for each mime type. The mimeinfo.cache is used by programs like nautilus to know what programs are available. update-desktop-database, for reasons I don't know, places ghostview first among pdf opener programs. More and more programs are relying on the "xdg-open" script to select viewers for files. xdg-open ends up scanning for the desktop framework in use, in my case Gnome, and then it passes off the pdf file to the program gnome-open, which is supposed to check for "defaults.list" in the user's config and in the system at /usr/share/applications. The mimeinfo.cache file is not supposed to be dominant setting here because the preferred viewer is supposed to be specified in defaults.list. We have AdobeReader.desktop specified there. However, when the config in defaults.list is broken, then xdg-open (hence gnome-open) don't know what to do, and they consult mimeinfo.cache and they take the first program listed. Our config was broken because Adobe was installed incorrectly. The RPM that installed AdobeReader did not copy AdobeReader.desktop into /usr/share/applications. As a result, when the user tries to configure "xdg-open" (via xdg-mime) or use "gnome-open", both try to use AdobeReader.desktop, and fail, and then they fall back to use the things in /usr/share/applications/mimeinfo.cache. One can just copy AdobeReader.desktop from /opt/Adobe/... into /usr/share/applications to fix this. To be fancier, one can run " To protect my systems from ever using kghostview, I ended up deleting the Mime line in all of the relevant desktop files in /usr/share/applicaitons/kde. After that, "update-desktop-database" can be called and kghostview is never listed as a pdf opener. -- Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Adding an 'official' CentOS image to the Amazon EC2(Electronic Compute Cloud)
I don't have much experience with AWS yet, so I can't speak to any support issues. We're looking at leveraging it for automated builds initially (occasional up time) for proprietary and open source projects. For making an image public, it would obviously be great if Amazon would sponsor the image... However, if this isn't the case maybe centos.org could publish an image identifier(s) on their website and then have it labeled 'public' on the AWS console. Each image has a unique identifier used to instantiate it, so as long as centos.org publishes approved ids then that would be a pretty good work around in my opinion. Jason Aubrey ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] stale dm-multipath mappings
Greetings, I've hit this exact 'bug': https://bugzilla.redhat.com/show_bug.cgi?id=491311 I need to remove the mappings manually. I assume this is done via 'multipath -F' followed by a 'multipath -v2' ? Has anyone experienced doing this on a production system? We can do it during hours of low activity, but we would prefer to keep the databases on this host online at the time. The LUNs themselves are completely removed from the host and are not visible on the HBA bus. Regards, Eugene Vilensky evilen...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] stale dm-multipath mappings
Eugene Vilensky wrote: > Greetings, > > I've hit this exact 'bug': > > https://bugzilla.redhat.com/show_bug.cgi?id=491311 > > I need to remove the mappings manually. I assume this is done via 'multipath > -F' followed by a 'multipath -v2' ? Has anyone experienced doing this on a > production system? We can do it during hours of low activity, but we would > prefer to keep the databases on this host online at the time. The LUNs > themselves are completely removed from the host and are not visible on the > HBA bus. Just wondering what sort of impact this has to your system? If the paths are gone they won't be used, so what does it matter? I have a couple batch processes that run nightly: - One of them takes a consistent snapshot of a standby mysql database and exports the read-write snapshot to a QA host nightly - The other takes another consistent snapshot of a standby mysql database and exports the read-write snapshot to a backup server In both cases the process involves removing the previous snapshots from the QA and backup servers respectively, before re-creating new snapshots and presenting them back to the original servers on the same LUN IDs. Part of the process I do delete *all* device mappings for the snapshotted luns on the destination servers with these commands: for i in `/sbin/dmsetup ls | grep p1 | awk '{print $1}'`; do dmsetup remove $i; done for i in `/sbin/dmsetup ls | awk '{print $1}'`; do dmsetup remove $i; done I just restart the multipathing service after I present new LUNs to the system. Both systems do this daily and have been for about two months now and it works great. In these two cases currently I am using VMWare raw device mapping on the remote systems so while I'm using multipath, there is only 1 path(visible to the VM, the MPIO is handled by the host). Prior to that I used software iSCSI on CentOS 5.2 (no 5.3 yet), and I did the same thing, I did the same thing because I found restarting software iSCSI on CentOS 5.2 to be unreliable(more than one kernel panic during testing). The reason I use MPIO with only 1 path is so that I can maintain a consistent configuration across systems, don't need to worry about who has one path or who has 2 or who has 4, treat them all the same, since multipathing is automatic. On CentOS 4.x with software iSCSI I didn't remove the paths I just let them go stale. I restarted software iSCSI and multipath as part of the snapshot process(software iSCSI is more solid as far as restarting goes under 4.x, had two panics in 6 months with multiple systems restarting every day). Thankfully I use LVM because the device names changed all the time, at some point I was up to like /dev/sddg. But if your removing dead paths, or even restarting multipath on a system to detect new ones I have not had this have any noticeable impact to the system production or not. I think device mapper will even prevent you from removing a device that is still in use. [r...@dc1-backup01:/var/log-ng]# dmsetup ls 350002ac005ce0714 (253, 0) 350002ac005d00714 (253, 2) 350002ac005d00714p1 (253, 10) 350002ac005cf0714 (253, 1) 350002ac005d10714 (253, 4) 350002ac005ce0714p1 (253, 7) san--p--mysql002b--db-san--p--mysql002b--db (253, 17) 350002ac005d10714p1 (253, 9) 350002ac005d20714 (253, 3) san--p--mysql002b--log-san--p--mysql002b--log (253, 13) san--p--pd1mysql001b--log-san--p--pd1mysql001b--log (253, 14) san--p--mysql001b--log-san--p--mysql001b--log (253, 16) 350002ac005d30714 (253, 5) 350002ac005cf0714p1 (253, 8) 350002ac005d20714p1 (253, 6) san--p--pd1mysql001b--db-san--p--pd1mysql001b--db (253, 12) san--p--mysql001b--db-san--p--mysql001b--db (253, 15) 350002ac005d30714p1 (253, 11) [r...@dc1-backup01:/var/log-ng]# dmsetup remove 350002ac005d20714p1 device-mapper: remove ioctl failed: Device or resource busy Command failed nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
Lanny Marcus wrote: > I returned from Bogotá and have a Folder with 272 photos that total > 419.9 MB. I would like to email them to several people who were there > for the concerts I attended. I have Picasa, gThumb (not really an > Editor but I believe it can reduce the quality of photos) and The GIMP > installed. Is there a way I can have a photo editor reduce all of them > to VGA size, without doing that 272 times? The people who will receive > them are using M$ Windoze. Also, they are in a folder and it doesn't > seem possible to attach a folder in gmail. A good way to zip them up > in one file that can be unzipped on Windoze boxes? TIA! > why not post them on a website like picasaweb.google.com (since you mentioned picasa) and then just email the URL ? picasaweb will autoscale them to a variety of sizes and show them to the user sized to his screen. for instance, my pictures of an astronomy campout I went to last fall... http://picasaweb.google.com/jhn.pierce/CalStar08 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
On Thu, May 07, 2009, John R Pierce wrote: >Lanny Marcus wrote: >> I returned from Bogotá and have a Folder with 272 photos that total >> 419.9 MB. I would like to email them to several people who were there >> for the concerts I attended. I have Picasa, gThumb (not really an >> Editor but I believe it can reduce the quality of photos) and The GIMP >> installed. Is there a way I can have a photo editor reduce all of them >> to VGA size, without doing that 272 times? The people who will receive >> them are using M$ Windoze. Also, they are in a folder and it doesn't >> seem possible to attach a folder in gmail. A good way to zip them up >> in one file that can be unzipped on Windoze boxes? TIA! >> > >why not post them on a website like picasaweb.google.com (since you >mentioned picasa) and then just email the URL ? The ``convert'' program from ImageMagick will do pretty much anything you want including scaling, conversion from one image type to another, combining multiple images into PDF or fax/tif files, etc. It is far better to e-mail links to files on a web or ftp site than to send the images directly. Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax:(206) 232-9186 Skype: jwccsllc (206) 855-5792 Unix is simple. It just takes a genius to understand its simplicity -- Dennis Ritchie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
Quoting Bill Campbell : > On Thu, May 07, 2009, John R Pierce wrote: >> Lanny Marcus wrote: >>> I returned from Bogotá and have a Folder with 272 photos that total >>> 419.9 MB. I would like to email them to several people who were there >>> for the concerts I attended. I have Picasa, gThumb (not really an >>> Editor but I believe it can reduce the quality of photos) and The GIMP >>> installed. Is there a way I can have a photo editor reduce all of them >>> to VGA size, without doing that 272 times? The people who will receive >>> them are using M$ Windoze. Also, they are in a folder and it doesn't >>> seem possible to attach a folder in gmail. A good way to zip them up >>> in one file that can be unzipped on Windoze boxes? TIA! look around for mass-image-resize. does just what you want d >>> >> >> why not post them on a website like picasaweb.google.com (since you >> mentioned picasa) and then just email the URL ? > > The ``convert'' program from ImageMagick will do pretty much > anything you want including scaling, conversion from one image > type to another, combining multiple images into PDF or fax/tif > files, etc. > > It is far better to e-mail links to files on a web or ftp site > than to send the images directly. > > Bill > -- > INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC > URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way > Voice: (206) 236-1676 Mercer Island, WA 98040-0820 > Fax:(206) 232-9186 Skype: jwccsllc (206) 855-5792 > > Unix is simple. It just takes a genius to understand its simplicity -- > Dennis Ritchie > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > -- In the world?s anti-Bush zones it is fashionable to regard him as an imperialist redneck of limited intellectual capacities. -- George Ross in Le Monde Diplomatique ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
At Thu, 07 May 2009 11:16:24 -0700 CentOS mailing list wrote: > > Lanny Marcus wrote: > > I returned from Bogotá and have a Folder with 272 photos that total > > 419.9 MB. I would like to email them to several people who were there > > for the concerts I attended. I have Picasa, gThumb (not really an > > Editor but I believe it can reduce the quality of photos) and The GIMP > > installed. Is there a way I can have a photo editor reduce all of them > > to VGA size, without doing that 272 times? The people who will receive > > them are using M$ Windoze. Also, they are in a folder and it doesn't > > seem possible to attach a folder in gmail. A good way to zip them up > > in one file that can be unzipped on Windoze boxes? TIA! > > > > why not post them on a website like picasaweb.google.com (since you > mentioned picasa) and then just email the URL ? > > picasaweb will autoscale them to a variety of sizes and show them to the > user sized to his screen. for instance, my pictures of an astronomy > campout I went to last fall... > http://picasaweb.google.com/jhn.pierce/CalStar08 Or just install ImageMagicK and use convert and zip in a script: #!/bin/sh mkdir VGA for im in *.jpeg; do convert $in -geometry 640x480 VGA/$in done zip BogotaVGA.zip -r VGA > > > > > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > > -- Robert Heller -- 978-544-6933 Deepwoods Software-- Download the Model Railroad System http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows hel...@deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
on 5-7-2009 6:08 AM Les Mikesell spake the following: > Lanny Marcus wrote: >> I returned from Bogot� and have a Folder with 272 photos that total >> 419.9 MB. I would like to email them to several people who were there >> for the concerts I attended. I have Picasa, gThumb (not really an >> Editor but I believe it can reduce the quality of photos) and The GIMP >> installed. Is there a way I can have a photo editor reduce all of them >> to VGA size, without doing that 272 times? The people who will receive >> them are using M$ Windoze. Also, they are in a folder and it doesn't >> seem possible to attach a folder in gmail. A good way to zip them up >> in one file that can be unzipped on Windoze boxes? TIA! >> >> P.S. >> I met people there who participate in the forum for my favorite >> singer. I suspect it would be equally interesting, to meet many of the >> people who participate in this Mailing List. > > Why not upload to one of the online photo sharing sites like flikr or > google's picasa web albums, send a link and let the recipients worry > about whether or how to download copies? > Ding Ding Ding!!! That is the best answer so far. That way people can get full size images of pics they might want to print, and just view the rest. signature.asc Description: OpenPGP digital signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Photo Editor to reduce 272 photos to VGA at once
Robert Heller wrote: >> why not post them on a website like picasaweb.google.com (since you >> mentioned picasa) and then just email the URL ? >> ... > Or just install ImageMagicK and use convert and zip in a script: > > #!/bin/sh > mkdir VGA > for im in *.jpeg; do > convert $in -geometry 640x480 VGA/$in > done > zip BogotaVGA.zip -r VGA > my point was, don't email the files, email a link to them on a photo gallery website... that way the user clicks on the link and can view the gallery online, and download the pictures if he wants if you mail a zip file, the user has to save the zip file, unzip it somewhere, then find and run a local picture viewer against the generated folder. I suggested picasa because the original poster mentioned it, Picasa will post a gallery to your (free up to 1GB) account on the picasaweb server with a single click of the album "sync' button... ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] timezone "Europe/London" ntpdate
Hi CentOS 5.3 with latest updates. I have a problem with the time zone on dedicated server. I had to setup the timezone using system-config-date to "Europe/London" and "System clock uses UTC" == checked # date; date -u; hwclock --show; hwclock --show --utc; zdump /etc/localtime Thu May 7 21:29:47 GMT 2009 Thu May 7 21:29:47 UTC 2009 Thu 07 May 2009 09:29:48 PM GMT -0.411568 seconds Thu 07 May 2009 09:29:49 PM GMT -0.997482 seconds /etc/localtime Thu May 7 21:29:48 2009 GMT # cat /etc/sysconfig/clock ZONE="Europe/London" UTC=true ARC=false # cat /etc/adjtime -3525.635197 1241730131 0.00 1241730131 UTC # strings /etc/localtime TZif2 TZif2 GMT0 # ntpdate -q 0.centos.pool.ntp.org 7 May 21:14:51 ntpdate[12689]: step time server 195.42.115.77 offset -3638.766689 sec Why -3638 sec ? thanks. -- with best regards ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] stale dm-multipath mappings
> > Just wondering what sort of impact this has to your system? If the > paths are gone they won't be used, so what does it matter? > Right now I have backgrounded a 'vgscan -v' operation that froze, which has never happened before. I assume it is trying to scan the /dev/mpath23 device that is supported by these four downed paths, and I am worried what would happen if I removed the maps manually while in this state. I am surprised there is not an error-return of some kind between vgscan and dm-multipath if all paths for a particular mpath device are down... ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] stale dm-multipath mappings
Eugene Vilensky wrote: >> >> Just wondering what sort of impact this has to your system? If the >> paths are gone they won't be used, so what does it matter? >> > > > > Right now I have backgrounded a 'vgscan -v' operation that froze, which has > never happened before. I assume it is trying to scan the /dev/mpath23 device > that is supported by these four downed paths, and I am worried what would > happen if I removed the maps manually while in this state. > > I am surprised there is not an error-return of some kind between vgscan and > dm-multipath if all paths for a particular mpath device are down... Check lsof to see what it's hung on..it's been a while since I've run into that sort of issue.. When I mount volumes I have a special init script that handles it, all of my SAN volumes are LVM, and they have a particular naming scheme so the script can detect them easily, the script is here, perhaps the ideas behind it could be useful for you: http://portal.aphroland.org/~aphro/mount_san.init Sample runs: start- [r...@dc1-mysql002b:~]# /etc/init.d/mount_san start Scanning and activating SAN-based volume groups PV /dev/sdc1is in exported VG san-p-mysql002b-log [1023.99 GB / 983.99 GB free] PV /dev/sdb1is in exported VG san-p-mysql002b-db [2.00 TB / 1.90 TB free] Total: 2 [3.00 TB] / in use: 2 [3.00 TB] / in no VG: 0 [0 ] Volume group "san-p-mysql002b-log" successfully imported Volume group "san-p-mysql002b-db" successfully imported Checking LVM SAN filesystems.. e2fsck 1.39 (29-May-2006) /dev/san-p-mysql002b-log/san-p-mysql002b-log: clean, 84/10240 files, 391173/10485760 blocks e2fsck 1.39 (29-May-2006) /dev/san-p-mysql002b-db/san-p-mysql002b-db: clean, 353/25600 files, 4633225/26214400 blocks Finished checking LVM SAN filesystems.. Scanning and mounting multipathed filesystems.[/san/MrT/mysql/db][/san/MrT/mysql/log]..done! stop: [r...@dc1-mysql002b:~]# /etc/init.d/mount_san stop Scanning and un-mounting multipathed filesystems.[/san/MrT/mysql/db][/san/MrT/mysql/log]..done! Scanning and exporting SAN based volume groups.. Volume group "san-p-mysql002b-log" successfully exported Volume group "san-p-mysql002b-db" successfully exported With CentOS 5.x I had to fix the rc.sysinit to skip the 'noauto' file systems, otherwise the system pukes on boot(wasn't a problem in CentOS 4.x). I originally came up with the script because I needed a way to mount software iSCSI file systems after the network was up and unmount them cleanly before the network went down, RHEL/CentOS 5 introduced better support for this(haven't tried it my system works..), but in 4.x it was an issue, caused I/O hangs on shutdown and prevented file systems from being mounted automatically on boot. Been using this script on many systems for about a year and a half now. I don't recall ever using/needing vgscan myself. The man page for vgimport mentions using it for previously recognized volume groups, but I've used it even for first time volume recognition and it's always worked. nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Local yum mirror and repomd.xml
Hey, So, I'm having a minor issue. Today, I configured one of our CentOS systems to use our local mirror (mirror.clarkson.edu) for its repositories. After doing this, I ran a yum update and received the following warning in the output along with the updates available: Not using downloaded repomd.xml because it is older than what we have: Current : Thu May 7 14:41:57 2009 Downloaded: Tue Apr 28 05:04:32 2009 In order to get rid of this error, I ran "yum clean all" and then "yum update" again. This results in the warning no longer being present but also results in yum telling me there are no packages marked for update. Any thoughts on why this is occuring? I've posted my mirror configuration at the bottom of the page. Thanks, Matt === Mirror Configuration (CentOS-Base.repo) === # CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for CentOS. # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base #mirrorlist= http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os baseurl=http://mirror.clarkson.edu/centos/$releasever/os/$basearch/ gpgcheck=1 protect=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #released updates [updates] name=CentOS-$releasever - Updates #mirrorlist= http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates baseurl=http://mirror.clarkson.edu/centos/$releasever/updates/$basearch/ gpgcheck=1 protect=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons #mirrorlist= http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons baseurl=http://mirror.clarkson.edu/centos/$releasever/addons/$basearch/ gpgcheck=1 protect=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras #mirrorlist= http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras baseurl=http://mirror.clarkson.edu/centos/$releasever/extras/$basearch/ gpgcheck=1 protect=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus #mirrorlist= http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus baseurl=http://mirror.clarkson.edu/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 protect=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib #mirrorlist= http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib baseurl=http://mirror.clarkson.edu/centos/$releasever/contrib/$basearch/ gpgcheck=1 enabled=0 protect=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 -- Mathew S. McCarrell Clarkson University '10 mccar...@gmail.com mccar...@clarkson.edu ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Local yum mirror and repomd.xml
Mathew S. McCarrell wrote: > Any thoughts on why this is occuring? I've posted my mirror configuration > at the bottom of the page. > mirror appears to be out of date.. compare file dates from: http://mirror.clarkson.edu/centos/5/updates/i386/repodata/ to http://mirrors.kernel.org/centos/5/updates/i386/repodata/ nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Local yum mirror and repomd.xml
Wow, I thought I checked that. My mistake. Thanks Nate. Matt -- Mathew S. McCarrell Clarkson University '10 mccar...@gmail.com mccar...@clarkson.edu On Thu, May 7, 2009 at 6:36 PM, nate wrote: > Mathew S. McCarrell wrote: > > > Any thoughts on why this is occuring? I've posted my mirror > configuration > > at the bottom of the page. > > > > mirror appears to be out of date.. > > compare file dates from: > http://mirror.clarkson.edu/centos/5/updates/i386/repodata/ > > to > http://mirrors.kernel.org/centos/5/updates/i386/repodata/ > > nate > > > ___ > 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] OT: Photo Editor to reduce 272 photos to VGA at once
On Thu, May 7, 2009 at 7:57 AM, Lanny Marcus wrote: > I returned from Bogotá and have a Folder with 272 photos that total > 419.9 MB. I would like to email them to several people who were there > for the concerts I attended. I have Picasa, gThumb (not really an > Editor but I believe it can reduce the quality of photos) and The GIMP > installed. Is there a way I can have a photo editor reduce all of them > to VGA size, without doing that 272 times? The people who will receive > them are using M$ Windoze. Also, they are in a folder and it doesn't > seem possible to attach a folder in gmail. A good way to zip them up > in one file that can be unzipped on Windoze boxes? TIA! Thank you, to everyone who responded and for all of the ideas! ImageMagick seems to be one way to go. Posting them to Picasa online, the other way. I agree that emailing them to everyone wastes a lot of bandwidth. I must make them available to the Webmaster of the official web site and one of the chorus singers (a serious amateur photographer) has a blog and he wants them. And now I have people who participate in the forum who want them to. If I can get them posted on Picasa for free and they can download any of them they like, that's the best way probably and the easiest for me. I was standing about one meter from the stage, so I have some very good photos, along with some bad ones. Thanks again! I will check out how to get them uploaded to Google's Picasa, since I have Picasa installed. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Software RAID resync
I have configured 2x 500G sata HDD as Software RAID1 with three partitions md0,md1 and md2 with md2 as 400+ gigs Now it is almost 36 hours the status is cat /proc/mdstat Personalities : [raid1] md0 : active raid1 hdb1[1] hda1[0] 104320 blocks [2/2] [UU] resync=DELAYED md1 : active raid1 hdb2[1] hda2[0] 4096448 blocks [2/2] [UU] resync=DELAYED md2 : active raid1 hdb3[1] hda3[0] 484182912 blocks [2/2] [UU] [==>..] resync = 51.8% (251168768/484182912) finish=1975. 7min speed=1964K/sec unused devices: I have reniced the md2-resync to -10 Q1. Does is take this long? Q2. How to speed it up Regards and Thanks Rajagopal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Software RAID resync
On Thu, May 7, 2009 at 11:17 PM, Rajagopal Swaminathan < raju.rajs...@gmail.com> wrote: > I have configured 2x 500G sata HDD as Software RAID1 with three partitions > md0,md1 and md2 with md2 as 400+ gigs > > Now it is almost 36 hours the status is > > cat /proc/mdstat > Personalities : [raid1] > md0 : active raid1 hdb1[1] hda1[0] > 104320 blocks [2/2] [UU] >resync=DELAYED > > md1 : active raid1 hdb2[1] hda2[0] > 4096448 blocks [2/2] [UU] >resync=DELAYED > > md2 : active raid1 hdb3[1] hda3[0] > 484182912 blocks [2/2] [UU] > [==>..] resync = 51.8% (251168768/484182912) > finish=1975. > 7min speed=1964K/sec > > unused devices: > > I have reniced the md2-resync to -10 > > Q1. Does is take this long? > Q2. How to speed it up > Google: http://www.google.com/search?hl=en&rlz=1B3GGGL_enUS326US326&q=mdadm+resync+speed&btnG=Search -- j ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Software RAID resync
Rajagopal Swaminathan wrote: > I have configured 2x 500G sata HDD as Software RAID1 with three partitions > md0,md1 and md2 with md2 as 400+ gigs > > Now it is almost 36 hours the status is > > cat /proc/mdstat > Personalities : [raid1] > md0 : active raid1 hdb1[1] hda1[0] > 104320 blocks [2/2] [UU] > resync=DELAYED > > md1 : active raid1 hdb2[1] hda2[0] > 4096448 blocks [2/2] [UU] > resync=DELAYED > > md2 : active raid1 hdb3[1] hda3[0] > 484182912 blocks [2/2] [UU] > [==>..] resync = 51.8% (251168768/484182912) > finish=1975. > 7min speed=1964K/sec > > unused devices: > > I have reniced the md2-resync to -10 > > Q1. Does is take this long? > Q2. How to speed it up > depends on your disk controllers.whats `iostat -x 5` say the IO on hdb3 and hda3 is doing? (ignore the first sample, its average since boot, wait for the 2nd and later 5 second samples...). iostat is in the sysstat RPM, sadly, not installed by default. is the md2 filesystem mounted ? it will go faster if there is zero disk activity on the physical drives. 500gb has to be read and written over the SATA channels, which appear to be in IDE mode (hda instead of sda) figure 60-80MB/sec peak sustainable, lets round that to 50MB/sec, so thats 50/50 == 1 seconds if its running at pure wire speed the whole time. if there's -any- disk contention, it will run MUCH slower. if its only running 2MB/sec (as indicated) somethinig is fubar with the disk IO, maybe its in PIO mode, ouch! ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Software RAID resync
This list never ceases to amaze me with very very quick and educating responses John R Pierce writes: > > Rajagopal Swaminathan wrote: > > depends on your disk controllers.whats `iostat -x 5` say the IO on > hdb3 and hda3 is doing? (ignore the first sample, its average since avg-cpu: %user %nice %system %iowait %steal %idle 0.130.00 31.980.000.00 67.89 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util hda 26.40 0.40 4.20 2.20 3660.8020.80 575.25 2.74 386.97 148.44 95.00 hdb 0.0024.80 0.00 6.60 0.00 3988.80 604.36 1.43 217.45 143.24 94.54 md2 0.00 0.00 0.00 2.60 0.0020.80 8.00 0.00 0.00 0.00 0.00 md1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 md0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 dm-0 0.00 0.00 0.00 2.60 0.0020.80 8.00 0.43 163.85 78.08 20.30 I won't claim I understand everyone of the above columns. I am in the process of reading man pages. > > is the md2 filesystem mounted ? Yes. But no users using the system and it is mounted as / (root). So cant unmount it > > 500gb has to be read and written over the SATA channels, which appear to > be in IDE mode (hda instead of sda) figure 60-80MB/sec peak > sustainable, lets round that to 50MB/sec, so thats 50/50 == 1 > seconds if its running at pure wire speed the whole time. if there's > -any- disk contention, it will run MUCH slower. if its only running > 2MB/sec (as indicated) somethinig is fubar with the disk IO, maybe its > in PIO mode, ouch! > So Q1. Where should I look to correct its PIO mode hdparm? BIOS? Q2. If I bring down the system, will the array reconstruction start from beginning or from where it left off before reboot? BTW it is HP ML 110 G5 box with 4 gigs RAM. Thanks Rajagopal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Software RAID resync
Jeremy Rosengren writes: > Google: http://www.google.com/search?hl=en&rlz=1B3GGGL_enUS326US326&q=mdadm+resync+speed&btnG=Search-- j > /proc/sys/dev/raid/speed_limit_min /proc/sys/dev/raid/speed_limit_max [r...@localhost ~]# cat /proc/sys/dev/raid/speed_limit_min 1 [r...@localhost ~]# cat /proc/sys/dev/raid/speed_limit_max 100 Thanks Rajagopal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Software RAID resync
Rajagopal Swaminathan wrote: > This list never ceases to amaze me with very very quick and educating > responses > > > John R Pierce writes: > > >> Rajagopal Swaminathan wrote: >> >> depends on your disk controllers.whats `iostat -x 5` say the IO on >> hdb3 and hda3 is doing? (ignore the first sample, its average since >> > > avg-cpu: %user %nice %system %iowait %steal %idle >0.130.00 31.980.000.00 67.89 > > Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz > avgqu-sz > await svctm %util > hda 26.40 0.40 4.20 2.20 3660.8020.80 575.25 > 2.74 > 386.97 148.44 95.00 > hdb 0.0024.80 0.00 6.60 0.00 3988.80 604.36 > 1.43 > 217.45 143.24 94.54 > ... > > I won't claim I understand everyone of the above columns. > I am in the process of reading man pages. > the import wants there are rsec/s and wsec/s which are read/write sectors/sec, and %util which is %utilization. your disks are 100% busy, and one is reading 3600 sector/sec which is 1.8MB/sec and the other is writing that much. there's no way in h*** a SATA disk should be that slow, my guess is the SATA controller is runnign in IDE PIO mode.you also have 32% CPU utilization, which is real high for just doing this. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Bash Script help...
Hi All, I need to write a script that I will manually start (or a cron job in future) but I need it to do a number of things in order one after another. How do i do that so everything gets dont as the steps depend on each other. Example: cd /system_backups/ tar cvf apache-conf.tar /etc/httpd/conf/* gzip -v9 apache-conf.tar tar cvf apache-data.tar /var/www/* gzip -v9 apache-data.tar then last step... tar cvf -system_backup.tar the gzip files above gzip -v9 -system_backup.tar scp -system_backup.tar.gz u...@10.0.0.1:/. etc...etc My questions: 1. How do I execute each statement and make sure subsequent statements are not executed until the previous is done? 2. How do I error check so if a step fails the script stops? 3. Since I run an SMTP Server on this box can I e-mail myself from bash the nightly results? 4. when I want to run the scp to send over the file to another machine for safety, how can I have it know the password to the machine I am scp'ing to? My mind is going crazy sort of with the things that I could do to protect myself in case of a system failure and making restoring easier. Can anyone provide insight for me? -Jason ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Software RAID resync
A critical question repeated as I can't have this going on over the weekend and have to get the system up before next 18 hours > Q2. If I bring down the system, will the array reconstruction start from > beginning or from where it left off before reboot? Thanks Rajagopal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Bash Script help...
Jason Todd Slack-Moehrle writes: > > Hi All, > > I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another. How do i do that so everything gets dont as the steps depend > on each other. > > Example: > > cd /system_backups/ > > tar cvf apache-conf.tar /etc/httpd/conf/* > gzip -v9 apache-conf.tar > > tar cvf apache-data.tar /var/www/* > gzip -v9 apache-data.tar > > then last step... > tar cvf -system_backup.tar the gzip files above > gzip -v9 -system_backup.tar > > scp -system_backup.tar.gz u...@...:/. > etc...etc > > My questions: > 1. How do I execute each statement and make sure subsequent statements > are not executed until the previous is done? by using && example cd /system_backups/ && \ tar cvf apache-conf.tar /etc/httpd/conf/* && \ gzip -v9 apache-conf.tar > 2. How do I error check so if a step fails the script stops? I am afraid I do not have enough knowledge to help you in the above question > > 3. Since I run an SMTP Server on this box can I e-mail myself from > bash the nightly results? Yes > > 4. when I want to run the scp to send over the file to another machine > for safety, how can I have it know the password to the machine I am > scp'ing to? You cant You will have to ssh-keygen Thanks and Regards Rajagopal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Bash Script help...
On Thu, May 07, 2009 at 10:12:59PM -0700, Jason Todd Slack-Moehrle wrote: > Hi All, > > I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another. How do i do that so everything gets dont as the steps depend > on each other. > > Example: > > cd /system_backups/ > > tar cvf apache-conf.tar /etc/httpd/conf/* > gzip -v9 apache-conf.tar > > tar cvf apache-data.tar /var/www/* > gzip -v9 apache-data.tar > > then last step... > tar cvf -system_backup.tar the gzip files above > gzip -v9 -system_backup.tar > > scp -system_backup.tar.gz u...@10.0.0.1:/. > etc...etc > > My questions: > 1. How do I execute each statement and make sure subsequent statements > are not executed until the previous is done? This will happen on its own unless you intentionally force a command into the background with &. > > 2. How do I error check so if a step fails the script stops? You can use && or || or check the status of $?. For example: tar cvfz apache-conf.tar.gz /etc/httpd/conf/* if [ $? != 0 ]; then echo "Error creating tar file." exit 255 fi $? contains the exit code of the previously executed command. Or something like... tar cvfz apache-conf.tar.gz /etc/httpd/conf/* || \ { echo "Problem creating tar file."; exit 255; } The first method is probably a little more clear. > > 3. Since I run an SMTP Server on this box can I e-mail myself from > bash the nightly results? Sure. If you call it from cron, anything on stdout will be emailed to the user running the job. Alternately you can call the "mail" command. You can also surround several commands and pipe their output to a command: ( echo "Test" echo "Test 2" ) | mail em...@email.com > 4. when I want to run the scp to send over the file to another machine > for safety, how can I have it know the password to the machine I am > scp'ing to? You'll want to set up ssh keys for this. > > My mind is going crazy sort of with the things that I could do to > protect myself in case of a system failure and making restoring easier. > > Can anyone provide insight for me? > > -Jason Ray ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Bash Script help...
On Thu, May 07, 2009 at 10:12:59PM -0700, Jason Todd Slack-Moehrle wrote: > > I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another. How do i do that so everything gets dont as the steps depend > on each other. > > My questions: > 1. How do I execute each statement and make sure subsequent statements > are not executed until the previous is done? Use the '&&' (logical "and") operator to pipeline the commands: cd /foo/bar && tar cvf /path/to/tarball This will only execute the "tar" command if the previous "cd" succeeded. > 2. How do I error check so if a step fails the script stops? Most commands set a return status upon completion or error; this value is returned to the shell in the "$?" variable. You could write the above as something like: cd /foo/bar if [ $? -ne 0 ] then echo "cd failed ($?) - bailing out" exit 1 fi tar cvf /path/to/tarball if [ $? -ne 0 ] then echo "tar failed ($?) - bailing out" exit 2 fi This checks the return status of each command, checks to see if it's not 0 (0 is "success") and if it is not alerts the user and exits with it's own error status. > 3. Since I run an SMTP Server on this box can I e-mail myself from > bash the nightly results? Yep. "echo error message" | mail -s "script failure" u...@dom.ain Will mail the specified user a message containing "error message" with a subject of "script failure". > 4. when I want to run the scp to send over the file to another machine > for safety, how can I have it know the password to the machine I am > scp'ing to? You do this with public key authentication. "man ssh-keygen" for information on how to create a keypair. > My mind is going crazy sort of with the things that I could do to > protect myself in case of a system failure and making restoring easier. We've all been there. > Can anyone provide insight for me? Test everything. On regular schedules. If you have the hardware available simulate a disaster condition and restore your backups to identical hardware to prove (to yourself and to management) that your disaster recovery steps actually do work. John -- "I'm sorry but our engineers do not have phones." As stated by a Network Solutions Customer Service representative when asked to be put through to an engineer. "My other computer is your windows box." Ralf Hildebrandt trying to play sturgeon while it's under attack is apparently not fun. pgp2SLPJv9flP.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Software RAID resync
Rajagopal Swaminathan wrote: > A critical question repeated as I can't have this going on over the weekend > and > have to get the system up before next 18 hours > > > >> Q2. If I bring down the system, will the array reconstruction start from >> beginning or from where it left off before reboot? >> it resumes from where it left off. it keeps track of the checkpoint locations via the metadata it stores in the last track of the partition (I think thats where it is) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Bash Script help...
Jason Todd Slack-Moehrle wrote: > Hi All, > > I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another. How do i do that so everything gets dont as the steps depend > on each other. A few commands can be stuck together in the cron command. Separating them with ';'' makes them execute sequentially regardless of status; separating with '&&' will continue only if the previous command succeeds. For more than a few, put the commands in a script file > > Example: > > cd /system_backups/ > > tar cvf apache-conf.tar /etc/httpd/conf/* > gzip -v9 apache-conf.tar I'd: cd /etc/httpd/conf && tar -czvf /system_backups/apache-conf.tar.gz instead. > tar cvf apache-data.tar /var/www/* > gzip -v9 apache-data.tar > > then last step... > tar cvf -system_backup.tar the gzip files above > gzip -v9 -system_backup.tar > > scp -system_backup.tar.gz u...@10.0.0.1:/. > etc...etc > > My questions: > 1. How do I execute each statement and make sure subsequent statements > are not executed until the previous is done? Commands in a script execute sequentially unless you explicitly use an & to put them in the background. > 2. How do I error check so if a step fails the script stops? Each command will return a status in the $? variable that you can check. The shell philosophy is that there are lots of ways to fail but usually only one way to succeed, so the value 0 represents success, anything else is failure. You can use the 'test' operator (usually written as [, but read the test man page to see what it does), or just: command1 && command2 (runs command2 only if command1 succeeds) command1 || command2 (runs command2 only if command1 fails - you can exit this way) > 3. Since I run an SMTP Server on this box can I e-mail myself from > bash the nightly results? Yes, cron will automatically mail any output to the user that owns the cron job. Just add an alias for this local user (probably root) to make it go where you want. > 4. when I want to run the scp to send over the file to another machine > for safety, how can I have it know the password to the machine I am > scp'ing to? Use ssh keys instead. > My mind is going crazy sort of with the things that I could do to > protect myself in case of a system failure and making restoring easier. > > Can anyone provide insight for me? You'd probably be better off running something like backuppc (http://backuppc.sourceforge.net/) instead of rolling your own. And you might want some kind of version control system like subversion for your content and most important configuration files. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Software RAID resync
John R Pierce wrote: > Rajagopal Swaminathan wrote: >> A critical question repeated as I can't have this going on over the weekend >> and >> have to get the system up before next 18 hours >> >> >> >>> Q2. If I bring down the system, will the array reconstruction start from >>> beginning or from where it left off before reboot? >>> > > > it resumes from where it left off. it keeps track of the checkpoint > locations via the metadata it stores in the last track of the partition > (I think thats where it is) It should only take a couple of hours anyway unless there is a lot of other activity on the partition. Something must be wrong with the controller or drive. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Bash Script help...
Jason Todd Slack-Moehrle wrote: > Hi All, > > I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another. How do i do that so everything gets dont as the steps depend > on each other. > > Example: > > cd /system_backups/ CD = $(date +%Y-%m-%d) if ! tar cvf apache-conf.tar /etc/httpd/conf/* && gzip -v9 apache-conf.tar; then echo "FATAL ERROR 1" exit elif if ! tar cvf apache-data.tar /var/www/* && gzip -v9 apache-data.tar; then echo "FATAL ERROR 2" exit elif if ! tar cvf $CD-system_backup.tar apache-*.tar.gz && gzip -v9 $CD-system_backup.tar; then echo "FATAL ERR 3" exit elif scp $CD-system_backup.tar.gz u...@10.0.0.1:/. if this is run in a cronjob, any output will be mailed to the user who owns the cronjob. this user's email can be aliased via /etc/aliases to another account if needed. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Software RAID resync
Les Mikesell wrote: > It should only take a couple of hours anyway unless there is a lot of > other activity on the partition. Something must be wrong with the > controller or drive. > > The IOSTAT output earlier showing the drives 100% busy at 1.8MB/sec tells me they are running in ISA PIO mode. there's a issue with the disk controller support and how its configured. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Bash Script help...
> I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another. How do i do that so everything gets dont as the steps depend > on each other. > > Example: > > cd /system_backups/ # timestamp in -MM-DD format TIME_STAMP="$(date +%Y-%m-%d)" # ip address of remote host to scp files to REMOTE_IP="10.0.0.X" # comma separated list of users to receive notification alerts $AUDIENCE="us...@example.com,us...@example.com" cd /system_backups > tar cvf apache-conf.tar /etc/httpd/conf/* > gzip -v9 apache-conf.tar tar cvfz apache-conf.tar.gz /etc/httpd/conf if [[ $? -ne 0 ]] then echo "Failed" | /bin/mail -s "Apache configuration directory backup failed" # no more execution since previous step did not succeed exit -1 fi > tar cvf apache-data.tar /var/www/* > gzip -v9 apache-data.tar tar cvfz apache-data.tar.gz /var/www if [[ $? -ne 0 ]] then echo "Failed" | /bin/mail -s "Apache data directory backup failed" exit -1 fi > then last step... > tar cvf -system_backup.tar the gzip files above > gzip -v9 -system_backup.tar tar cvfz ${TIME_STAMP}-system-backup.tar.gz apache-conf.tar.gz apache-data.tar.gz if [[ $? -ne 0 ]] then echo "Failed" | /bin/mail -s "Apache system backup failed" exit -1 fi > > scp -system_backup.tar.gz u...@10.0.0.1:/. scp ${TIME_STAMP}-system-backup.tar.gz u...@10.0.0.1:/ if [[ $? -ne 0 ]] then echo "Failed" | /bin/mail -s "Apache scp transfer failed" exit -1 else echo "Success" | /bin/mail -s "Apache system backup success" $AUDIENCE exit 0 fi > My questions: > 1. How do I execute each statement and make sure subsequent statements > are not executed until the previous is done? if [[ $? -ne 0 ]] statement does that for you > 2. How do I error check so if a step fails the script stops? exit X > 4. when I want to run the scp to send over the file to another machine > for safety, how can I have it know the password to the machine I am > scp'ing to? You need to setup password-less login first Try http://blogs.translucentcode.org/mick/archives/000230.html > Can anyone provide insight for me? This is a very basic script. You can use functions for error checking and make the code smaller etc. > -Jason Hope this helps. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Software RAID resync
John R Pierce writes: > > Les Mikesell wrote: > > It should only take a couple of hours anyway unless there is a lot of > > other activity on the partition. Something must be wrong with the > > controller or drive. > > > > > > The IOSTAT output earlier showing the drives 100% busy at 1.8MB/sec > tells me they are running in ISA PIO mode. there's a issue with the > disk controller support and how its configured. > [SOLVED] Thanks all I powered down the box and changed the SATA mode in BIOS f4rom Auto to Serial ATA. That did the trick cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sdb1[1] sda1[0] 104320 blocks [2/2] [UU] resync=DELAYED md1 : active raid1 sdb2[1] sda2[0] 4096448 blocks [2/2] [UU] resync=DELAYED md2 : active raid1 sdb3[1] sda3[0] 484182912 blocks [2/2] [UU] [=>...] resync = 5.6% (27346752/484182912) finish=68.6min speed=110970K/sec unused devices: === iostat -x 5 outpur (4th or 5th one) avg-cpu: %user %nice %system %iowait %steal %idle 0.000.002.600.000.00 97.40 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util sda1752.89 0.00 259.68 0.00 257584.03 0.00 991.93 2.479.52 3.85 99.86 sda1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sda2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sda3 1752.89 0.00 259.68 0.00 257584.03 0.00 991.93 2.479.52 3.85 99.86 sdb 0.00 1752.69 0.00 259.68 0.00 257609.58 992.02 1.515.80 3.85 99.86 sdb1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sdb2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sdb3 0.00 1752.69 0.00 259.68 0.00 257609.58 992.02 1.515.80 3.85 99.86 md2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 md1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 md0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 === hdparm -tT output hdparm -tT /dev/sda /dev/sda: Timing cached reads: 27444 MB in 1.99 seconds = 13802.85 MB/sec Timing buffered disk reads: 378 MB in 3.01 seconds = 125.67 MB/sec [r...@localhost ~]# hdparm -tT /dev/sdb /dev/sdb: Timing cached reads: 27116 MB in 1.99 seconds = 13636.74 MB/sec Timing buffered disk reads: 398 MB in 3.01 seconds = 132.35 MB/sec [r...@localhost ~]# Thanks again Regards Rajagopal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos