Це відео не доступне.
Перепрошуємо.

[06.01] iSCSI target and LUN config

Поділитися
Вставка
  • Опубліковано 15 сер 2024
  • In this video I am setting up an iSCSI target. The target can be imagined as a server providing a block level storage. I walk through how to configure the server or target and how to limit access to the storage to ensure only the designated virtual machine has access to that storage. As iSCSI is not a shared storage that steps is important to ensure data consistency. I will walk through how to secure the storage with CHAP, Challenge Handshake Authorization Protocol, and how to ensure the storage survives a reboot of the VM. The video, although part of my kubernetes series, can be used as stand alone and used for configuring an iSCSI storage and making it available to a VM or computer.
    Commands:
    10:41 sudo losetup --offset $((512*2048)) --sizelimit $((512*20967424)) --show --find /mnt/volume6/kubedata-prod/openebs/k8s-master.img
    12:16 sudo mkfs.ext4 /dev/loop0
    13:15 sudo mount -o loop,offset=$((512*2048)) /full/path/to/imagefile.img /mnt/testdisk
    27:30 sudo iscsiadm -m discovery -t st -p <IP ADDRESS OF YOUR iSCSI TARGET>
    30:06 sudo iscsiadm -m node -T <iqn OF YOUR TARGET> -p <IP ADDRESS OF YOUR iSCSI TARGET> -l
    31:25 sudo mount -o loop,offset=1040576 /dev/sdb /mnt/iscsi
    Sources:
    Mounting a target at bootup/restart - github.com/ope...
    Helpful iSCSI commands - support.citrix...
    Removing an iSCSI target support.unitre...
    Setup iSCSI Server (Target) and Client (Initiator) - www.tecmint.co...
    Chapters:
    0:00 Introduction
    1:43 what i will cover in this video
    2:15 what is iSCSI
    4:42 install iSCSI server software
    5:20 setting up iSCSI backing storage
    8:50 creating partitions, file system and formatting image files
    12:50 Verify the correct setup of the image files
    15:30 Configuring iSCSI targets with CHAP and test its functionality
    23:00 Preparing the iSCSI initiators
    27:17 Test connection to targets
    30:50 Prepare and mount iSCSI target permanently to the node
    32:30 persistent mounting to the node
    34:46 Wrap up
    35:12 What coming in part 2 of this video

КОМЕНТАРІ • 2

  • @janiel471
    @janiel471 Місяць тому

    very details and good approach. Thank you very much. Learn a lot from this. I'm having the same thought for using this approach in my experiment system :D