Skip to content
This repository was archived by the owner on Apr 30, 2021. It is now read-only.
This repository was archived by the owner on Apr 30, 2021. It is now read-only.

useless error message #15

@l8gravely

Description

@l8gravely

When I run: lvcache status data
I get the fairly useless error message of:

need more than 1 value to unpack

So when I do run it with the actual VG/LV I get:

sudo lvcache status data/home
<Command '/sbin/lvs --noheadin...(57 more)' call_args {'bg': False, 'timeo...(476 more)>: starting process
<Command '/sbin/lvs --noheadin...(57 more)' call_args {'bg': False, 'timeo...(476 more)>: starting process
<Command '/sbin/lvs --noheadin...(57 more)' call_args {'bg': False, 'timeo...(476 more)>: starting process
<Command '/sbin/lvs --noheadin...(57 more)' call_args {'bg': False, 'timeo...(476 more)>: starting process
<Command '/sbin/lvs --noheadin...(64 more)' call_args {'bg': False, 'timeo...(476 more)>: starting process
<Command '/sbin/lvs --noheadin...(68 more)' call_args {'bg': False, 'timeo...(476 more)>: starting process
<Command '/sbin/lvs --noheadin...(70 more)' call_args {'bg': False, 'timeo...(476 more)>: starting process
<Command '/sbin/lvs --noheadin...(57 more)' call_args {'bg': False, 'timeo...(476 more)>: starting process
<Command '/sbin/lvs --noheadin...(54 more)' call_args {'bg': False, 'timeo...(476 more)>: starting process
<Command '/sbin/dmsetup status...(22 more)' call_args {'bg': False, 'timeo...(476 more)>: starting process
+-----------------------+-------------------+
| Field | Value |
+-----------------------+-------------------+
| cached | True |
| size | 590558003200 |
| cache_lv | homecacheLV |
| cache_lv_size | 53687091200 |
| metadata_lv | homecacheLV_cmeta |
| metadata_lv_size | 134217728 |
| cache_block_size | 128 |
| cache_utilization | 819200/819200 |
| cache_utilization_pct | 100.0 |
| demotions | 4024 |
| dirty | 0 |
| end | 1153433600 |
| features | 1 |
| md_block_size | 8 |
| md_utilization | 2443/32768 |
| md_utilization_pct | 7.45544433594 |
| promotions | 4024 |
| read_hits | 6214751 |
| read_misses | 2514189 |
| segment_type | cache |
| start | 0 |
| write_hits | 22841584 |
| write_misses | 3841539 |
+-----------------------+-------------------+

Which is fine, but the extra output is annoying when I haven't asked for verbose. I'd also like it to just find ALL LVs in my VG and display them, if it can.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions