Check cache with SSD is function or not

Discussion in 'Post-Deployment: Configuration and Setup' started by Machiasiaweb, Sep 6, 2015.

  1. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    182
    Hello,

    While checking with following KB.

    http://kb.odin.com/en/122639

    I could not find any 'read_cache_info' file

    I can see it have some indicator showing that it have Cache running via mn-top in below
    --
    Cache : 17373 + 2481Mb / 64Kb with checksums, 90343 + 11146 valid blocks [/pstorage/ssd0/client_cache]
    --
    and fstab is configed cache
    ---
    pstorage://pcstorage /pstorage/pcstorage fuse.pstorage cache=/pstorage/ssd0/client_cache,cachesize=19855 0 0
    ---
    But not sure is it cache is active or not.

    Could you please advise?

    Thanks!
     
  2. IP^__^

    IP^__^ Odin Team

    Messages:
    80
    Hello,

    Could you please post the output of:
    # ls -la /pstorage/pcstorage/pstorage-info/

    Btw, there are also another strings regarding the cache in "pstorage mnt-top" command:
    Cache IO: read 0B/s (3.47GB total, 0ops pending), write 0B/s (5.77GB total, 0ops pending)
    Cache hits: 0.0% (3.8% average)
     
  3. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    182
    Hello,

    I could not find the folder named pstorage-info

    It can be find following with 'mnt-top'
    ----
    Cache IO: read 0B/s (182.6GB total, 0ops pending), write 0B/s (7.22GB total, 0ops pending)
    Cache hits: 0.0% (4.5% average)
    ---
    Please advise.

    Thanks!
     
  4. IP^__^

    IP^__^ Odin Team

    Messages:
    80
    I'm sorry for confusing. The KB article is right - there is such directory, but it is not listed in the folder:
    # ls -la /pstorage/cluster/
    total 16
    drwx------ 1 root root 0 Aug 25 14:07 .
    drwxr-xr-x 6 root root 4096 Jul 20 14:31 ..
    drwx------ 1 root root 0 Oct 29 2014 .cpupools
    drwx------ 1 root root 0 Jul 20 12:42 crash
    drwx------ 1 root root 0 Mar 4 2013 del
    drwx------ 1 root root 0 Jun 21 2013 .drs
    drwx------ 1 root root 0 Jul 3 2014 iscsi
    drwx------ 1 root root 0 Feb 25 2014 iso
    drwx------ 1 root root 0 Mar 4 2013 private
    drwx------ 1 root root 0 Jul 27 17:50 pstorage-info
    -rwx------ 1 root root 1132 Aug 27 15:30 reslist
    -rwx------ 1 root root 25 Aug 27 15:30 reslist_filename
    drwx------ 1 root root 0 Jun 21 2013 .shaman
    drwx------ 1 root root 0 Sep 23 2013 .shaman-scripts
    -rwx------ 1 root root 4 Aug 25 14:06 test
    drwx------ 1 root root 0 Mar 4 2013 vmprivate
    But the direct access to this folder works:
    # ls -la /pstorage/cluster/.pstorage.info/
    total 0
    drwx------ 1 root root 0 Aug 25 14:07 .
    drwx------ 1 root root 0 Aug 25 14:07 ..
    -rwx------ 1 root root 0 Aug 25 14:07 abort_timeout
    -rwx------ 1 root root 0 Aug 25 14:07 build_version
    -rwx------ 1 root root 0 Aug 25 14:07 clientid
    -rwx------ 1 root root 0 Aug 25 14:07 clusterid
    -rwx------ 1 root root 0 Aug 25 14:07 clustername
    -rwx------ 1 root root 0 Aug 25 14:07 cluster_version
    -rwx------ 1 root root 0 Aug 25 14:07 cs_stats
    -rwx------ 1 root root 0 Aug 25 14:07 fstat
    -rwx------ 1 root root 0 Aug 25 14:07 fstat_lat
    -rwx------ 1 root root 0 Aug 25 14:07 iolat_cutoff
    -rwx------ 1 root root 0 Aug 25 14:07 io_locality
    -rwx------ 1 root root 0 Aug 25 14:07 iorequests
    -rwx------ 1 root root 0 Aug 25 14:07 iostat
    -rwx------ 1 root root 0 Aug 25 14:07 io_tweaks
    -rwx------ 1 root root 0 Aug 25 14:07 latency
    -rwx------ 1 root root 0 Aug 25 14:07 leases
    -rwx------ 1 root root 0 Aug 25 14:07 lic_status
    -rwx------ 1 root root 0 Aug 25 14:07 loglevel
    -rwx------ 1 root root 0 Aug 25 14:07 map_limit
    -rwx------ 1 root root 0 Aug 25 14:07 netlat_cutoff
    -rwx------ 1 root root 0 Aug 25 14:07 pid_stat
    -rwx------ 1 root root 0 Aug 25 14:07 read_cache
    -rwx------ 1 root root 0 Aug 25 14:07 read_cache_files
    -rwx------ 1 root root 0 Aug 25 14:07 read_cache_info
    -rwx------ 1 root root 0 Aug 25 14:07 requests
    -rwx------ 1 root root 0 Aug 25 14:07 tracing
    -rwx------ 1 root root 0 Aug 25 14:07 unaligned_io
    -rwx------ 1 root root 0 Aug 25 14:07 uptime
    -rwx------ 1 root root 0 Aug 25 14:07 use_unix_socket
    -rwx------ 1 root root 0 Aug 25 14:07 warn_iotimes

    Please try to access it directly.
     
  5. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    182
    Hello,

    Thanks for update.

    However I still could not find under /pstorage/cluster/

    Only I can find is following

    # ls -lah
    total 4.0K
    drwx------ 1 root root 0 Jun 22 18:35 .
    drwxr-xr-x 10 root root 4.0K Apr 14 11:48 ..
    drwx------ 1 root root 0 Apr 14 11:53 .cpupools
    drwx------ 1 root root 0 Apr 14 11:53 .drs
    drwx------ 1 root root 0 Apr 14 11:48 private
    drwx------ 1 root root 0 Apr 14 11:48 .shaman
    drwx------ 1 root root 0 Apr 14 11:48 .shaman-scripts
    drwx------ 1 root root 0 Jun 9 13:10 test3a
    drwx------ 1 root root 0 Apr 14 11:48 vmprivate

    Thanks!
     
  6. IP^__^

    IP^__^ Odin Team

    Messages:
    80
    This folder is hidden, please access it directly as suggested.
     
  7. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    182
    Hello,

    Thank you for you point.

    Now, I can access it.
    ---
    # cat /pstorage/cluster/.pstorage.info/read_cache_info
    path : /pstorage/ssd0/client_cache
    main size (Mb) : 17373
    boot size (Mb) : 2481
    block size (Kb) : 64
    checksum : enabled
    valid main blocks : 91678
    valid boot blocks : 15404
    ----
    Thanks!
     

Share This Page