[OpenAFS] Switch containers between two fileservers

Derek Atkins warlord@MIT.EDU
Sun, 09 May 2004 10:27:30 -0400


Please make sure to CC: openafs-info on all your replies...

Lukas Kubin <kubin@opf.slu.cz> writes:

> Sorry my unclean description. I don't want to move the volumes. I want
> to change the physical disks between two servers. Server A has 400GB
> data container and should stay serve as an AFS server. Server B has
> 800GB data container and currently is also an AFS fileserver. However,
> we need to switch the RAID containers (by changing harddisks) between
> those 2 servers and use server B for different purpose.
>
> So the question is:
> Can I move all volumes from server A to server B and then take the B's
> drives and put them into server A?

As I said before, just swapping disk arrays between the servers wont work
right -- your VLDB would get out of sync.  Unless, as pointed out, you
also swap the virtual configuration of the machines.  In other words,
let's say you have

      machine1 == 400GB "m1.example" 10.1.1.1
      machine2 == 800GB "m2.example" 10.2.2.2

You could:
    - move all volumes from m1 to m2
    - reconfigure machine1 to think it's "m2" at 10.2.2.2 and then take it offline
    - reconfigure machine2 to think it's "m1" at 10.1.1.1 and then take it offline
    - swap disk arrays
    - bring up machine1, which will come up as "m2.example" on 10.2.2.2
      and all your AFS data will be there.
    - bring up machine2, which will come up as "m1.example" on 10.1.1.1
      and it wont have any AFS data on it.

> Thank you.
>
> lukas

-derek

> Derek Atkins wrote:
>> I dont think I understand what you mean.
>> Do you want to move the AFS files from fileserver 1 onto fileserver
>> 2,
>> and vice-versa?  If so, then you just need to "vos move" all the RW
>> volumes back and forth to get them on the right servers, and then you
>> can 'vos addsite', 'vos remsite', 'vos release', 'vos zap' to "move"
>> the read-only volumes.  Just swapping disk arrays between the servers
>> wont work right -- your VLDB would get out of sync.
>> -derek
>> Lukas Kubin <kubin@opf.slu.cz> writes:
>>
>>>I have two OpenAFS fileservers. Each one has a system container (with
>>>the Linux installation) and a RAID container containing an AFS
>>>partition.
>>>I would like to switch those containers between the 2 servers.
>>>Is it possible for the OpenAFS system? If yes, which steps do I have to do?
>>>Thank you.
>>>
>>>lukas
>>>
>>> -- 
>>>Lukas Kubin
>>>
>>>phone: +420596398275
>>>email: kubin@opf.slu.cz
>>>
>>>Information centre
>>>The School of Business Administration in Karvina
>>>Silesian University in Opava
>>>Czech Republic
>>>http://www.opf.slu.cz
>>
>
> -- 
> Lukas Kubin
>
> phone: +420596398275
> email: kubin@opf.slu.cz
>
> Information centre
> The School of Business Administration in Karvina
> Silesian University in Opava
> Czech Republic
> http://www.opf.slu.cz

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available