Re: [OpenAFS] Problem restore / mount volume

2016-06-27 Thread Andreas Ladanyi
Hi,

i want to thank you for answer and feedback that restoring and mounting
works at another system Ubuntu 12.04 , kernel 3.2.0, afs-client 1.6.17.

regards,
Andreas




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OpenAFS] Problem restore / mount volume

2016-06-21 Thread Jeffrey Altman
On 6/21/2016 9:08 AM, Andreas Ladanyi wrote:
>
>> The other question that comes to mind is, what are the ACLs on the root
>> directory of the user.test volume?   Does the current user have at least
>> lookup permission?
> yes, i mounted the restored volume to a folder "user.test" in my user
> afs home path. I also have a admin token. The user admin is in UserList
> of AFS server. So i should could do everything.

The system:administrator does not get implied lookup.  It has implied
admin permission.  The only think the system:administrator can do
without being on an ACL is query and set the ACL.

>> Finally, what version of the file server is hosting the volume?
> 1.6.1 , Solaris 10

The 1.6.1 file server does not permit FetchStatus on the root directory
of volumes for system:anyuser.  If you do not have tokens for a user on
the ACL, you won't be able to obtain access.

Use the system:administrator rights to query the ACL and set it as
necessary.

Jeffrey Altman

<>

smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OpenAFS] Problem restore / mount volume

2016-06-21 Thread Andreas Ladanyi
Hi Kostas,
> Hi,
>
> On my site, such behaviour by ls was the result of client AFSd cache
> being trashed, eg by cache partition running out of space. Maybe worth
> checking it out.
fs getcacheparms
AFS using 1187 of the cache's available 10 1K byte blocks.

Andreas



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OpenAFS] Problem restore / mount volume

2016-06-21 Thread Andreas Ladanyi
Hi,
> By any chance was the mount point created before the "user.test" volume
> was restored or was the volume restored, removed, and restored again?
No.
>
> I'm thinking the client might have cached a volume id for "user.test"
> that is no longer valid.  If that is the case, try
>
>   fs checkvolume
I tried. No success.
>
> The other question that comes to mind is, what are the ACLs on the root
> directory of the user.test volume?   Does the current user have at least
> lookup permission?
yes, i mounted the restored volume to a folder "user.test" in my user
afs home path. I also have a admin token. The user admin is in UserList
of AFS server. So i should could do everything.
>
> Finally, what version of the file server is hosting the volume?
1.6.1 , Solaris 10


Old situation on client:
==

vos examine user.test
user.test 536875364 RW1828930 K  On-line

vos listvldb user.test
user.test
   RWrite: 536875364
number of sites -> 1
   server xyz partition /vicepa RW Site

New situation on client:
==

fs mkmount doesnt work anymore.

fs mkmount -dir user.test -vol user.test
fs:'user.test': No such device



>
> Jeffrey Altman
>
>
regards,
Andreas



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OpenAFS] Problem restore / mount volume

2016-06-21 Thread Jeffrey Altman
On 6/21/2016 5:10 AM, Andreas Ladanyi wrote:
> 
>> What does the log of the afs fileserver tell you, on which the volume
>> resist?
> On afs server:
> 
> FileLog:
> fssync: breaking all call backs for volume 536875364
> 
> VolserLog:
> Volser: CreateVolume: volume 536875364 (user.test) created
>> Looks like the user.test volume is not online.
> vos examine user.test
> user.test 536875364 RW1828930 K  On-line
> 
> 
> regards,
> Andreas

By any chance was the mount point created before the "user.test" volume
was restored or was the volume restored, removed, and restored again?

I'm thinking the client might have cached a volume id for "user.test"
that is no longer valid.  If that is the case, try

  fs checkvolume

The other question that comes to mind is, what are the ACLs on the root
directory of the user.test volume?   Does the current user have at least
lookup permission?

Finally, what version of the file server is hosting the volume?

