Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-07-23 Thread Siju George
On Wed, Jul 22, 2009 at 10:54 PM, Matthew Dillondil...@apollo.backplane.com wrote:    It should, except for the shutdown script you probably want to    try to kill the other scripts frist and then do a lockf -k -t 10    to pick up the hmc script if/when the others finish terminating,    with

Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-07-23 Thread Matthew Dillon
: :They don't get killed when the 'hammer mirror-stream processes is killed. :How do I kill them? : :Thanks : :Siju The kernel helper threads are unrelated to the mirroring. They can't be killed nor would we want them to be. They exit when the filesystem is unmounted.

Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-07-23 Thread Siju George
On Thu, Jul 23, 2009 at 2:40 PM, Matthew Dillondil...@apollo.backplane.com wrote: : :They don't get killed when the 'hammer mirror-stream processes is killed. :How do I kill them? : :Thanks : :Siju    The kernel helper threads are unrelated to the mirroring.   They    can't be killed

Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-07-22 Thread Siju George
On Tue, Jul 21, 2009 at 10:19 PM, Matthew Dillondil...@apollo.backplane.com wrote:    lockf gets an exclusive lock on the specified lock file and runs    the specified program while holding the lock.  So if you run lockf    wieth the same lock file 50 times in parallel, the programs you run    

Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-07-22 Thread Matthew Dillon
:10 1 * * * (cd /root/adm; /usr/bin/lockf -k -t 0 .lockfile ./hms) : :and I put this in the /etc/rc.shutdown : :(cd /root/adm; /usr/bin/lockf -k -t 0 .lockfile ./hmc) : :Will this do the trick ? :-) : :Thanks again : :--Siju It should, except for the shutdown script you probably want to

Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-07-21 Thread Siju George
On Thu, Jun 25, 2009 at 8:55 PM, Matthew Dillondil...@apollo.backplane.com wrote:    mirror-stream only exits if the connection is lost so it is still a    good idea to check-start it with cron.  I usually use lockf for that    and a simple script.  Also make sure it isn't being verbose when

Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-07-21 Thread Matthew Dillon
:After reading the man page for 'lockf' I did not get how to implement :it actually. Are '.lockmirror' and 'do_mirror' scripts? If so Please :can I get to see them? : :thanks : :--Siju lockf gets an exclusive lock on the specified lock file and runs the specified program while

dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-06-25 Thread Siju George
Hi, Since the Installer allows only one of either hammer or UFS and since RAID parity writing can be too long for 2 500 GB disks on mirror after an unclean shutdown I followed these steps to create a backup server using mirroring instead of RAID1. this purely my idea after a lot of trial and

Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-06-25 Thread Matthew Dillon
It seems reasonable. You probably don't have to use the mirroring feature to backup the backup since they are local disks but it is fun to play with. If you use mirror-stream instead of mirror-copy you can control the bandwidth used by the mirroring operation (so as not to

Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-06-25 Thread Siju George
On Thu, Jun 25, 2009 at 8:55 PM, Matthew Dillondil...@apollo.backplane.com    null mounts aren't quite as useful for PFS slaves since a null mount    will lock-in the slave TID instead of tracking it.  In that case a    second softlink might be reasonable instead of using a NULL mount. Could

Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-06-25 Thread Siju George
On Thu, Jun 25, 2009 at 8:55 PM, Matthew Dillondil...@apollo.backplane.com wrote:    In anycase, if redundancy is that important to you for the backup box    then I recommend a combination of a SATA SSD (SATA-based solid state    flash drive) and two hard drives.  Put the main system on the SSD

Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-06-25 Thread Matthew Dillon
:Thanks for the info Dillon on the pfs naming convention and idea about :mirror stream. :Since you recommended SSDs before I tried to get them from vendors I :know but most of them haven't even heard about it ( I am from Kerala, :India ). : :Will a USB Flash drive serve the same purpose?

Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-06-25 Thread Matthew Dillon
:Could you please also tell me how to create a second softlink for the slave= :? : :thanks again : :--Siju I meant just make /blah/Data a softlink to /blah/pfs/Data, so the PFS masters are all in /blah/pfs for organizational purposes. slave mode mirroring is still pretty basic