[OpenAFS] bos removeuser and vos dump -clone questions

GALAMBOS Daniel dancsa@dancsa.hu
Mon, 25 Aug 2014 22:37:07 +0200


Hi,

Under debian 7 bos removeuser causes the bosserver to abort with
coredump.  The cause is realpath requires that resolved_path is either
to be NULL or be more-or-equal to PATH_MAX, but both could have
portability problems according to the man page.

The master branch has that code modified by commit 68e02987 a year ago.
I know this issue can be easily worked around, if the administrators
knew about it...  But if not they may cause downtime. (...happened to a
colleague)

My other problem is with vos dump called with -clone, which i don't know
if it's a bug and/or is safe-to-ignore.
After dumping a volume with -clone flag, vos examine doesn't forget the
ID of the clone although the clone seems to be deleted as neither
listvldb or listvol contains that volume id.

Thanks,

Daniel Galambos



Server version openafs 1.6.9

dancsa@misuzu:~$ vos exa user.shana
user.shana                        537512530 RW         11 K  On-line
    afsc1..... /vicepb
    RWrite  537512530 ROnly          0 Backup  537512532
    MaxQuota   20971520 K
    Creation    Wed Apr  2 14:19:51 2014
    Copy        Thu Apr 17 13:10:22 2014
    Backup      Mon Aug 25 02:29:00 2014
    Last Access Mon Aug 25 21:30:15 2014
    Last Update Wed Apr  2 14:19:51 2014
    136 accesses in the past day (i.e., vnode references)

    RWrite: 537512530     Backup: 537512532
    number of sites -> 1
       server afsc1...... partition /vicepb RW Site

dancsa@misuzu:~$ vos dump user.shana -file shana.dump -clone -verbose
Full Dump ...
Starting transaction on volume 537512530... done
Allocating new volume id for clone of volume 537512530 ... done
Cloning source volume 537512530 to clone volume 537552659... done
Ending the transaction on the volume 537512530 ... done
Starting transaction on the cloned volume 537552659 ... done
Setting flags on cloned volume 537552659 ... done
Starting volume dump from cloned volume 537552659... done
Dumping volume 537512530... done
Deleting the cloned volume 537552659 ... done
Ending transaction on cloned volume 537552659... done
Dumped volume user.shana in file shana.dump

dancsa@misuzu:~$ vos exa user.shana
user.shana                        537512530 RW         11 K  On-line
    afsc1..... /vicepb
    RWrite  537512530 ROnly  537552659 Backup  537512532
    MaxQuota   20971520 K
    Creation    Wed Apr  2 14:19:51 2014
    Copy        Thu Apr 17 13:10:22 2014
    Backup      Mon Aug 25 02:29:00 2014
    Last Access Mon Aug 25 21:30:15 2014
    Last Update Wed Apr  2 14:19:51 2014
    136 accesses in the past day (i.e., vnode
references)                                                              =
                                                                       =20

                                                                         =
                                                                         =
                                            =20

    RWrite: 537512530     Backup:
537512532                                                                =
                                                                         =
          =20

    number of sites -> 1
       server afsc1...... partition /vicepb RW Site

dancsa@bastya:~$ vos listvldb -server afsc1 -nosort | grep 537552659
dancsa@bastya:~$ vos listvldb -server afsc1 -locked
VLDB entries for server afsc1 which are locked:

Total entries: 0

dancsa@bastya:~$ vos listvol afsc1 -fast | grep 537552659