Jeffrey Altman




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OpenAFS] Problem restore / mount volume

2016-06-21 Thread Kostas Liakakis
Hi,

On my site, such behaviour by ls was the result of client AFSd cache
being trashed, eg by cache partition running out of space. Maybe worth
checking it out.

-K.

On 06/21/2016 12:10 PM, Andreas Ladanyi wrote:
>> What does the log of the afs fileserver tell you, on which the volume
>> resist?
> On afs server:
>
> FileLog:
> fssync: breaking all call backs for volume 536875364
>
> VolserLog:
> Volser: CreateVolume: volume 536875364 (user.test) created
>> Looks like the user.test volume is not online.
> vos examine user.test
> user.test 536875364 RW1828930 K  On-line
>
>
> regards,
> Andreas
>




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OpenAFS] Problem restore / mount volume

2016-06-21 Thread Andreas Ladanyi

> What does the log of the afs fileserver tell you, on which the volume
> resist?
On afs server:

FileLog:
fssync: breaking all call backs for volume 536875364

VolserLog:
Volser: CreateVolume: volume 536875364 (user.test) created
> Looks like the user.test volume is not online.
vos examine user.test
user.test 536875364 RW1828930 K  On-line


regards,
Andreas



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OpenAFS] Problem restore / mount volume

2016-06-21 Thread Lars Schimmer
On 2016-06-21 10:26, Andreas Ladanyi wrote:
> 
>> Try to salvage that volume/partition.
> Ok. No change.

What does the log of the afs fileserver tell you, on which the volume
resist?
Looks like the user.test volume is not online.


MfG,
Lars Schimmer
-- 
-
TU Graz, Institut für ComputerGraphik & WissensVisualisierung
Tel: +43 316 873-5405   E-Mail: l.schim...@cgv.tugraz.at
Fax: +43 316 873-5402   PGP-Key-ID: 0x4A9B1723





signature.asc
Description: OpenPGP digital signature


Re: [OpenAFS] Problem restore / mount volume

2016-06-21 Thread Andreas Ladanyi

> Try to salvage that volume/partition.
Ok. No change.




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OpenAFS] Problem restore / mount volume

2016-06-21 Thread Lars Schimmer
On 2016-06-21 09:30, Andreas Ladanyi wrote:
> Hi,
> 
> vos restore -server xyz -partition a -name user.test  -file
> /san/xyz_full_backup_volume
> 
> vos listvldb user.test:
> 
> user.test
> RWrite: 536875364
> number of sites -> 1
>server .. partition /vicepa RW Site
> 
> "fs mkmount -dir user.test -vol user.test" in my directory in afs rw path.
> 
> ls -la in the directory:
> 
> d??   ? ? ?  ? ? user.test
> 
> ls -la user.test:
> 
> ls: Could not access to user.test: No such device
> 
> Any ideas ?
> 

Try to salvage that volume/partition.

> Thanks and regards,
> 
> Andreas
> 
> 


MfG,
Lars Schimmer
-- 
-
TU Graz, Institut für ComputerGraphik & WissensVisualisierung
Tel: +43 316 873-5405   E-Mail: l.schim...@cgv.tugraz.at
Fax: +43 316 873-5402   PGP-Key-ID: 0x4A9B1723





signature.asc
Description: OpenPGP digital signature


[OpenAFS] Problem restore / mount volume

2016-06-21 Thread Andreas Ladanyi
Hi,

vos restore -server xyz -partition a -name user.test  -file
/san/xyz_full_backup_volume

vos listvldb user.test:

user.test
RWrite: 536875364
number of sites -> 1
   server .. partition /vicepa RW Site

"fs mkmount -dir user.test -vol user.test" in my directory in afs rw path.

ls -la in the directory:

d??   ? ? ?  ? ? user.test

ls -la user.test:

ls: Could not access to user.test: No such device

Any ideas ?


Thanks and regards,

Andreas




smime.p7s
Description: S/MIME Cryptographic Signature