Knowledge base
How to mount a new OVS in operating system?
Posted by Piotr Malendo on 27.03.2013 20:25

When you add a new OVS disk in the admin panel it is still necessary to make appropriate configuration changes in the operating system.

 

Linux

If you are using Linux OS, then your recently added OVS will be automatically detected and made ‚Äč‚Äčavailable in the form of a device file called /dev/sdb (or using the next available letter of the alphabet, i.e. /dev/sdc, /dev/sdd). New drive can be identified by looking at the kernel log (using less /var/log/kern.log or dmesg shell commands), where we can find ID of a new drive.

The first thing you need to do is to create (with your own favorite program - fdisk, parted or cfdisk) a partition. In our example, we are going to use a graphical editor called "cfdisk".

  1. Using command cfdisk /dev/sdb enter the editor. 


     
  2. In a position where you see the description of Free Space we have an information about the space we can use. In order to use it we click [New] | [Primary], here we enter the size we are interested in (Enter, if you want to use it all), click [Write] and confirm Yes. Leave the program with [Quit].
     
  3. At this point, we should decide whether we are going to use an extra layer on the partition (called LVM https://wiki.ubuntu.com/Lvm), that will allow us to manage its size and merge several partitions into volumes. To just be able to use the hard drive, it is sufficient to create only a file system. We can do this using the mkfs tool. In order to create the default Linux file system ext4 run a command: mkfs.ext4 -L my-new-disk /dev/sdb1
     
  4. What is left is to mount the newly created file system: mkdir /mnt/my-new-disk && mount /dev/disk/by-label/my-new-disk/mnt/my-new-drive.
     
  5. In order to have our OVS drive always available after restarts of the OCI, we should add to the file /etc/fstab the following entry: /dev/disk/by-label/my-new-disk/mnt/my-new-drive ext4 defaults,noatime 0 1.

 

Windows

In case of using Windows OS, to mount new OVS disk we need to enter the Server Manager window at the system tray and then expand the tab Storage/Disk Management. In the list of drives - click using right mouse button on the new unmounted storage and select New Simple Volume. After the above steps, intuitive wizard will guide you through all the steps required to create the NTFS file system and mount the drive, which will be available under the next free letter, such as D:.

(1 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.