Skip to main content

Posts

Showing posts from December, 2025

How to create Storage array for iscsi disk on a linux machine

 Use Case: I have to create a KVM cluster using GFS Datastore. #Create a Ubuntu Linux to act as storage server array: # Make sure the system have enough resources(Storage,MEM&CPU) #Install TargetCLI tool:        apt install targetcli-fb -y #Create LUN:  mkdir -p /iscsi_disks  fallocate -l 600G /iscsi_disks/disk01.img  targetcli        /backstores/fileio create disk01 /iscsi_disks/disk01.img 600G        /iscsi create iqn.2025-01.com.example:storage1       /iscsi/iqn.2025-01.com.example:storage1/tpg1/luns create /backstores/fileio/disk01       /iscsi/iqn.2025-01.com.example:storage1/tpg1/acls create iqn.2025-01.com.example:client1       /iscsi/iqn.2025-01.com.example:storage1/tpg1/acls create iqn.2025-01.com.example:client2      /iscsi/iqn.2025-01.com.example:storage1/tpg1/acls create iqn.2025-01.com.example:client3 #Allow all network to acce...