[06.01] iSCSI target and LUN config
Автор: ILoveOpenSourceSoftware
Загружено: 2023-10-02
Просмотров: 715
Описание:
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 - https://github.com/open-iscsi/open-iscsi
Helpful iSCSI commands - https://support.citrix.com/article/CT...
Removing an iSCSI target https://support.unitrends.com/hc/en-u...
Setup iSCSI Server (Target) and Client (Initiator) - https://www.tecmint.com/setup-iscsi-t...
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
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: