[OpenAFS] Re: how to change openafs server ip address?

TIARA System Man sysman@tiara.sinica.edu.tw
Tue, 3 Mar 2009 15:03:21 +0800


just found http://www.openafs.org/pipermail/openafs-info/2004-December/0158=
54.html

vos delentry -server 172.17.193.x
vos syncvldb servername
vos syncserv servername

:P let me try.

On Tue, Mar 3, 2009 at 2:55 PM, TIARA System Man
<sysman@tiara.sinica.edu.tw> wrote:
> sorry to bother you again!
>
> the following is the result of old ip address. the old ip address is
> no longer on the internet.
> ########
> root@afs ~]# vos listvldb -server 117.108.x.x
> VLDB entries for server 117.108.x.x
>
> home.cfliu
> =C2=A0 =C2=A0RWrite: 536870972
> =C2=A0 =C2=A0number of sites -> 1
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepa RW=
 Site
>
> home.heating
> =C2=A0 =C2=A0RWrite: 536871069
> =C2=A0 =C2=A0number of sites -> 1
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepb RW=
 Site
>
> home.rwaur.code
> =C2=A0 =C2=A0RWrite: 536871177
> =C2=A0 =C2=A0number of sites -> 1
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepc RW=
 Site
>
> home.tychiang
> =C2=A0 =C2=A0RWrite: 536871020
> =C2=A0 =C2=A0number of sites -> 1
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepa RW=
 Site
>
> home.wcchen
> =C2=A0 =C2=A0RWrite: 536871159
> =C2=A0 =C2=A0number of sites -> 1
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepa RW=
 Site
>
> software.linux
> =C2=A0 =C2=A0RWrite: 536871090 =C2=A0 =C2=A0 ROnly: 536871091
> =C2=A0 =C2=A0number of sites -> 3
> =C2=A0 =C2=A0 =C2=A0 server lupus.tiara.sinica.edu.tw partition /vicepa R=
W Site
> =C2=A0 =C2=A0 =C2=A0 server fs.tiara.sinica.edu.tw partition /vicepa RO S=
ite
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepa RO=
 Site
>
> software.macintosh
> =C2=A0 =C2=A0RWrite: 536871087 =C2=A0 =C2=A0 ROnly: 536871088
> =C2=A0 =C2=A0number of sites -> 3
> =C2=A0 =C2=A0 =C2=A0 server lupus.tiara.sinica.edu.tw partition /vicepa R=
W Site
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepa RO=
 Site
> =C2=A0 =C2=A0 =C2=A0 server fs.tiara.sinica.edu.tw partition /vicepa RO S=
ite
>
> Total entries: 7
> ########
>
> following is the result of the new ip address.
> ########
> [root@afs ~]# vos listvldb -server 140.109.x.x
> VLDB entries for server 140.109.x.x
>
> home.cfliu
> =C2=A0 =C2=A0RWrite: 536870972
> =C2=A0 =C2=A0number of sites -> 1
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepa RW=
 Site
>
> home.heating
> =C2=A0 =C2=A0RWrite: 536871069
> =C2=A0 =C2=A0number of sites -> 1
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepb RW=
 Site
>
> home.rwaur.code
> =C2=A0 =C2=A0RWrite: 536871177
> =C2=A0 =C2=A0number of sites -> 1
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepc RW=
 Site
>
> home.tychiang
> =C2=A0 =C2=A0RWrite: 536871020
> =C2=A0 =C2=A0number of sites -> 1
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepa RW=
 Site
>
> home.wcchen
> =C2=A0 =C2=A0RWrite: 536871159
> =C2=A0 =C2=A0number of sites -> 1
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepa RW=
 Site
>
> software.linux
> =C2=A0 =C2=A0RWrite: 536871090 =C2=A0 =C2=A0 ROnly: 536871091
> =C2=A0 =C2=A0number of sites -> 3
> =C2=A0 =C2=A0 =C2=A0 server lupus.tiara.sinica.edu.tw partition /vicepa R=
W Site
> =C2=A0 =C2=A0 =C2=A0 server fs.tiara.sinica.edu.tw partition /vicepa RO S=
ite
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepa RO=
 Site
