Skip to content

plfs_query not working for physical to logical? #350

@johnbent

Description

@johnbent

All,

Normally I use plfs_query to get a list of the droppings within a container. I think at one point Brett said that the consultants wanted it to work in reverse so that they could query a plfs physical dropping and get the logical path to the plfs file. Recently, I thought I needed this functionality as well but it appears to be no longer working:

[john.bent@lola-12-ib ~]$ plfs_query /mnt/lustre1/.plfs__shadow///passwd/hostdir.0/dropping.index.1397748223.108633.lola-12-ib.149851
Error: /mnt/lustre1/.plfs__shadow///passwd/hostdir.0/dropping.index.1397748223.108633.lola-12-ib.149851 is not in a PLFS mountpoint configured with 'workload n-1' or 'workload n-n' nor is it a physical dropping.

You can see that this is a valid dropping and that plfs_query from logical to physical works:

plfs_query /tmp/iod_plfs/passwd 
Physical file locations:
/mnt/lustre1/.plfs__canonical//passwd
/mnt/lustre1/.plfs__shadow///passwd/hostdir.0
/mnt/lustre1/.plfs__canonical//passwd/meta
/mnt/lustre1/.plfs__canonical//passwd/hostdir.0
/mnt/lustre1/.plfs__canonical//passwd/.plfsaccess113918400
/mnt/lustre1/.plfs__shadow///passwd/hostdir.0/dropping.data.1397748223.108633.lola-12-ib.149851
/mnt/lustre1/.plfs__shadow///passwd/hostdir.0/dropping.index.1397748223.108633.lola-12-ib.149851
/mnt/lustre1/.plfs__canonical//passwd/meta/3075.3075.1397748223.128614.lola-12-ib
/mnt/lustre1/.plfs__canonical//passwd/version-tag.2.5.0rc1-dat.1.0-chk.4294967295

Here is the plfs_check_config:

[john.bent@lola-12-ib tools]$ plfs_check_config 
Config file /etc/plfsrc correctly parsed:
Num Hostdirs: 16
Threadpool size: 8
Write index buffer size (mbs): 16
Read index buffer size (mbs): 64
Num Mountpoints: 1
Lazy Stat: 1
Lazy Droppings: 1
Compress Contiguous: 0
Test Metalink: 0
Mount Point /tmp/iod_plfs :
    Expected Workload shared_file (N-1)
    Backends: canonical=1, shadow=4, total=5
    Backend: /mnt/lustre1/.plfs__canonical CANONICAL
    Backend: /mnt/lustre1/.plfs__shadow SHADOW
    Backend: /mnt/lustre4/.plfs__shadow SHADOW
    Backend: /mnt/lustre3/.plfs__shadow SHADOW
    Backend: /mnt/lustre2/.plfs__shadow SHADOW
    Glib buffer size (mbs): 16
    Checksum: 4294967295
SUCCESS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions