[OpenAFS] Re: how to change openafs server ip address?
TIARA System Man
sysman@tiara.sinica.edu.tw
Tue, 3 Mar 2009 15:12:58 +0800
after i delete entries of old ip address, the new ip address entries are go=
ne!!
# vos delentry -server 117.108.x.x
# vos listvldb -server 140.109.x.x
VLDB entries for server 140.109..x.x
Total entries: 0
[root@afs3 ~]# cd /vicepa
[root@afs3 vicepa]# ls
AFSIDat lost+found V0536871020.vol V0536871091.vol
Lock V0536870972.vol V0536871088.vol V0536871159.vol
[root@afs3 vicepa]# cd /vicepb
[root@afs3 vicepb]# ls
AFSIDat Lock lost+found V0536871069.vol
[root@afs3 vicepb]# cd /vicepc
[root@afs3 vicepc]# ls
AFSIDat Lock lost+found V0536871177.vol
those volumes are exist, but do i attach those volumes to original id?
thank you.
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/01=
5854.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:
> - 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 /vicepa R=
W 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 R=
W 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 R=
W 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 R=
W 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 R=
W 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 =
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 /vicepa R=
O 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 =
RW Site
>> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepa R=
O 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 /vicepa R=
W 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 R=
W 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 R=
W 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 R=
W 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 R=
W 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 =
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 /vicepa R=
O 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 =
RW Site
>> =C2=A0 =C2=A0 =C2=A0 server afs3.tiara.sinica.edu.tw partition /vicepa R=
O 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 you a=
gain!
>>
>> best, sam
>> - Show quoted text -
> - 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> <newi=
p>
>>> 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 vol=
umes
>>> from that server?
>>> If there are indeed spurious duplicate entries, use vos changeaddr -rem=
ove.
>>>
>>> Furthermore, if you really lose volume entries, yet the fileserver rema=
ins
>>> 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> wrot=
e:
>>>>>
>>>>> 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 =
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
>
--=20
Sam Tseng
Academia Sinica
Institute of Astronomy and Astrophysics
Tel: +886-2-3365-2200 ext 742
Fax: +886-2-2367-7849