From amy at real-time.com Wed Jan 15 09:40:36 2003 From: amy at real-time.com (Amy Tanner) Date: Mon Jan 17 12:36:00 2005 Subject: [TCLUG] lvm tips Message-ID: <20030115154035.GY1847@real-time.com> I just took a look at lvm for the first time last night and I have a few questions: 1. How do you take care of activating volume groups at boot time? I found several references online that say to add the following to rc.sysinit: vgscan # Search for volume groups vgchange -a y # Activate all volume groups I was surprised the RedHat lvm package didn't contain an init script. 2. Most of the docs I've seen talks about creating ext2 file systems. Is there any reason not to use ext3? 3. Are there any general tips anyone can offer? Thanks. -- Amy Tanner amy@real-time.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 481 bytes Desc: not available Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20030115/08accd49/attachment.pgp From sfertch at real-time.com Tue Jan 7 22:45:00 2003 From: sfertch at real-time.com (Shawn Fertch) Date: Mon Jan 17 14:04:05 2005 Subject: [TCLUG] crontab script help Message-ID: <20020809234820.4902ef00.sfertch@real-time.com> Admittedly, I'm not strong on scripting so I'm looking for some help on something. I'd like to put into cron a script to automatically update the db.cache file on my Bind9 DNS server. Here's what I've come up with so far: 0 3 * * * 4 /usr/bin/dig @a.root-servers.net . ns > /var/named/db.cache The above part works fine, or at least should. However, I'd also like to set it up so that after updating the db.cache file, named is restarted. I think I have a long way of doing it, but I'm not certain. Here's what I'm thinking: 15 3 * * * 4 /bin/kill -HUP `ps -ef|grep named|awk '{print $2}'` However, when I do this it comes up with two PIDs. One for the actual named process and one for the ps. I'd like to try and cut it down to the actual process' PID, so I tried this: `ps -ef|grep named|awk '{print $2}'|awk '{print $1}'` Which still showed two PIDs. There's gotta be a better way to do this isn't there? Can someone point me in the right direction please? Thanks in advance. -- Shawn sfertch@real-time.com http://www.mn-ttkd.org