[CentOS] Per process memory monitoring tool
Hi all, I am looking for a tool which let me monitor memory consumption per process on CentOS 5/6. The tool should be able to save its history so I could see what amount of memory was consumed yesterday/week ago/etc by each process. Can you recommend anything like that ? Best regards P. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] LVM recovery after pvcreate
To give additional data - currently I have the following: # pvs File descriptor 7 (pipe:[76957]) leaked on pvs invocation. Parent PID 15357: bash PVVG Fmt Attr PSize PFree /dev/sddlmab2 vg01 lvm2 a-- 14.47g 480.00m /dev/sddlmac vgapps lvm2 a-- 50.00g 50.00g But vgapps has been created "manually" after reinstallation (pvcreate + vgcreate) Is that correct approach if I pvremove it and then pvcreate previous volume using /etc/lvm/backup files ? Regards P. Od: przemol...@poczta.fm Do: centos@centos.org; Wysłane: 16:22 Poniedziałek 2013-12-16 Temat: [CentOS] LVM recovery after pvcreate > > Hi all, > > I had centos 5.9 installed with one of its volumes (non-root) on LVM: > ... > /dev/vgapps/lvapps /opt/apps ext3defaults1 2 > ... > Then installed centos 6.4 on this servers but without exporting this volume > (I wanted to reuse it). > After that instead importing it I did: > # pvcreate /dev/sddlmac > # vgcreate vgapps /dev/sddlmac > > And then realised that I should have import it instead of pvcreate/vgcreate. > Can I restore previous state and data from this volume ? > I have files from /etc/lvm/backup (taken before reinstallation) with its old > definition. > > Regards > P. > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] LVM recovery after pvcreate
Hi all, I had centos 5.9 installed with one of its volumes (non-root) on LVM: ... /dev/vgapps/lvapps /opt/apps ext3defaults1 2 ... Then installed centos 6.4 on this servers but without exporting this volume (I wanted to reuse it). After that instead importing it I did: # pvcreate /dev/sddlmac # vgcreate vgapps /dev/sddlmac And then realised that I should have import it instead of pvcreate/vgcreate. Can I restore previous state and data from this volume ? I have files from /etc/lvm/backup (taken before reinstallation) with its old definition. Regards P. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] 'yum update' rollback or .. ?
Hello, we have several physical servers (CentOS 5.*) with rather critical applications where (because of stability) we don't do regularly 'yum update'. In virtualized environemnts (under Vmware) we do a snapshot, then 'yum update', reboot and if something is wrong we rollback the snapshot. On physical servers we cannot do that. I have read about rollback option of rpm but not sure if this is reliable solution. What is your best practise regarding "rollbacking" 'yum update' on physical servers ? Regards Przemyslaw Bak (przemol) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Network accounting
Hello, we have been using squid cache under CentOS 6. There is basic accounting for each host/client but we need to account for each subnet. Can you recommend any software which easily let us do subnets network accounting ? E.g.: 192.168.1.x X Gb 192.168.2.x Y Gb 192.168.3.x Z Gb ... Regards Przemek ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Chroot in CentOS 5.* ?
Hello, can I use chroot users in their home directories under centos 5.* using standard packages ? How about chrooted sftp in centos 5.* ? If I cannot - do I have to use centos 6.* ? Regards Przemek Dom pod miastem lub mieszkanie w centrum znajdziesz wlasnie tu! http://linkint.pl/f2a58 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] really large file systems with centos
On Thu, Jul 14, 2011 at 04:53:11PM +0300, Pasi Kärkkäinen wrote: > On Wed, Jul 13, 2011 at 11:32:14PM -0700, John R Pierce wrote: > > I've been asked for ideas on building a rather large archival storage > > system for inhouse use, on the order of 100-400TB. Probably using CentOS > > 6.The existing system this would replace is using Solaris 10 and > > ZFS, but I want to explore using Linux instead. > > > > We have our own tomcat based archiving software that would run on this > > storage server, along with NFS client and server. Its a write once, > > read almost never kind of application, storing compressed batches of > > archive files for a year or two. 400TB written over 2 years translates > > to about 200TB/year or about 7MB/second average write speed. The very > > rare and occasional read accesses are done by batches where a client > > makes a webservice call to get a specific set of files, then they are > > pushed as a batch to staging storage where the user can then browse > > them, this can take minutes without any problems. > > > > My general idea is a 2U server with 1-4 SAS cards connected to strings > > of about 48 SATA disks (4 x 12 or 3 x 16), all configured as JBOD, so > > there would potentially be 48 or 96 or 192 drives on this one server. > > I'm thinking they should be laid as as 4 or 8 or 16 seperate RAID6 sets > > of 10 disks each, then use LVM to put those into a larger volume. > > About 10% of the disks would be reserved as global hot spares. > > > > So, my questions... > > > > D) anything important I've neglected? > > > > Remember Solaris ZFS does checksumming for all data, so with weekly/monthly > ZFS scrubbing it can detect silent data/disk corruption automatically and fix > it. With a lot of data, that might get pretty important.. +1 What is the reason to avoid ZFS ? IMHO for such systems ZFS is the best. Regards Przemyslaw Bak (przemol) -- http://przemol.blogspot.com/ Znajdz samochod idealny dla siebie! Szukaj >> http://linkint.pl/f29e2 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Centos under (vmware vs KVM)
On Thu, May 05, 2011 at 01:58:04PM +0200, carlopmart wrote: > On 05/05/2011 01:52 PM, przemol...@poczta.fm wrote: > > >>> > >>> What vmware version do you use: server, esxi?? What type of applications > >>> do you run under these vms?? > >>> > >> > >> How mature is your organization? > >> How big will this get? > > > > Why ? > > I thought about technical comparison of both approaches. > > Then having it you can see if this particular approach is suitable for you. > > > > Regards > > Przemyslaw Bak (przemol) > > > > Which type of comporasion do you need?? Well, it seems that Best Practise would be better name for what I am looking for :-) > - How many vms supports each one?? I am looking for information like below: - when you use KVM using more KVM VMs then X is not advisable since ... > - How many nodes can install inside a cluster?? > - How many ram can I assign to a vm?? As many as appliaction need. > - Hard and soft limits on both platforms??? > - What type of storage is supported on both platforms??? In general when you have many OS-es (CentOS) you face following problems: - how to keep up with package updates ? - how about security - is it easier to manage many CentOS-es or just one with many KVMs ? - how to keep up with application maintenance (mysql, postgresql, apache, dns, etc) ? Which approach would be better/easier ? Regards Przemyslaw Bak (przemol) -- Mamy je -rozwiazania z j.polskiego! http://linkint.pl/f29a8 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Centos under (vmware vs KVM)
On Wed, May 04, 2011 at 06:04:44AM -0400, Jim Wildman wrote: > On Wed, 4 May 2011, carlopmart wrote: > > > On 05/04/2011 10:58 AM, przemol...@poczta.fm wrote: > >> Hello, > >> > >> we are using several centos servers under Vmware. We are having more > >> and more requests for server space for each business application (let > >> assume > >> that these business requests are for different type of services: > >> databases, web apps, application servers etc. > >> > >> I wonder which solution is better: > >> 1. new CentOS under vmware (having several CentOS servers under Vmware) > >> or > >> 2. new CentOS under KVM under existing CentOS (having a few CentOS servers > >> with several KVMs in each) > >> Each approach has some advantages and disadvantages. > >> Can you share your thoughts about it ? > >> > > > > What vmware version do you use: server, esxi?? What type of applications > > do you run under these vms?? > > > > How mature is your organization? > How big will this get? Why ? I thought about technical comparison of both approaches. Then having it you can see if this particular approach is suitable for you. Regards Przemyslaw Bak (przemol) Najwieksza baza ogloszen motoryzacyjnych! Sprawdz >> http://linkint.pl/f29ac ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Finding wich files a writen to
On Wed, May 04, 2011 at 12:17:15PM -0400, Nicolas Ross wrote: > Hi ! > > I have a server (Centos 5) that is using a pair of SAS drives to store the > data. (Mail server) They are on an adaptec raid controler with a battery > backup and write back cache active. > > >From time to time, I have sever peak io to those data disks (> 400 to 500 > iops, > 70 to 100 megs/sec). > > With iostat, I find that it's almost a write i/o problem. How can I find to > which files the OS writes ? On OSX boxes, there is a utility called fs_usage > that can reports any disk activity for a particular process or all > processes. Is there any utility like this on Centos ? > > iotop can points me to wich process, but that doesn't points me to what > files are the culprits... Systemtap can [*] be very useful for this. [*] I use DTrace under Solaris. This is one of the best OS feature any sysadmin can have. Systemtap is similar to DTrace (at least it tries to be ...). Look at http://uselessuseofcat.com/?p=281 Regards Przemyslaw Bak (przemol) - Wez udzial w konkursie i WYGRAJ! Sprawdz >> http://linkint.pl/f299e ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Centos under (vmware vs KVM)
Hello, we are using several centos servers under Vmware. We are having more and more requests for server space for each business application (let assume that these business requests are for different type of services: databases, web apps, application servers etc. I wonder which solution is better: 1. new CentOS under vmware (having several CentOS servers under Vmware) or 2. new CentOS under KVM under existing CentOS (having a few CentOS servers with several KVMs in each) Each approach has some advantages and disadvantages. Can you share your thoughts about it ? Regards Przemyslaw Bak (przemol) - Wez udzial w konkursie i WYGRAJ! Sprawdz >> http://linkint.pl/f299e ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] cents 5.6 ..... futur
On Fri, Apr 15, 2011 at 07:53:34PM -0700, John R Pierce wrote: > On 04/15/11 7:40 PM, Michel Donais wrote: > >>> Will it be the same from 5.6 to 6.0 or a full install will be better. > >> Full installs are always recommended between major versions. > > > > Thank's all for the advise; but is there any easy way to install a newer > > version while keeping all configuration changes that have been made on a > > previous one as for 'sendmail', 'sshd.conf','firewalls', etc... > > have all your configuration under a change management system, [...] > Any recommendations ? Regards Przemek Jak zdobyc 2766 zl dofinansowania na obsĹuge ksiegowa firmy? http://linkint.pl/f2969 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Centos + python + sqlalchemy + mysql
I am trying to use the following set (all from standard repositories): centos (5.5) + python 2.6 + sqlalchemy + mysql. However while running my script I get: Traceback (most recent call last): File "./oraping2.py", line 43, in main() File "./oraping2.py", line 23, in main db = create_engine('mysql:///u1oraping@localhost:3306/oraping',echo=False,pool_recycle=1800) File "/usr/lib/python2.6/site-packages/sqlalchemy/engine/__init__.py", line 244, in create_engine return strategy.create(*args, **kwargs) File "/usr/lib/python2.6/site-packages/sqlalchemy/engine/strategies.py", line 60, in create dbapi = dialect_cls.dbapi(**dbapi_args) File "/usr/lib/python2.6/site-packages/sqlalchemy/dialects/mysql/mysqldb.py", line 101, in dbapi return __import__('MySQLdb') File "/usr/lib64/python2.4/site-packages/MySQLdb/__init__.py", line 19, in import _mysql ImportError: /usr/lib64/python2.4/site-packages/_mysql.so: undefined symbol: Py_InitModule4 Did anybody faced this error ? Does anybody use the above set of software on Centos ? Regards Przemek - Sprawdz pogode. Kliknij >>> http://linkint.pl/f2903 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] faster fsck ?
Hi, we have CentOS ftp server (vsftpd) which has a lot of users who are writing and reading a lot of small files from/into its own accounts (and other servers - using samba client - are reading these files and putting them into outside database). Since this server is under heavy load its availability is important. >From time to time we "crash" this server (don't ask why ...) but then fsck is >running for over 20-30 minuts. The question is: is there any other _stable_ filesystem (xfs ?, jfs ?) which we can use instead of ext3 which is (quite) immune to crashes and whose fsck is "faster" (by design) then in ext3 ? Regards Przemek -- Chcesz wiÄcej zarabiaÄ? ZmieĹ pracÄ na lepszÄ ! http://linkint.pl/f2822 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Web based ping and port checker ?
Hello, does anybody know any simple software which allow checking host and its port availability using _web_ forms ? Something like: write ip address: write port number: [press button] Regards Przemek - Gielda samochodow nowych i uzywanych. http://linkint.pl/f2820 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] TCP flow latency graphs
Hello, we have one application which gets some data from our database but to print just one result it connects many times to the database over WAN. Of course there are some performance related problems with this type of work. I'd like to analyze (not necessary online) its tcp flow especially its latency (using port redirect on switch). Do you know any software (similar to tcpdump or so) which will let me graph/paint latency between each connection and each tcp flow ? Regards Przemek - Volskwagen, Audi, BMW, bezpoĹrednio z Niemiec! http://linkint.pl/f27f7 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Trigger after yum update
Hello, we have installed non-repository based software on our centos servers (e.g. vmware tools). Each time we do 'yum update' we have to run several scripts to check if these software works after update. Sometimes we forget ... It it possible to configure any sort of triggers which will run automatically after 'yum update' ? I'd like to avoid writing shell wrappers for yum and looking for yum-way solution ;-) Regards Przemyslaw Bak (przemol) -- Wyprzedaz do -70%!!! Wejdz na Endo.pl http://linkint.pl/f2791 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Benchmark Disk IO
On Thu, May 06, 2010 at 12:56:55AM -0700, John R Pierce wrote: > przemol...@poczta.fm wrote: > > The above numbers are true if we have random (!) IO pattern. > > In case of sequential (!) IO even SATA disks can deliver much, much higher > > numbers. > > > > > sequential IO is remarkably rare in a typical server environment Yes, of course: Oracle's redo logs which are key performance factor for all transactions (inserts/updates) have sequential IO pattern. And Oracle is not a typical server environment > anyways, the IOPS numbers on sequential operations aren't much higher, > they are just transferring more data per operation. I didn't say that they _are_ much higher. I said that even SATA disks can deliver hight IOPS on condition of sequential IO. Regards Przemyslaw Bak (przemol) -- http://przemol.blogspot.com/ -- Audi kilka tysiÄcy zĹotych taniej? Przebieraj wĹrĂłd tysiÄcy ogĹoszeĹ! Sprawdz >>> http://linkint.pl/f26b3 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Benchmark Disk IO
On Wed, May 05, 2010 at 09:47:19AM -0700, nate wrote: > Matt Keating wrote: > > What is the best way to benchmark disk IO? > > > > I'm looking to move one of my servers, which is rather IO intense. But > > not without first benchmarking the current and new disk array, To make > > sure this isn't a full waste of time. > > You can do a pretty easy calculation based on the #/type of drives > to determine the approx number of raw IOPS that are available, since > it's I/O intensive your probably best off with RAID 1+0, which further > simplifies the calculation, parity based raid can make it really > complicated. > > 7200 RPM disk = ~90 IOPS > 1 RPM disk = ~150-180 IOPS > 15000 RPM disk = ~230-250 IOPS > ... The above numbers are true if we have random (!) IO pattern. In case of sequential (!) IO even SATA disks can deliver much, much higher numbers. Regards Przemyslaw Bak (przemol) -- http://przemol.blogspot.com/ -- Szukasz pracy? Zobacz ciekawe oferty w Twoim miescie Sprawdz >>> http://linkint.pl/f26b2 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] recommend benchmarking SW
On Tue, Nov 03, 2009 at 09:22:57AM -0400, Alan McKay wrote: > Hey folks, > > We've got some new hardware and are trying to figure out what best to > do with it. Either run CentOS right on the bare metal, or > virtualize, or several combination options. Mainly looking at : > > - CentOS on bare metal > - CentOS on ESXi 4.0 with local disk > - CentOS on ESXi with 1 VM running Openfiler to serve disk to other VMs > > And want to benchmark these 3 scenarios > > So far all we have is a dd-based disk IO benchmark. > > What else can you all recommend. > > BTW, we also ideally want to try each of the above with a Postgres DB > as well (and once without) If you want to test IO performance I recommend vdbench: http://przemol.blogspot.com/2008/06/vdbench-disk-io-workload-generator.html Regards Przemyslaw Bak (przemol) -- http://przemol.blogspot.com/ -- Strrraszny konkurs z Scooby-Doo! Wez udzial >> http://link.interia.pl/f2412 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Antwort: Re: How to clone CentOS server ?
On Wed, Aug 26, 2009 at 01:46:26PM +0200, frank.brodb...@klingel.de wrote: > Hi > > Kai Schaetzl schrieb am 26.08.2009 13:31:22: > > Ivan Varbanov wrote on Wed, 26 Aug 2009 14:10:27 +0300: > > > > > It will not work if the drives are in raid > > > > Don't know if that is really true ... Anyway: > > Install a minimal system and then rsync everything over. > > I always prefer dump(8) and restore(8) via nc(1). All those > programs are available from a CentOS boot cd. But be aware > that this makes a full clone with all the possible crap and > leftovers which might be hanging around on your system. > > So I tend to do an appropriate install of the new machine, > and selectively copy configuration files and the data I > know I want and install the packages I need. Yes, it's a bit > more work than just cloning, but also a good opportunity to > get rid of old ballast. Frank, I would prefer installing new server but sometimes (i.e. when you take over some servers) you don't have enough time to carefully select what should and what shouldn't be copied. Regards Przemyslaw Bak (przemol) -- http://przemol.blogspot.com/ -- Szukasz pracy? Sprawdź nasze oferty! http://link.interia.pl/f22b8 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] How to clone CentOS server ?
Hello, I'd like to clone existing CentOS server. Can anybody recommend any working solution to achieve that ? Regards Przemyslaw Bak (przemol) -- http://przemol.blogspot.com/ -- Wygraj nawigacje GPS! 14 sztuk czeka. Sprawdz >> http://link.interia.pl/f22f3 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] 64-bit CentOS - your experience
On Thu, Jun 25, 2009 at 06:56:01PM +0200, przemol...@poczta.fm wrote: > Hello, > > one of our developers is developing his Web applications (PHP-based+MySql) on > 64-bit Fedora. He would like to use the same, 64-bit environment on CentOS. I > am not against 64-bits (we use it for many, many years using Solaris) but > what concerns me is the stability of 64-bit Linux. Can you share your > experience regarding stability of 32-bit and 64-bit CentOS ? Does anybody use > 64-bit CentOS in production (web applications) environment ? Thank you all for your answers. It seems that stability of 64-bit CentOS is not an issue. However, to continune this discussion, could you please explain why did you switch to 64-bit environment ? If you have databases and want to use buffer cache bigger then 4GB it is clear for me. In other words 64-bit for databases is perfect solution (unless your requirements for database cache are really small). But how about other environments like web servers, fileservers, application servers ? Why did you switch do 64-bit ? What did you gain (from technical point of view) ? Regards Przemyslaw Bak (przemol) -- http://przemol.blogspot.com/ -- Przekaz dalej wiadomosc: Zawsze warto oszczedzac. Teraz 5,5%! Sprawdz > http://link.interia.pl/f221c ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] 64-bit CentOS - your experience
Hello, one of our developers is developing his Web applications (PHP-based+MySql) on 64-bit Fedora. He would like to use the same, 64-bit environment on CentOS. I am not against 64-bits (we use it for many, many years using Solaris) but what concerns me is the stability of 64-bit Linux. Can you share your experience regarding stability of 32-bit and 64-bit CentOS ? Does anybody use 64-bit CentOS in production (web applications) environment ? Regards przemol -- Dobra czy zla wiadomosc? Zawsze warto oszczedzac. Teraz 5,5%. Sprawd� > http://link.interia.pl/f221b ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Missing php* packages
Hello, I am trying to migrate one of our fedora-based servers to CentOS. Our PHP developers doesn't allow us to switch because there are no crucial (for them) php packages: php-smarty php-adodb php-accelerator It is not acceptable for us to download sources and compile them and repeat the process each time there is a security bug. Can you recommend any repository which will deliver all the above packages (and many others) ? Regards przemol -- Nowa akcja Pepsi - nagrody za kody spod nakretek. Zarejestruj sie! http://link.interia.pl/f21cc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Auto-installing security updates?
On Tue, May 19, 2009 at 04:11:35PM +0100, Anne Wilson wrote: > I've been asked to think about setting up an installation for a recently- > widowed man. His needs are small - mail, Internet, on-line banking, > basically > - but his wife dealt with all of it on her laptop and he feels very insecure. > > It seems to me that CentOS would be perfect for him except for the need to > keep it securely patched. I'm wondering if it's possible to auto-install > security updates - for that matter, with so small a set of applications > perhaps auto-installing every update would be good enough. > > Maybe this could be done with a script run under cron.daily, so that anacron > picks it up? > > I'd be glad of any advice. Use debian stable (currently 'lenny'). The philosophy behind stable releases of debian is release updates for packages only if you have security bugs. That way when you run 'apt-get update && apt-get upgrade' you download and install only those already _installed_ packages which got security bugs. Regards Przemyslaw Bak (przemol) -- http://przemol.blogspot.com/ -- Audi kilka tysiecy zlotych taniej? Przebieraj wsrod tysiecy ogloszen! Sprawdz: http://link.interia.pl/f216f ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos