[OpenAFS] Re: how to change openafs server ip address?
TIARA System Man
sysman@tiara.sinica.edu.tw
Tue, 3 Mar 2009 14:55:17 +0800
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
RWrite: 536870972
number of sites -> 1
server afs3.tiara.sinica.edu.tw partition /vicepa RW Site
home.heating
RWrite: 536871069
number of sites -> 1
server afs3.tiara.sinica.edu.tw partition /vicepb RW Site
home.rwaur.code
RWrite: 536871177
number of sites -> 1
server afs3.tiara.sinica.edu.tw partition /vicepc RW Site
home.tychiang
RWrite: 536871020
number of sites -> 1
server afs3.tiara.sinica.edu.tw partition /vicepa RW Site
home.wcchen
RWrite: 536871159
number of sites -> 1
server afs3.tiara.sinica.edu.tw partition /vicepa RW Site
software.linux
RWrite: 536871090 ROnly: 536871091
number of sites -> 3
server lupus.tiara.sinica.edu.tw partition /vicepa RW Site
server fs.tiara.sinica.edu.tw partition /vicepa RO Site
server afs3.tiara.sinica.edu.tw partition /vicepa RO Site
software.macintosh
RWrite: 536871087 ROnly: 536871088
number of sites -> 3
server lupus.tiara.sinica.edu.tw partition /vicepa RW Site
server afs3.tiara.sinica.edu.tw partition /vicepa RO Site
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
RWrite: 536870972
number of sites -> 1
server afs3.tiara.sinica.edu.tw partition /vicepa RW Site
home.heating
RWrite: 536871069
number of sites -> 1
server afs3.tiara.sinica.edu.tw partition /vicepb RW Site
home.rwaur.code
RWrite: 536871177
number of sites -> 1
server afs3.tiara.sinica.edu.tw partition /vicepc RW Site
home.tychiang
RWrite: 536871020
number of sites -> 1
server afs3.tiara.sinica.edu.tw partition /vicepa RW Site
home.wcchen
RWrite: 536871159
number of sites -> 1
server afs3.tiara.sinica.edu.tw partition /vicepa RW Site
software.linux
RWrite: 536871090 ROnly: 536871091
number of sites -> 3
server lupus.tiara.sinica.edu.tw partition /vicepa RW Site
server fs.tiara.sinica.edu.tw partition /vicepa RO Site
server afs3.tiara.sinica.edu.tw partition /vicepa RO Site
software.macintosh
RWrite: 536871087 ROnly: 536871088
number of sites -> 3
server lupus.tiara.sinica.edu.tw partition /vicepa RW Site
server afs3.tiara.sinica.edu.tw partition /vicepa RO Site
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 cfliu" 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 agai=
n!
best, sam
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 volum=
es
> from that server?
> If there are indeed spurious duplicate entries, use vos changeaddr -remov=
e.
>
> Furthermore, if you really lose volume entries, yet the fileserver remain=
s
> intact and you can vos listvol on it, you should be able to recover any l=
ost
> 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 se=
e
>>> 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
>>
>
--=20
Sam Tseng
Academia Sinica
Institute of Astronomy and Astrophysics
Tel: +886-2-3365-2200 ext 742
Fax: +886-2-2367-7849