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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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:
    916
    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
    
     
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,669
    Likes Received:
    73
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    May I know what virtualization technology your VM is on?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,396
    Likes Received:
    1,605
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...
Similar Threads - tell
  1. WebHostPro
    Replies:
    3
    Views:
    776

Share This Page