Re: Any advice for a user about to use LVM for the first time?

2015-01-02 Thread Tapani Tarvainen
And I tend to use raid whenever I can, that is, in almost every machine with enough room for disks, and raid1, raid6 or raid10, sometimes raid0 when speed is crucial but data is expendable (cheap to regenerate); raid5 I try to avoid. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-use

Re: Moving LVM volume?

2015-01-02 Thread Tapani Tarvainen
at without much downtime.) -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150102084211.ga25...@tarvainen.info

Re: Moving LVM volume?

2015-01-01 Thread Tapani Tarvainen
here is) using dd or similar, taking care of aligments &c, then delete and recreate partitions to match new locations (taking care not to let any too automatic tool to mess things up), reboot, realize you've messed up, go to step (3). :-) -- Tapani Tarvainen -- To UNSUBSCRIBE, email to

Re: Bash Script for Mail sending Check

2009-04-17 Thread Tapani Tarvainen
100% reliable either, but then nothing is, short of actually sending the mail and waiting for reply or something.) -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Bash Script for Mail sending Check

2009-04-16 Thread Tapani Tarvainen
x27;ll work in more or less every *ix-related box, as it only uses standard POSIX tools. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Bash Script for Mail sending Check

2009-04-16 Thread Tapani Tarvainen
try telnetting to it. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Bash Script for Mail sending Check

2009-04-15 Thread Tapani Tarvainen
ash case "$( (sleep 5; echo quit; ps |awk '/telnet/{print "kill "$1}' |sh) | telnet 192.168.0.20 25 2>&- )" in *' 220 '*) echo Success ;; *)echo Failed ;; esac -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lis

Re: Bash Script for Mail sending Check

2009-04-15 Thread Tapani Tarvainen
load and whatnot. Quite a few even deliberately wait some 10 seconds just to trip spamming software known to be too impatient. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: how can i turn /dev/null into an MTA?

2009-04-15 Thread Tapani Tarvainen
mail.conf (set DAEMON_MODE="none"). -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Bash Script for Mail sending Check

2009-04-15 Thread Tapani Tarvainen
quot; in *' 220 '*) echo Success ;; *) echo Failed ;; esac -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

GlusterFS (was Re: WinBlow$ Home Server equivalent)

2009-04-12 Thread Tapani Tarvainen
ed with a single server this way. Has anybody here used GlusterFS with Debian? Would (ab)using it that way make sense? -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: WinBlow$ Home Server equivalent

2009-04-11 Thread Tapani Tarvainen
ndows Home Server is in a similar situation. What I have seen is news headings like "Windows Home Server Bug Could Lead To Data Loss" and "Shared Folders Problem While Removing Physically Failed Hard Drive in Windows Home Server". If someone has actual experience about dealing with lo

Re: WinBlow$ Home Server equivalent

2009-04-11 Thread Tapani Tarvainen
ch circumstances by searching for known pieces of the file content - not fun. With a binary file it would've been all but impossible. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Suggestions for multilevel backup of single machine?

2009-04-11 Thread Tapani Tarvainen
hat are good solutions for doing (2)? I'm using rsnapshot, and given what you told of your setup, I think you'd be happy with it, too. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: WinBlow$ Home Server equivalent

2009-04-11 Thread Tapani Tarvainen
nst certain types of hardware problems. (If the new disks are big enough you might wish to partition them into even more pieces and raid them separately.) If you want to stick to one raid1 array it is of course also possible: mdadm --grow and pvresize are what you need. -- Tapani Tarvainen

Re: boot failure diagnostics

2009-04-11 Thread Tapani Tarvainen
emount,ro / -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: WinBlow$ Home Server equivalent

2009-04-11 Thread Tapani Tarvainen
although recovery of a partially lost lv is rather painful. And of course raid/mirroring helps - with software raid as well as with lvm mirroring you can do it even with disks of different sizes. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a s

Re: WinBlow$ Home Server equivalent

2009-04-10 Thread Tapani Tarvainen
the features you listed can be done with lvm command line tools. Which of course is not the same thing: ease of use is the whole selling point of Windows Home Server. I guess the closest Linux equivalent would be Openfiler (www.openfiler.com), but I don't know of any separate disk management G

Re: Advice on raid/lvm

2009-04-09 Thread Tapani Tarvainen
you're using lvm anyway, it doesn't make much difference whether physical volumes are disks or disk pairs. Anybody want to claim being a newbie and having an opinion here? -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Advice on raid/lvm

2009-04-09 Thread Tapani Tarvainen
eing used with the latter from hp-ux), and decided to go with the former. There wasn't much difference in speed as I recall, but md allowed making bootable raid1 and it seemed better supported in Linux. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org

Re: Advice on raid/lvm

2009-04-09 Thread Tapani Tarvainen
t temporarily doubles, taking /lib to 340MB or thereabouts. I do't see it at all impossible that the 500MB I have for / there now will get too small before the machine is retired. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of &quo

Re: Advice on raid/lvm

2009-04-09 Thread Tapani Tarvainen
ny scripts that you > find helpful for rebuilding arrays you could put in /root/bin. You could just as well use /boot/doc and /boot/bin. But, yeah: the issue is debatable, there's no really overwhelming reason to go either way in every case. There are situations where the advantages of lvm

Re: Advice on raid/lvm

2009-04-09 Thread Tapani Tarvainen
a loss and increased complexity, if you are using LVM anyway. > Capacity can be dynamically added with pairs of disks. Yes. I'd prefer that if speed isn't critical. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubs

Re: Disk drive recovery help

2009-04-09 Thread Tapani Tarvainen
rd read error in a critical place in the disk. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Advice on raid/lvm

2009-04-09 Thread Tapani Tarvainen
agreed, but there are other costs caused by the inflexibility it implies. Anyway, nowadays I usually encrypt / anyway (or rather, encrypt mdadm devices used as lvm physical volumes and put / in there), and then there's no choice. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Advice on raid/lvm

2009-04-09 Thread Tapani Tarvainen
eded shouldn't be hard. As for the rest of your points, well, both software raid and lvm do increase complexity and require learning some new tricks, but they're well worth the trouble if you manage any system more complex than a simple workstation, IMHO. -- Tapani Tarvainen -- To

Re: Advice on raid/lvm

2009-04-08 Thread Tapani Tarvainen
pted, RAID1 ext3 /, you can boot off it directly, without separate /boot. If you are making separate /boot, you might as well put / under LVM (which is what I'd do - and indeed what I have done with just about every machine I have installed since I've forgotten when). -

Re: Advice on raid/lvm

2009-04-08 Thread Tapani Tarvainen
nal plan (as I understood it) is a sound compromise between cost, reliability, speed and simplicity under a wide range of requirements. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Advice on raid/lvm

2009-04-08 Thread Tapani Tarvainen
ID1 - I don't have hard data at hand, but I think rebuilding 3x500GB RAID5 would take longer than 2x1TB RAID1. So 2x1TB as RAID1 is safer than 3x500GB as RAID5. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Advice on raid/lvm

2009-04-08 Thread Tapani Tarvainen
r simultaneously connected disks? How full is the XFS system presently on the RAID5? -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: lvm and multiboot

2009-04-03 Thread Tapani Tarvainen
of partitions with different sizes so that you can later combine them in various ways. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Debian RAM supporting.

2009-04-01 Thread Tapani Tarvainen
e extension mechanisms needed to handle memory space bigger than 2^32, so if you are buying a new machine and plan to have over 4GB of RAM, a 64-bit CPU and OS would be preferable. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: OT: eSATA card/chip opinions

