Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to tell if SSD or HDD on a VM?

Discussion in 'Workarounds and Optimization' started by Dezdan, Nov 5, 2017.

  1. Dezdan

    Dezdan Member

    Joined:
    Jan 28, 2013
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Is there a for sure way to tell if my VM is running an HDD or SSD? I want to make sure my provider isn't hosing me and I want to tune my VM.

    I know I can run:
    Code:
    [root@server ~]# cat /sys/block/sda/queue/rotational
    And that should return 1 for HDD and 0 for SSD, though that might not always work on a VM. Are their any other methods that will work on a VM?
     
  2. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    920
    Likes Received:
    13
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    I can only think of a speed test, run the below commands, the answer should appear really quickly like < 2seconds if drives are SSD if not around 10 sec.
    Code:
    time for i in `seq 1 1000`; do
    >     dd bs=4k if=/dev/sda count=1 skip=$(( $RANDOM * 128 )) >/dev/null 2>&1;
    > done
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,888
    Likes Received:
    90
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    May I know what virtualization technology your VM is on?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,827
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You may find more user-feedback to this type of question on a website such as StackOverflow. For instance, here's a link you may find helpful:

    How to know if a disk is an SSD or an HDD

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...
Similar Threads - tell
  1. WebHostPro
    Replies:
    3
    Views:
    1,540

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice