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

Felix Frank Felix.Frank@Desy.de
Tue, 3 Mar 2009 08:18:25 +0100 (CET)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--579716367-1183115944-1236064705=:30225
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by znsun1.ifh.de id n237IPph006565

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
>
> #  vos 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  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

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

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.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 /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 mess=
age.
>>> [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> <n=
ewip>
>>>> 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 r=
emains
>>>> 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> w=
rote:
>>>>>>
>>>>>> 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
>>
>
>
>
> --=20
> Sam Tseng
> Academia Sinica
> Institute of Astronomy and Astrophysics
> Tel: +886-2-3365-2200 ext 742
> Fax: +886-2-2367-7849
>
--579716367-1183115944-1236064705=:30225--