{"id":768,"date":"2026-04-29T16:30:40","date_gmt":"2026-04-29T15:30:40","guid":{"rendered":"https:\/\/guillaumesblog.net\/?p=768"},"modified":"2026-04-29T16:49:35","modified_gmt":"2026-04-29T15:49:35","slug":"cross-identify-cloud-storage-with-instance-storage","status":"publish","type":"post","link":"https:\/\/guillaumesblog.net\/index.php\/cross-identify-cloud-storage-with-instance-storage\/","title":{"rendered":"Cross identify cloud storage with instance storage"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The other day, as I was clearing out storage on a VM and consolidating logical volumes into a lesser number of physical volumes, I ran into an issue where there was no way for me to identify to which cloud block storage my freshly freed \/dev\/sdc disk did correspond to&#8230; So how was I supposed to know which block to delete in the console and save money?<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"483\" height=\"574\" src=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-9.png\" alt=\"\" class=\"wp-image-788\" srcset=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-9.png 483w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-9-252x300.png 252w\" sizes=\"auto, (max-width: 483px) 85vw, 483px\" \/><\/figure>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">Turned out that I was using the &#8216;paravirtualisation&#8217; option to attach the block device, and for that reason I was not able to establish a cross reference between the block volume and my VM device name. If you read this article and do know how to do it please let me know in the comments&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Briefly before I carry on, in this article I discuss concepts belonging to the Linux Logical Volume Management (LVM). It is a more flexible approach to managing disk space as it allows for resizing partitions on the fly, creating snapshots, and combining multiple physical disks into one large virtual one. Please read <a href=\"https:\/\/www.linuxjournal.com\/content\/mastering-linux-disk-management-lvm-and-disk-partitioning\">here<\/a> if you are unfamiliar with it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Back to the issue now, and the solution I offer comes with the hidden benefit of a performance increase. If you want to delete storage resources without triggering yourself an anxiety panic, here is the way to do it:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mount block devices in ISCSI mode, they default to paravirtualised, change it like so<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"727\" src=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-1.png\" alt=\"\" class=\"wp-image-774\" srcset=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-1.png 850w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-1-300x257.png 300w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-1-768x657.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">if you happen to use any supported cloud platform images <a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/Compute\/References\/images.htm\">here<\/a>, the cloud agent would do the ISCSI connection for you. This is not my case in this example as I am using RHEL 8 so let&#8217;s run the commands together.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">My VM shows two attached block volumes<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1020\" height=\"814\" src=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-2.png\" alt=\"\" class=\"wp-image-776\" srcset=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-2.png 1020w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-2-300x239.png 300w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-2-768x613.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">but the command line only shows my boot volume.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"520\" height=\"148\" src=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-3.png\" alt=\"\" class=\"wp-image-777\" srcset=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-3.png 520w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-3-300x85.png 300w\" sizes=\"auto, (max-width: 520px) 85vw, 520px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Thankfully, the console offers the ISCSI commands to run, very handy!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"188\" src=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-4-1024x188.png\" alt=\"\" class=\"wp-image-780\" srcset=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-4-1024x188.png 1024w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-4-300x55.png 300w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-4-768x141.png 768w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-4-1536x282.png 1536w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-4-1200x220.png 1200w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-4.png 1657w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">but before being able to do that so need to verify you have the correct packages installed, this one in particular <em>iscsi-initiator-utils<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"76\" src=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-8.png\" alt=\"\" class=\"wp-image-786\" srcset=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-8.png 792w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-8-300x29.png 300w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-8-768x74.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s give it a go then, copy paste commands from the console and stick it in your terminal<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo iscsiadm -m node -o new -T iqn.2015-12.com.oracleiaas:cf78e312-3a91-4a24-aa86-2ec0f5756dcd -p 169.254.2.6:3260\nsudo iscsiadm -m node -o update -T iqn.2015-12.com.oracleiaas:cf78e312-3a91-4a24-aa86-2ec0f5756dcd -n node.startup -v automatic\nsudo iscsiadm -m node -T iqn.2015-12.com.oracleiaas:cf78e312-3a91-4a24-aa86-2ec0f5756dcd -p 169.254.2.6:3260 -l<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Block volumes are now available inside the VM! Ready to be partitioned and formatted \ud83d\ude42<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"529\" height=\"193\" src=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-5.png\" alt=\"\" class=\"wp-image-783\" srcset=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-5.png 529w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-5-300x109.png 300w\" sizes=\"auto, (max-width: 529px) 85vw, 529px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s identify the ids of these disks. There is a good guide <a href=\"https:\/\/docs.redhat.com\/en\/documentation\/red_hat_enterprise_linux\/8\/html\/managing_storage_devices\/configuring-an-iscsi-initiator_managing-storage-devices#monitoring-an-iscsi-session-using-the-iscsiadm-utility_configuring-an-iscsi-initiator\">here<\/a> about the available iscsi utilities. I run the command below I am now able to see which iqn belong to which device name.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"171\" src=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-6-1024x171.png\" alt=\"\" class=\"wp-image-784\" srcset=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-6-1024x171.png 1024w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-6-300x50.png 300w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-6-768x128.png 768w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-6.png 1050w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">and cross check in the cloud tenancy that sdc belongs to &#8216;block1&#8217;, in this instance.  Beware that the mapping between device name and block storage can change, in order to maintain consistency across reboots it is necessary to set up correctly the \/etc\/fstab file, please see <a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/Block\/References\/fstaboptions.htm\">here<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-7.png\" alt=\"\" class=\"wp-image-785\" srcset=\"https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-7.png 1024w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-7-300x139.png 300w, https:\/\/guillaumesblog.net\/wp-content\/uploads\/2026\/04\/image-7-768x356.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">See you!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The other day, as I was clearing out storage on a VM and consolidating logical volumes into a lesser number of physical volumes, I ran into an issue where there was no way for me to identify to which cloud block storage my freshly freed \/dev\/sdc disk did correspond to&#8230; So how was I supposed &hellip; <a href=\"https:\/\/guillaumesblog.net\/index.php\/cross-identify-cloud-storage-with-instance-storage\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Cross identify cloud storage with instance storage&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-768","post","type-post","status-publish","format-standard","hentry","category-conversation"],"_links":{"self":[{"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/posts\/768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/comments?post=768"}],"version-history":[{"count":11,"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/posts\/768\/revisions"}],"predecessor-version":[{"id":789,"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/posts\/768\/revisions\/789"}],"wp:attachment":[{"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/media?parent=768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/categories?post=768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guillaumesblog.net\/index.php\/wp-json\/wp\/v2\/tags?post=768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}