Re: [CentOS] offline root lvm resize
On Sat, Jul 30, 2011 at 1:00 PM, Sean Hart teve...@gmail.com wrote: On Sat, Jul 30, 2011 at 6:40 PM, Sean Hart teve...@gmail.com wrote: On Sat, Jul 30, 2011 at 7:40 AM, Alexander Dalloz ad+li...@uni-x.org wrote: Am 30.07.2011 10:37, schrieb Sean Hart: So here goes... First some back story -Centos 5 with latest updates as of yesterday. kernel is 2.6.18-238.19.1.el5 -setup is raid 1 for /boot and lvm over raid6 for everything else - The / partition (lvm RootVol) had run out of room... (100% full, things where falling appart...) I resized the root volume (from 20GiB to 50GiB). This was done from a fedora 15 livecd, seemed like a better idea than doing it on a live system at the time After the resize the content of all the lvs could be mounted and all data was still there (all this from within fedora). You would better have used the CentOS 5 install media to run into rescue mode and then to chroot into the system, given you felt better to do an offline resizing. Though online resizing (increasing an LV) is trouble free from my experience. Well, if / is completely full the offline route may indeed be better. The problem is when i try to reboot into centos as the root volume cannot be found. boot message goes as follows ... No Volume groups found Volume Group RaidVolGrp not found ... Kernel panic the UUID's have not changed, but there is definitely a missing link, probably something dumb... I would greatly appreciate if anyone could help point me in the right direction.. a bit more info # lvscan ACTIVE '/dev/RaidVolGrp/RootVol' [50.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/HomeVol' [250.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/SwapVol' [2.44 GiB] inherit ACTIVE '/dev/RaidVolGrp/MusicVol' [350.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/VideoVol' [350.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/PicturesVol' [300.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/MiscVol' [60.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/ShareddocVol' [60.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/VMVol' [60.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/TorrentVol' [50.00 GiB] inherit That is output from running the Fedora LiveCD? Boot up with the CentOS 5 DVD into rescue mode, let it detect the existing LVMs. Go into /etc/lvm/backup and validate the info that's saved there and to check what CentOS sees. sh Alexander ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Ok, thanks a lot for the reply I believe this is the relevant part of /etc/lvm/backup RaidVolGrp { id = gL5X13-q4c8-d8XJ-x6Qc-m36S-eCfp-LKnvIW seqno = 22 status = [RESIZEABLE, READ, WRITE] flags = [] extent_size = 65536 # 32 Megabytes max_lv = 0 max_pv = 0 metadata_copies = 0 physical_volumes { pv0 { id = BpXoKc-pQYn-zVkU-7HyH-IKLw-0IX2-Ygm2HJ device = /dev/md1 # Hint only status = [ALLOCATABLE] flags = [] dev_size = 7805081216 # 3.63452 Terabytes pe_start = 384 pe_count = 119096 # 3.63452 Terabytes } } logical_volumes { RootVol { id = AWstlr-xw8t-FNTu-FsEA-YUxi-updp-0HfKtr status = [READ, WRITE, VISIBLE] flags = [] segment_count = 1 segment1 { start_extent = 0 extent_count = 625 # 19.5312 Gigabytes type = striped stripe_count = 1 # linear stripes = [ pv0, 16250 ] } } # And this is what i get when i run lvdisplay from the centos live-cd lvdisplay --- Logical volume --- LV Name /dev/RaidVolGrp/RootVol VG Name RaidVolGrp LV UUID AWstlr-xw8t-FNTu-FsEA-YUxi-updp-0HfKtr LV Write Access read/write LV Status available # open 1 LV Size 50.00 GB Current LE 1600 Segments 2 Allocation inherit Read ahead sectors auto - currently set to 4096 Block device 253:2 . ## It looks like what has changes is the segment count (went from 1 to 2 segments) for the logical volume RootVol (and also
[CentOS] offline root lvm resize
So here goes... First some back story -Centos 5 with latest updates as of yesterday. kernel is 2.6.18-238.19.1.el5 -setup is raid 1 for /boot and lvm over raid6 for everything else - The / partition (lvm RootVol) had run out of room... (100% full, things where falling appart...) I resized the root volume (from 20GiB to 50GiB). This was done from a fedora 15 livecd, seemed like a better idea than doing it on a live system at the time After the resize the content of all the lvs could be mounted and all data was still there (all this from within fedora). The problem is when i try to reboot into centos as the root volume cannot be found. boot message goes as follows ... No Volume groups found Volume Group RaidVolGrp not found ... Kernel panic the UUID's have not changed, but there is definitely a missing link, probably something dumb... I would greatly appreciate if anyone could help point me in the right direction.. a bit more info # lvscan ACTIVE'/dev/RaidVolGrp/RootVol' [50.00 GiB] inherit ACTIVE'/dev/RaidVolGrp/HomeVol' [250.00 GiB] inherit ACTIVE'/dev/RaidVolGrp/SwapVol' [2.44 GiB] inherit ACTIVE'/dev/RaidVolGrp/MusicVol' [350.00 GiB] inherit ACTIVE'/dev/RaidVolGrp/VideoVol' [350.00 GiB] inherit ACTIVE'/dev/RaidVolGrp/PicturesVol' [300.00 GiB] inherit ACTIVE'/dev/RaidVolGrp/MiscVol' [60.00 GiB] inherit ACTIVE'/dev/RaidVolGrp/ShareddocVol' [60.00 GiB] inherit ACTIVE'/dev/RaidVolGrp/VMVol' [60.00 GiB] inherit ACTIVE'/dev/RaidVolGrp/TorrentVol' [50.00 GiB] inherit sh ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] offline root lvm resize
On Sat, Jul 30, 2011 at 7:40 AM, Alexander Dalloz ad+li...@uni-x.org wrote: Am 30.07.2011 10:37, schrieb Sean Hart: So here goes... First some back story -Centos 5 with latest updates as of yesterday. kernel is 2.6.18-238.19.1.el5 -setup is raid 1 for /boot and lvm over raid6 for everything else - The / partition (lvm RootVol) had run out of room... (100% full, things where falling appart...) I resized the root volume (from 20GiB to 50GiB). This was done from a fedora 15 livecd, seemed like a better idea than doing it on a live system at the time After the resize the content of all the lvs could be mounted and all data was still there (all this from within fedora). You would better have used the CentOS 5 install media to run into rescue mode and then to chroot into the system, given you felt better to do an offline resizing. Though online resizing (increasing an LV) is trouble free from my experience. Well, if / is completely full the offline route may indeed be better. The problem is when i try to reboot into centos as the root volume cannot be found. boot message goes as follows ... No Volume groups found Volume Group RaidVolGrp not found ... Kernel panic the UUID's have not changed, but there is definitely a missing link, probably something dumb... I would greatly appreciate if anyone could help point me in the right direction.. a bit more info # lvscan ACTIVE '/dev/RaidVolGrp/RootVol' [50.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/HomeVol' [250.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/SwapVol' [2.44 GiB] inherit ACTIVE '/dev/RaidVolGrp/MusicVol' [350.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/VideoVol' [350.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/PicturesVol' [300.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/MiscVol' [60.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/ShareddocVol' [60.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/VMVol' [60.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/TorrentVol' [50.00 GiB] inherit That is output from running the Fedora LiveCD? Boot up with the CentOS 5 DVD into rescue mode, let it detect the existing LVMs. Go into /etc/lvm/backup and validate the info that's saved there and to check what CentOS sees. sh Alexander ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Ok, thanks a lot for the reply I believe this is the relevant part of /etc/lvm/backup RaidVolGrp { id = gL5X13-q4c8-d8XJ-x6Qc-m36S-eCfp-LKnvIW seqno = 22 status = [RESIZEABLE, READ, WRITE] flags = [] extent_size = 65536 # 32 Megabytes max_lv = 0 max_pv = 0 metadata_copies = 0 physical_volumes { pv0 { id = BpXoKc-pQYn-zVkU-7HyH-IKLw-0IX2-Ygm2HJ device = /dev/md1 # Hint only status = [ALLOCATABLE] flags = [] dev_size = 7805081216 # 3.63452 Terabytes pe_start = 384 pe_count = 119096 # 3.63452 Terabytes } } logical_volumes { RootVol { id = AWstlr-xw8t-FNTu-FsEA-YUxi-updp-0HfKtr status = [READ, WRITE, VISIBLE] flags = [] segment_count = 1 segment1 { start_extent = 0 extent_count = 625 # 19.5312 Gigabytes type = striped stripe_count = 1# linear stripes = [ pv0, 16250 ] } } # And this is what i get when i run lvdisplay from the centos live-cd lvdisplay --- Logical volume --- LV Name/dev/RaidVolGrp/RootVol VG NameRaidVolGrp LV UUIDAWstlr-xw8t-FNTu-FsEA-YUxi-updp-0HfKtr LV Write Accessread/write LV Status available # open 1 LV Size50.00 GB Current LE 1600 Segments 2 Allocation inherit Read ahead sectors auto - currently set to 4096 Block device 253:2 . ## It looks like what has changes is the segment count (went from 1 to 2 segments) for the logical volume RootVol (and also the total number of segments of pv0 has changed from 22 to 23 i suppose) pvdisplay fom centos live-cd Scanning for physical
Re: [CentOS] offline root lvm resize
On Sat, Jul 30, 2011 at 6:40 PM, Sean Hart teve...@gmail.com wrote: On Sat, Jul 30, 2011 at 7:40 AM, Alexander Dalloz ad+li...@uni-x.org wrote: Am 30.07.2011 10:37, schrieb Sean Hart: So here goes... First some back story -Centos 5 with latest updates as of yesterday. kernel is 2.6.18-238.19.1.el5 -setup is raid 1 for /boot and lvm over raid6 for everything else - The / partition (lvm RootVol) had run out of room... (100% full, things where falling appart...) I resized the root volume (from 20GiB to 50GiB). This was done from a fedora 15 livecd, seemed like a better idea than doing it on a live system at the time After the resize the content of all the lvs could be mounted and all data was still there (all this from within fedora). You would better have used the CentOS 5 install media to run into rescue mode and then to chroot into the system, given you felt better to do an offline resizing. Though online resizing (increasing an LV) is trouble free from my experience. Well, if / is completely full the offline route may indeed be better. The problem is when i try to reboot into centos as the root volume cannot be found. boot message goes as follows ... No Volume groups found Volume Group RaidVolGrp not found ... Kernel panic the UUID's have not changed, but there is definitely a missing link, probably something dumb... I would greatly appreciate if anyone could help point me in the right direction.. a bit more info # lvscan ACTIVE '/dev/RaidVolGrp/RootVol' [50.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/HomeVol' [250.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/SwapVol' [2.44 GiB] inherit ACTIVE '/dev/RaidVolGrp/MusicVol' [350.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/VideoVol' [350.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/PicturesVol' [300.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/MiscVol' [60.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/ShareddocVol' [60.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/VMVol' [60.00 GiB] inherit ACTIVE '/dev/RaidVolGrp/TorrentVol' [50.00 GiB] inherit That is output from running the Fedora LiveCD? Boot up with the CentOS 5 DVD into rescue mode, let it detect the existing LVMs. Go into /etc/lvm/backup and validate the info that's saved there and to check what CentOS sees. sh Alexander ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Ok, thanks a lot for the reply I believe this is the relevant part of /etc/lvm/backup RaidVolGrp { id = gL5X13-q4c8-d8XJ-x6Qc-m36S-eCfp-LKnvIW seqno = 22 status = [RESIZEABLE, READ, WRITE] flags = [] extent_size = 65536 # 32 Megabytes max_lv = 0 max_pv = 0 metadata_copies = 0 physical_volumes { pv0 { id = BpXoKc-pQYn-zVkU-7HyH-IKLw-0IX2-Ygm2HJ device = /dev/md1 # Hint only status = [ALLOCATABLE] flags = [] dev_size = 7805081216 # 3.63452 Terabytes pe_start = 384 pe_count = 119096 # 3.63452 Terabytes } } logical_volumes { RootVol { id = AWstlr-xw8t-FNTu-FsEA-YUxi-updp-0HfKtr status = [READ, WRITE, VISIBLE] flags = [] segment_count = 1 segment1 { start_extent = 0 extent_count = 625 # 19.5312 Gigabytes type = striped stripe_count = 1 # linear stripes = [ pv0, 16250 ] } } # And this is what i get when i run lvdisplay from the centos live-cd lvdisplay --- Logical volume --- LV Name /dev/RaidVolGrp/RootVol VG Name RaidVolGrp LV UUID AWstlr-xw8t-FNTu-FsEA-YUxi-updp-0HfKtr LV Write Access read/write LV Status available # open 1 LV Size 50.00 GB Current LE 1600 Segments 2 Allocation inherit Read ahead sectors auto - currently set to 4096 Block device 253:2 . ## It looks like what has changes is the segment count (went from 1 to 2 segments) for the logical volume RootVol (and also the total number of segments of pv0 has changed from 22 to 23 i suppose
Re: [CentOS] Load balancing...
On 3/3/11 3:51 PM, aurfal...@gmail.com wrote: On Mar 3, 2011, at 3:43 PM, Todd wrote: Hi All, Can anyone help me hash out how best to load balance a website that is getting considerable traffic? In the past I only have experience with BigIP where you have a load balancing device that keeps track and send traffic to the best server possible at the time. This was a proprietary system that I think was something Dell rebranded. Right now, the whole site is is 400gb of video, HTML5, Apache, PHP, MySQL, runs on a single box with 16gb of RAM and mirrored /var/www/ html (2x1tb raid level drives). I have a Comcast 50/10 connection, 5 statics and I am seeing about 125 unique visitors a day. The site runs fine, but in anticipation of more traffic as well as a learning experience I would like to load balance. Obviously I need a second server just like the one it is running on now. I will probably spec something out that is capable of 32gb of RAM. What about a dedicated load balancing device? What specs should this be? How much RAM, HD, processor? It is sufficient to buy something with a GB NIC and say 4gb of RAM? Can one go slower but more RAM, small HD? I don't really quite know how intensive a task this decision making process is for the load balancer.. Right now, as example, I have an Untangle Firewall and it runs on a old AMD with 2gb RAM, GB NIC and it seems to do just fine. My local computer store has several P4 2.8ghz with 2GB of RAM for like $99 Can anyone enlighten me on specs, proper setup, caveats? Well a bit outside what I know which isn't much, but... What about external DNS provider with round robin DNS? Or if you have control over your DNS, then you can easily do round robin. Qucik and ez faq on round robin; http://www.zytrax.com/books/dns/ch9/rr.html Hope this helps. I do this for my mail servers. - aurf ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hello, Building a high throughput, highly available site is a tough job, and there's a reason good sysadmins get paid what they do. But to give you some direction on Load Balancers. BigIP (Made by f5) is the hands down leader of the Load Balancer world. You will pay dearly for it (20K each, min), but depending on your needs, may very well be the best choice for you. http://www.google.com/url?sa=tsource=webcd=1sqi=2ved=0CCgQFjAAurl=http%3A%2F%2Fwww.zeus.com%2Fdocuments%2Fen%2FGa%2FGartner_Inc._Magic_Quadrant_for_Application_Delivery_Controllers_24.09.09.pdfrct=jq=load%20balancer%20gartner%20magic%20quadrantei=zipwTdeQG5TCsAOe1N3CCwusg=AFQjCNGeL_a0Jpco1EVVObiAS0mWSnbbqgcad=rja Zeus also makes a decent product, made to run as software. The software will run you ~9K I think, but is pretty feature rich. Requires hardware to go with it. http://www.zeus.com/products/load-balancer/ IPVS or LVS can work as a really simple/free solution: http://www.linuxvirtualserver.org/software/ipvs.html Round robin DNS would balance load, but will cause problems if one of them goes down. You could also set up apache or squid to do proxying... Cheers, Sean ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Load balancing...
Hi Sean, Can you explain as I may be planning this for a site. So if I have 2 identical servers, each with there own IP, how will one of them going down cause issues? I'm assuming multiple A records for the same host will be handled fine by the client lookup? example.com resolves to: host1.example.com - A.B.C.D host2.example.com - W.X.Y.Z 1. Client performs DNS lookup and gets pointed to host2. All is well. 2. host2 goes down. DNS for example.com still resolves to host2, which is unreachable. Site is down. Yeah, what they said! I've done a few of these myself if you want to chat further off the list about your specific needs and so forth. I don't contract or anything, but I'm down to give advice. ~Sean Hart ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Sorting by date
On 2/28/11 12:35 PM, erikmccaskey64 wrote: Original: Jan 23 2011 10:42 SOMETHING 2007.12.20.avi Jun 26 2009 SOMETHING 2009.06.25.avi Feb 12 2010 SOMETHING 2010.02.11.avi Jan 29 2011 09:17 SOMETHING 2011.01.27.avi Feb 11 2011 20:06 SOMETHING 2011.02.10.avi Feb 27 2011 23:05 SOMETHING 2011.02.24.avi Output: Feb 27 2011 23:05 SOMETHING 2011.02.24.avi Feb 11 2011 20:06 SOMETHING 2011.02.10.avi Jan 29 2011 09:17 SOMETHING 2011.01.27.avi Jan 23 2011 10:42 SOMETHING 2007.12.20.avi Feb 12 2010 SOMETHING 2010.02.11.avi Jun 26 2009 SOMETHING 2009.06.25.avi How could I get the output where the newest file is at the top? Assuming you are getting the time from the ls -l command... To sort within the ls command (man ls): ls -lt To sort after the ls command (man ls): ls -al --full-time | awk '{print $6 $7 $9}' | sort -r Not using ls: To take that input and sort you'd have to do some hashing to translate the months to a sortable format (like numbers) I think. Alternatively, you could use the listed date to generate a UTF date via the date command. ~Sean ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] centos 5.5 check memoray usage too high???
On 2/2/11 1:58 PM, mcclnx mcc wrote: We have DELL R900 server with 128GB RAM (CENTOS 5.5)in it. This server only have one application running and few people use it. Every week I ata least get one or two messages from monitor tool mail to me say: Message=Memory Utilization is 92.02%, crossed warning (80) or critical (90) threshold. Since server have 128 GB RAM and only 1 application. I really don't belive that. Does there has some way can check memory utilitation ? What is the output of the command free? ~Sean ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] How to disable screen locking system-wide?
On 1/19/11 11:49 AM, Rudi Ahlers wrote: On Wed, Jan 19, 2011 at 9:46 PM, Joshua Baker-LePain jl...@duke.edu wrote: On Wed, 19 Jan 2011 at 11:44am, Bob Eastbrook wrote By default, CentOS v5 requires a user's password when the system wakes up from the screensaver. This can be disabled by each user, but how can I disable this system-wide? Many of my users forget to do this, which results in workstations being locked up. Ctrl-Alt-Bksp will fix that right up. I'm not a big fan of users leaving workstations unsecured when they walk away. -- Don't you mean CTRL+ALT+DEL? I don't think the OP wanted a plaster, he wants a solution :) I believe that CTRL-ALT-Bksp will restart X, not the computer. On restart of X you should be welcomed with the login screen. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] adding user ldif to ldap
Here is the error: LDAP# ldapadd -x -D cn=Manager,dc=summitnjhome,dc=com -W -f /tmp/passwd.ldif adding new entry uid=root,ou=People,dc=summitnjhome,dc=com ldap_add: Invalid syntax (21) additional info: objectClass: value #6 invalid per syntax I believe this is complaining about the 6th entry in the objectClass field (starting at 0, I think meaning the kerberosSecurityObject). If you look at the schema entry for that objectClass, there may be restraints on the class that are not permitting you to add... ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] No last command in VIM?
On 10/21/10 9:48 AM, John Kennedy wrote: Is there an alias hanging around that is redirecting you? John On Thu, Oct 21, 2010 at 12:36, Scott Robbins scot...@nyc.rr.com mailto:scot...@nyc.rr.com wrote: On Thu, Oct 21, 2010 at 06:19:54PM +0200, Dotan Cohen wrote: Although I made sure that vim-enhanced.i386 is installed, pressing : then upArrow does not show me the last command that I've typed. Might I still be using vim-minimal erroneously? How to fix that? I don't see any mention of this in google or the past few months of fine archives. One possible guess, but it's a guess only and I don't have high hopes for it Is there possibly a /bin/vi which takes precedence over /usr/bin/vim? (Or is the command vim-enhanced?) If you do which vim it should show you the path of exactly which vim you are using... There is a history optin in vimrc, is it possible you set this to 0? I believe it sets the number of lines to keep in history. Cheers, Sean ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] how to do repetetive command in shell
On 10/21/10 11:45 AM, Roland RoLaNd wrote: Dear all, i'm writing a certain script which does a specific task in a repetitive manner, i'm going to give a similar script with the same concept hope you could advise me to a better way: Try for http://www.cyberciti.biz/faq/bash-for-loop/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] LDAP Mail Notice
Maybe what i said is not clear, because my English is too pool . Please forgive me if my expression is not precise. Doesn't matter what mail server you use, email is email. The following is my environment : Workspace Environment : CentOS 5.5 64bits , Using Openldap Server or 389 LDAP Server Mail Server : Windows Mail Server For example : If I create the new account called Tim on LDAP Server , and his password is 123456 , and his mail address is t...@test.com mailto:t...@test.com Then will send an E-mail to him to notice his information , like his name and his passowrd. So Would someone can give some suggestions ? Before we go any further on this, I'd like to give a very serious warning. It is NEVER a good idea to email a password. Email is, by definition, insecure. I'm not familiar with 389 LDAP Server, and after a quick look, it would make sense for me to read up on it. Anyhow, my advice is going to come from the OpenLDAP side of things. I would: 1. Set up OpenLDAP (make sure to get a real certificate and require TLS/SSL) 2. If using Samba, set up the smbldap tools (http://en.wikipedia.org/wiki/Smbldap-Tools), can be useful even if not using samba... 3. Start script (I'd use perl, since it's what I'm most familiar with) 1. Generate username (either collect from input or generate somehow 2. Generate password (There's a sub for that on the page referenced earlier) 3. Contemplate making sure that the username is unique, and group membership, etc. 4. call smbldap-useradd to add the user (add stuff like -m for the mail address, check the smbldap-useradd documentation for handy switches 5. Compose body of email to user (this is probably mostly static, but you will most likely want to substitute some variables like username, etc 6. send the email (sub on the page earlier) 7. I repeat, please don't email passwords... have them call you for them or something... email is the least secure thing on the damn planet 4. Sit back and have a beer, cuz yer done I'm happy to help if you need more. Cheers, Sean ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] One server not showing SSH port, the other is.
Just disable password authentication on ssh and use only keyfiles .. -- My initial thought exactly. Keys, and require passwords on the keys too. Although if you want to be wicked paranoid, knocking + keys would work too. ~Sean ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Openwebmail emergency (Perl)
Transaction Check Error: file /usr/lib/perl5/vendor_perl/5.8.8/Compress/Zlib.pm from install of perl-Compress-Zlib-2.015-1.el5.rf.noarch conflicts with file from package perl-IO-Compress-2.030-2.el5.rf.noarch file /usr/share/man/man3/Compress::Zlib.3pm.gz from install of perl-Compress-Zlib-2.015-1.el5.rf.noarch conflicts with file from package perl-IO-Compress-2.030-2.el5.rf.noarch Not sure if this will help... Have you tried updating perl-IO-Compress? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Openwebmail emergency (Perl)
On 10/11/10 11:51 PM, Jussi Hirvi wrote: It seems Openwebmail is using Perl-Compress-Zlib from rpmforce, but in Centos this is obsoleted by Perl-IO-Compress, and there is a conflict. This I got when I tried to install the rpmforce package: [r...@mail log]# yum install perl-Compress-Zlib Loaded plugins: fastestmirror, installonlyn Loading mirror speeds from cached hostfile * addons: ftp.funet.fi * base: ftp.funet.fi * extras: ftp.funet.fi * rpmforge: wftp.tu-chemnitz.de * updates: ftp.funet.fi Setting up Install Process Package perl-Compress-Zlib is obsoleted by perl-IO-Compress, trying to install perl-IO-Compress-2.030-2.el5.rf.noarch instead Package perl-IO-Compress-2.030-2.el5.rf.noarch already installed and latest version Nothing to do In that case, it depends on how brave/desperate you are ;) First off... You had better have a backup of your system. If you don't already, you've learned a valuable lesson, but still get one RIGHT NOW. Is there anything on the Openwebmail forums/mailing lists? I can't imagine you are the only one facing this. Next, you could try removing the conflict or getting the required Zlib package (rpm or sourced from cpan) and force install, but I don't really recommend. I don't use Openwebmail, so I can't speak to the requirements there. Good luck, ~Sean ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] LDAP Mail Notice
I have a thought of writing the script to implement the LDAP mail noticerecently. That's to say , after creating the new account and his passwd , then how to send an E-mail to notice him? By the way , I used the LDAP tool called 389 LDAP or openldap recently . Could someone give me some suggestions ? What precisely are you looking to do? Are you trying to write a script to create a user and email them? If so, I've definitely done that. I put together a bunch of tools a while back if you are looking for some building blocks (including a send mail to user sub and a lot of retrieve/set LDAP attributes). A lot of this was put together from other stuff I found on the web in my years of LDAP administration. Disclaimer: I'm a self taught perl guy, so I don't know all of the tricks, etc http://xrayspx.com/part-3-subroutines If you give me a better idea of exactly what you are looking for I'm sure I could whip something up. Cheers, Sean ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos