From the course: Linux System Engineer: iSCSI Storage Area Networks

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Remove a device from a target

Remove a device from a target

From the course: Linux System Engineer: iSCSI Storage Area Networks

Start my 1-month free trial

Remove a device from a target

- [Instructor] We're going to spend a moment talking about undoing what we've done. If we want to remove a drive from a target there are a few steps to follow in order to get the job done correctly. For this video make sure both rhhost1 and rhhost2 VMs are booted, log into RH host two and open a terminal. In order to remove a drive from a target we need to remove all references to the device on both the initiator and target. First remove the device from the initiator and then remove the device from the target. It might be worth noting that we need to think about what is using the iSCSI device. If the device is part of an LVM volume group we would need to move the data off of it with pvmove before doing a VG reduce or data will be lost. If the raw device was included in a RAID we need to add a drive and fail the raw device so the RAID would rebuild on the new drive. In the case of a raw device that's not used in LVM or mounted, we might need to run sudo space blockdev space dash dash…

Contents