2009-04-01 Thread Tapani Tarvainen
ead of proper eSATA ones (don't know about this particular one). > StarTech 2 Port PCI-Express eSATA/SATA (1 Int + 1 Ext) Card Model PEXESATA2I > http://www.newegg.com/Product/Product.aspx?Item=N82E16815158095 > (uses (jmicron) AHCI) No experience with this one. -- Tapani Tarvain

Re: Why no Skype packages?

2009-04-01 Thread Tapani Tarvainen
it can handle Skype calls. Whether it's any better than Skype, well, depends. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Debian RAM supporting.

2009-04-01 Thread Tapani Tarvainen
lm > pni monitor ds_cpl cid > is it ok? for 64 bit Yes. The "lm" in the flags list means "long mode" = x86-64. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Debian RAM supporting.

2009-04-01 Thread Tapani Tarvainen
e any way to check which processor installed in debian? cat /proc/cpuinfo -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Resizing LVM partition

2009-03-29 Thread Tapani Tarvainen
, only there will be unused space at the end of the partition, and pvresize will claim it. At least that's how it works with normal disks, I don't know if your hardware RAID does something strange. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org

Re: Resizing LVM partition

2009-03-28 Thread Tapani Tarvainen
emptor: any mistakes (including things I've made by forgetting something) may result in loss of data. Fresh backup before starting is recommended. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Resizing LVM partition

2009-03-27 Thread Tapani Tarvainen
, just create another LVM partition and add it to the existing volume group (pvcreate, vgextend). If there is some reason that won't do what you want, I'm curious to hear what it is. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a

Re: configure firewall in etch

2009-03-25 Thread Tapani Tarvainen
-F'[: ]+' '/inet addr:/{print "your ip on '$1' is "$4}' Also, it might be prudent to use full path for ifconfig, i.e. /sbin/ifconfig, as /sbin may not be in $PATH. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Delete 4 million files

2009-03-25 Thread Tapani Tarvainen
time needed, not directory traversal. Of course here xargs was helped by the fact that filenames were short (most 12 characters with the directory name), but the speedup over -exec is still rather impressive. If anyone can come up with a scenario where -exec is significantly faster than xargs, I&

Re: about ntp

2009-03-25 Thread Tapani Tarvainen
happens to get is in USA and following the embargo too literally), or (3) his connection is simply so slow ntpdate gives up before getting the reply. Leo, try europe.pool.ntp.org instead, and if it fails, try again with 0.europe.pool.ntp.org, 1.europe.pool.ntp.org &c up to 3. -- Tapani Tarvai

Re: [OT] Cron and day of the week

2009-03-25 Thread Tapani Tarvainen
ot;`date +%m`" != "`date --date week +%m`" ] && myprog The last depends on Gnu date (but that's what Debian uses, so it's appropriate here): "date --date week" gives the date one week from now, and if the month is different, today is the last Monday. --

Re: Delete 4 million files

2009-03-24 Thread Tapani Tarvainen
ly preferred when you want to remove everything in the directory, the find version could be speeded significantly by using xargs, i.e., find . -type f -print0 | xargs -0 rm This is especially useful if you want to remove files selecticely instead of everything at once. -- Tapani Tarvainen --

Re: which package can display chart?

2009-03-23 Thread Tapani Tarvainen
ou don't install the patches, your system will be significantly more vulnerable than if you do. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: users backup (will change the root hard disk)

2009-03-23 Thread Tapani Tarvainen
ter yet if you are using LVM, just use pvmove - with hotswap disks you could even replace the root disk without booting. -- Tapani Tarvainen -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: SOLVED Re: Lenny won't install on an old Pentium that used to run Etch. Try 2

2009-03-22 Thread Tapani Tarvainen
isn't too bad. I installed Lenny on a 64MB box a while back, and first it appeared almost unusable, but after a bit of tweaking it's now running happily as a DNS server and mail relay. The biggest memory hog was rsyslogd, but it's memory footprint shrunk from about 28MB down to 4MB simp

cryptdisks & lvm2 startup sequence

2009-03-22 Thread Tapani Tarvainen
ng the two-stage cryptdisk startup sequence like I do, or in some other way that opens encrypted LVM volumes only at the late cryptdisk startup script? If it's just me I guess I'm better off messing with rc.local, otherwise I'll consider making a bug report/enhancement request. --

BUG: ... kernel NULL pointer reference ... udevadm timeout

2009-03-21 Thread Tapani Tarvainen
- [ 32.877340] 3c59x :01:00.0: enabling device ( -> 0003) [ 32.877510] 3c59x: Donald Becker and others. [ 32.877635] :01:00.0: 3Com PCI 3CCFE575CT Tornado CardBus at ca9c8000. [ 32.877759] PCI: Setting latency timer of device 0000:01:00.0 to 64 Any suggestions would be appreciated.