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

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


:D ok i know the answer. after i use following command. the problem is fixe=
d.

vos syncserv server

thanks & sorry to bother you.

On Tue, Mar 3, 2009 at 3:52 PM, TIARA System Man
<sysman@tiara.sinica.edu.tw> wrote:
> thank YOU felix. & thank god! i was so nervous!! those are back!
>
> BUT, i use 'vos listaddrs' command to check registered vldb. the old
> ip 117.108.x.x and 140.109.x.x are disappeared. is this normal? :$
> thanks.
>
> best, sam
>
> On Tue, Mar 3, 2009 at 3:18 PM, Felix Frank <Felix.Frank@desy.de> wrote:
>> On Tue, 3 Mar 2009, TIARA System Man wrote:
>>
>>> after i delete entries of old ip address, the new ip address entries ar=
e
>>> gone!!
>>>
>>> # vos delentry -server 117.108.x.x
>>>
>>> # =C2=A0vos listvldb -server 140.109.x.x
>>> VLDB entries for server 140.109..x.x
>>>
>>> Total entries: 0
>>
>> Uhm - well THAT sure went well ;p
>>
>>> [root@afs3 ~]# cd /vicepa
>>> [root@afs3 vicepa]# ls
>>> AFSIDat =C2=A0lost+found =C2=A0 =C2=A0 =C2=A0 V0536871020.vol =C2=A0V05=
36871091.vol
>>> Lock =C2=A0 =C2=A0 V0536870972.vol =C2=A0V0536871088.vol =C2=A0V0536871=
159.vol
>>> [root@afs3 vicepa]# cd /vicepb
>>> [root@afs3 vicepb]# ls
>>> AFSIDat =C2=A0Lock =C2=A0lost+found =C2=A0V0536871069.vol
>>> [root@afs3 vicepb]# cd /vicepc
>>> [root@afs3 vicepc]# ls
>>> AFSIDat =C2=A0Lock =C2=A0lost+found =C2=A0V0536871177.vol
>>
>> Rather use "vos listvol <server>" than examining vice partitions.
>>
>>> those volumes are exist, but do i attach those volumes to original id?
>>> thank you.
>>
>> Try vos syncvldb 140.109.x.x
>> - Show quoted text -
> - Show quoted text -
>>
>> Regards
>> Felix
>>
>>> On Tue, Mar 3, 2009 at 3:03 PM, TIARA System Man
>>> <sysman@tiara.sinica.edu.tw> wrote:
>>>>
>>>> just found
>>>> http://www.openafs.org/pipermail/openafs-info/2004-December/015854.htm=
l
>>>>
>>>> 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:
>>>> - Show quoted text -
>>>>>
>>>>> 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 /vicep=
a 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 /vicep=
b 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 /vicep=
c 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 /vicep=
a 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 /vicep=
a 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 /vice=
pa RW Site
>>>>> =C2=A0 =C2=A0 =C2=A0 server fs.tiara.sinica.edu.tw partition /vicepa =
RO Site
>>>>> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicep=
a 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 /vice=
pa RW Site
>>>>> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicep=
a RO Site
>>>>> =C2=A0 =C2=A0 =C2=A0 server fs.tiara.sinica.edu.tw partition /vicepa =
RO Site
>>>>>
>>>>> 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 /vicep=
a 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 /vicep=
b 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 /vicep=
c 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 /vicep=
a 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 /vicep=
a 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 /vice=
pa RW Site
>>>>> =C2=A0 =C2=A0 =C2=A0 server fs.tiara.sinica.edu.tw partition /vicepa =
RO Site
>>>>> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicep=
a 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 /vice=
pa RW Site
>>>>> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicep=
a RO Site
>>>>> =C2=A0 =C2=A0 =C2=A0 server fs.tiara.sinica.edu.tw partition /vicepa =
RO Site
>>>>>
>>>>> 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 yo=
u
>>>>> again!
>>>>>
>>>>> best, sam
>>>>> - Show quoted text -
>>>>
>>>> - Show quoted text -
>>>>>
>>>>> On Tue, Mar 3, 2009 at 2:36 PM, Felix Frank <Felix.Frank@desy.de> wro=
te:
>>>>>>
>>>>>> 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 f=
ile
>>>>>> server in question?
>>>>>>
>>>>>> Strange. What does vos examine say about the location of any of the
>>>>>> volumes
>>>>>> from that server?
>>>>>> If there are indeed spurious duplicate entries, use vos changeaddr
>>>>>> -remove.
>>>>>>
>>>>>> Furthermore, if you really lose volume entries, yet the fileserver
>>>>>> remains
>>>>>> 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 l=
ist
>>>>>>>>> server address. the old ip address is still in the list. do you k=
now
>>>>>>>>> how to remove it?
>>>>>>>>
>>>>>>>> If there are still vldb entries referencing the old address, you c=
an
>>>>>>>> see
>>>>>>>> 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
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> - Show quoted text -
>>>> Sam Tseng
>>>> Academia Sinica
>>>> Institute of Astronomy and Astrophysics
>>>> Tel: +886-2-3365-2200 ext 742
>>>> Fax: +886-2-2367-7849
>>>>
>>>
>>>
>>>
>>> --
>>> Sam Tseng
>>> Academia Sinica
>>> Institute of Astronomy and Astrophysics
>>> Tel: +886-2-3365-2200 ext 742
>>> Fax: +886-2-2367-7849
>>
>
>
>
> --
> - Show quoted text -
> 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