Storage Virtualization

 Storage Virtualization

Storage virtualization basically combines/pools the storage that is available in various devices and keeps it as single storage. 

Types of Storage Virtualization

1. Block Virtualization

In block virtualization, we basically separate our logical storage from that of the physical so that the user/administrator can access without having to access the physical storage, basically doing this way helps the administrator in giving a lot of flexibility in managing different storage.

2. File Virtualization

In File virtualization, it basically removes the dependencies caused in accessing the data at file level to that of the location where they are actually present. This basically helps in overcoming the challenges faced with network-attached storage and they also help in optimizing the storage usage and also help us to do some file migrations in a non-disruptive way.


Let's create a virtual hard drive and use to share data among multiple VMs

Steps:-

1. Let's create a sparse file first. A sparse file is a specific type of file which aims to use file system space more efficiently by using metadata to represent empty blocks.

A sparse file can be created by either using truncate or dd utility in linux.

This will create a 1Gb sparse image test.img.    


2. After creating the file you can format it and directly mount it to use as your storage but to make it possible to do lots of disk operations, it first have to connect to loop device using losetup utility. To attach the file to your loop device use.


3.  To see all such file or block device connected to loop device use.

4. After creating the loop device its time to format it. To formate use mkfs utils

5. Now you can mount your formatted loop device to use as your virtual storage to share

6. once you put the data inside the device you can check its original occupied size by using du command.
    


7. Now convert IMG file to VDI file With Oracle VirtualBox.
8. Now let's use this volume to create vm. Move to oracle Virtual box and create new vm. while selecting the virtual hard disk, browse for the vdi file we created in previous step.

9. This storage can also be auto mounted on startup and shared easily.



Comments

Popular posts from this blog

AWS Services

Installing and attaching MYSQL database to EC2 instance

Cloud Computing and Virtualisation