>
> software.macintosh
> =C2=A0 =C2=A0RWrite: 536871087 =C2=A0 =C2=A0 ROnly: 536871088
> =C2=A0 =C2=A0number of sites -> 3
> =C2=A0 =C2=A0 =C2=A0 server lupus.tiara.sinica.edu.tw partition /vicepa R=
W Site
> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepa RO=
 Site
> =C2=A0 =C2=A0 =C2=A0 server fs.tiara.sinica.edu.tw partition /vicepa RO S=
ite
>
> Total entries: 7
> ########
>
> i tried to remove the old ip address. it displayed the following message.
> [root@afs ~]# vos changeaddr 117.108.x.x -remove
> Could not remove server 117.103.x.x from the VLDB
> VLDB: volume Id exists in the vldb
>
> at this moment, could i use "vos remove 117.108.x.x a =C2=A0cfliu" to
> remove the old ip address entries on by one? i'm not sure will this
> affect the new ip address afs server or not? :$
>
> or should i use "vos delentry"? sorry for my dump questions. thank you ag=
ain!
>
> best, sam
> - Show quoted text -
> On Tue, Mar 3, 2009 at 2:36 PM, Felix Frank <Felix.Frank@desy.de> wrote:
>> On Tue, 3 Mar 2009, TIARA System Man wrote:
>>
>>> it still has vldb entries when i use =C2=A0'vos listvldb -server
>>> 117.108.x.x' command. but, those entries are the same with new ip
>>> address which i changed. could i still use =C2=A0`vos changeaddr
>>> 117.108.x.x -remove' command to remove it? sorry. i'm chicken. i'm
>>> afraid to screw up the server. =C2=A0thank you for all the help!!
>>
>> Just to be sure I got this right - you did vos changeaddr <oldip> <newip=
>
>> and now you VLDB contains duplicate entries for all volumes on the file
>> server in question?
>>
>> Strange. What does vos examine say about the location of any of the volu=
mes
>> from that server?
>> If there are indeed spurious duplicate entries, use vos changeaddr -remo=
ve.
>>
>> Furthermore, if you really lose volume entries, yet the fileserver remai=
ns
>> intact and you can vos listvol on it, you should be able to recover any =
lost
>> VLDB entries using vos syncvldb.
>>
>> Regards
>> Felix
>>
>>> On Tue, Mar 3, 2009 at 1:10 AM, Andrew Deason <adeason2@uiuc.edu> wrote=
:
>>>>
>>>> On Mon, 2 Mar 2009 23:27:39 +0800
>>>> TIARA System Man <sysman@tiara.sinica.edu.tw> wrote:
>>>>
>>>>> however, i still have a minnor question. i use vos listaddrs to list
>>>>> server address. the old ip address is still in the list. do you know
>>>>> how to remove it?
>>>>
>>>> If there are still vldb entries referencing the old address, you can s=
ee
>>>> what they are with `vos listvldb -server 117.108.x.x'. If there's
>>>> nothing referencing it, you can remove it with
>>>> `vos changeaddr 117.108.x.x -remove'
>>>>
>>>> --
>>>> Andrew Deason
>>>> adeason2@uiuc.edu
>>>>
>>>> _______________________________________________
>>>> OpenAFS-info mailing list
>>>> OpenAFS-info@openafs.org
>>>> https://lists.openafs.org/mailman/listinfo/openafs-info
>>>>
>>>
>>>
>>>
>>> --
>>> Sam Tseng
>>> Academia Sinica
>>> Institute of Astronomy and Astrophysics
>>> Tel: +886-2-3365-2200 ext 742
>>> Fax: +886-2-2367-7849
>>> _______________________________________________
>>> OpenAFS-info mailing list
>>> OpenAFS-info@openafs.org
>>> https://lists.openafs.org/mailman/listinfo/openafs-info
>>>
>>
>
>
>
> --
> Sam Tseng
> Academia Sinica
> Institute of Astronomy and Astrophysics
> Tel: +886-2-3365-2200 ext 742
> Fax: +886-2-2367-7849
>



--=20
Sam Tseng
Academia Sinica
Institute of Astronomy and Astrophysics
Tel: +886-2-3365-2200 ext 742
Fax: +886-2-2367-7849