Skip to main content

XCP-ng Storage Types Explained

In this video, I explain the different types of storage that are used by Xen hypervisor. Mostly the documentation of XCP-ng and Xen Orchestra is used. Take everything with a grain of salt because everything is used on older hardware and not at all enterprise grated. But enjoy the video and try to test it for yourself. The future me has discovered that with a 10Gbit network my systems can not keep up with the io on the network.



 ▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬

00:00 - Intro 00:19 - A look at the XCP-ng documentation 01:51 - Thin Thick 05:47 - Preparing the shared network resources on TrueNAS CORE 12:40 - Adding Shared SR to XCP-ng host 17:17 - Comparing the storage types with some stats 23:48 - End word The link to the documentation used. https://xcp-ng.org/docs/storage.html#storage-types Other videos that I have made can help. The first VM created with XOCE https://youtu.be/vuYvyD0GoBQ Adding Local Storage to XCP-ng https://youtu.be/4KI9cssTSLs The Script that I used to create a load on the different Storage Resources with reading and write actions.
#seq read big blocks echo "seq read big blocks" echo "#####################################################################" fio --name XCPTEST --eta-newline=5s --filename=fio-tempfile.dat --rw=read --size=500m --io_size=10g --blocksize=1024k --ioengine=libaio --f sync=10000 --iodepth=32 --direct=1 --numjobs=1 --runtime=60 --group_reporting
#seq write big blocks echo "seq write big blocks" echo "#####################################################################" fio --name XCPTEST --eta-newline=5s --filename=fio-tempfile.dat --rw=write --size=500m --io_size=10g --blocksize=1024k --ioengine=libaio -- fsync=10000 --iodepth=32 --direct=1 --numjobs=1 --runtime=60 --group_reporting
# random 4k read echo "random 4k read" echo "#####################################################################" fio --name XCPTEST --eta-newline=5s --filename=fio-tempfile.dat --rw=randread --size=500m --io_size=10g --blocksize=4k --ioengine=libaio -- fsync=1 --iodepth=1 --direct=1 --numjobs=1 --runtime=60 --group_reporting
# mixed random 4k read and write with sync echo "mixed random 4k read and write with sync" echo "######################################################################################################################" fio --name XCPTEST --eta-newline=5s --filename=fio-tempfile.dat --rw=randrw --size=500m --io_size=10g --blocksize=4k --ioengine=libaio --fs ync=1 --iodepth=1 --direct=1 --numjobs=1 --runtime=60 --group_reporting

Comments

Popular posts from this blog

How to migrate a dataset from one pool to another in TrueNAS CORE ?

The migration steps. 1. Stopping the services that use the dataset. (recommended). 2. Replicating the dataset to the new pool. 3. Verify that all data is replicated. 4. Put in operation the new dataset. 5. Delete the old dataset when satisfied (or not).   The video tutorial can be found by clicking on the title or the picture below. How to migrate a dataset from one pool to another in TrueNAS CORE 1. Stopping the services that use the dataset (recommended). Go to the services tab and what I do if not certain of which services are used by the dataset I let only running the services from which I am cetain that they do not use the dataset. Also, control jails and Virtual Machines to be sure that they do not use the dataset. In the video I do not stop the services to show it is possible. 2. Replicate the dataset to the new pool. a. go to Tasks --> Replication Tasks b. add new replication task c. select source location (example select on this system source /mnt/volume1/VM iso) d. select

Using docker on FreeNas (TrueNAS Core)

In this tutorial we will go over the installation of docker in FreeNas (if using jails is not enough). The first step will be to install a host for docker in a virtual machine. In the documentation for FreeNas they propose to use Ubuntu. My actual version of FreeNAS is FreeNAS-11.3-U4.1.(now TrueNAS CORE 12). The video tutorial can be found here https://hometinylab.blogspot.com/2021/01/follow-up-on-using-docker-on-truenas.html  . The major job will be to install a virtual machine on the FreeNAS platform. Select Virtual Machines in the FreeNAS menu. In the list you will see the existing docker instance running. Know click on the ADD button and we will create a second one for this tutorial. Step 1 Because we are using Ubuntu 20.04 has guest operating system we will select linux . Know we need to name the machine, for this tutorial it will be dockerblog . It is always handy to use the description field docker on Ubuntu for blog tutorial . All what follows we will keep has is.  Click Next

How to fix a degraded pool state in TrueNAS ?

The title could also be``How to change a bad drive in TrueNAS?`` and in my case ``How to upgrade the pool storage space?`` but had it the end it was ``How to trouble shoot during this process?``.  The documentation I used can be found had  https://www.ixsystems.com/documentation/freenas/11.2/storage.html#replacing-a-failed-disk How to fix a degraded pool state in TrueNAS ? In my homelab environment I am using, one off the disks is bad in my TrueNAS. I had to detach the faulty drive to be able to boot the server up again. To replace the disk you must have a replacement disk from the same size or bigger. Because I have to upgrade my pool to a bigger capacity I will change all my 2TB drives to 6TB drives but for obvious reasons I will begin with the bad one: ``I like my data``. Before replacing the drive I will scrub the pool and set the faulty drive offline (which was not possible because the drive was not connected). Replace the drive and adding it again to the pool has a replacement. T