Re: Hammer on multiple hot-swappable disks

2011-05-23 Thread Matthew Dillon

:I'm thinking of founding an ISP and running it with a mix of DragonFly and 
:Linux boxes. My current boss showed me a rack-mountable server which he uses. 
:If I understood him right, it has three bays where hot-swappable SCSI drives 
:can be inserted. I was thinking about how to handle disks that are about to 
:fail, or whose filesystems are getting too big.
:
:Suppose I have a bunch of disks all partitioned like this:
:da#s1a 768 MB ufs /boot
:da#s1b 1 GB swap
:da#s1d hammer
:da#s1e luks hammer.
:I have da0 and da1 in the server and I want to insert a disk into da2 and pull 
:out the one in da1. Can I do this with the "hammer volume-add da2s1d; hammer 
:volume-del da1s1d"? How long will this take? Do I run cryptsetup on da2s1e 
:before adding the volume?
:
:Pierre

No, unfortunately there is still one sticking point preventing that
from working.  The volume delete code can't remove the root volume
(in a multi-volume hammer mount one is designated as the root volume.
In a single-volume hammer mount that volume IS the root volume for
the mount).

-Matt


Re: Hammer on multiple hot-swappable disks

2011-05-23 Thread Pierre Abbat
On Monday 23 May 2011 17:13:57 Matthew Dillon wrote:
> No, unfortunately there is still one sticking point preventing that
> from working.  The volume delete code can't remove the root volume
> (in a multi-volume hammer mount one is designated as the root volume.
> In a single-volume hammer mount that volume IS the root volume for
> the mount).

But if the root volume were the one on da0, and I inserted da3 and removed 
da2, would it work? Is there a way to change which volume is the root volume?

Pierre
-- 
sedu'o no natfe puze'e noroi nalselganse srera


Re: Hammer on multiple hot-swappable disks

2011-05-23 Thread Justin Sherrill
You could stream master -> slave, and then if the master fails, change
the slave disk to the master.  Dunno if that covers the same area for
you.

On Mon, May 23, 2011 at 9:12 PM, Pierre Abbat  wrote:
> On Monday 23 May 2011 17:13:57 Matthew Dillon wrote:
>>     No, unfortunately there is still one sticking point preventing that
>>     from working.  The volume delete code can't remove the root volume
>>     (in a multi-volume hammer mount one is designated as the root volume.
>>     In a single-volume hammer mount that volume IS the root volume for
>>     the mount).
>
> But if the root volume were the one on da0, and I inserted da3 and removed
> da2, would it work? Is there a way to change which volume is the root volume?
>
> Pierre
> --
> sedu'o no natfe puze'e noroi nalselganse srera
>



Re: Hammer on multiple hot-swappable disks

2011-05-23 Thread Pierre Abbat
On Monday 23 May 2011 22:00:50 Justin Sherrill wrote:
> You could stream master -> slave, and then if the master fails, change
> the slave disk to the master.  Dunno if that covers the same area for
> you.

The filesystem spans more than one disk, and one of the disks is going bad. 
I'm also going to mirror it to another machine, but since root must be master 
and a mirror image must be slave, I'm not sure how to mirror the root PFS.

Pierre
-- 
Don't buy a French car in Holland. It may be a citroen.


Re: Hammer on multiple hot-swappable disks

2011-05-23 Thread Steve O'Hara-Smith
On Mon, 23 May 2011 22:49:49 -0400
Pierre Abbat  wrote:

> On Monday 23 May 2011 22:00:50 Justin Sherrill wrote:
> > You could stream master -> slave, and then if the master fails, change
> > the slave disk to the master.  Dunno if that covers the same area for
> > you.
> 
> The filesystem spans more than one disk, and one of the disks is going
> bad. I'm also going to mirror it to another machine, but since root must
> be master and a mirror image must be slave, I'm not sure how to mirror
> the root PFS.

The trick to that is to have not data on the root pfs, put
everything into non-root pfs's and null mount them where needed.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:>WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.org/