Sample Header Ad - 728x90

How to expand an iSCSI lun with targetcli on CentOS7?

1 vote
1 answer
8207 views
I have a CentOS 7 machine with iSCSI configured. see ls output from targetcli below. I want to add disk02 to lun0 so that to the iSCSI client can see a total 869.16GB instead of 392.2GB Question: Is it possible to have lun0 use the combined capacity of disk0 and disk1 and if so how to do that with targetcli on CentOS7. /> ls o- / ....................................................................................................... [...] o- backstores ............................................................................................ [...] | o- block ................................................................................ [Storage Objects: 2] | | o- disk01 ...................................................... [/dev/sdb4 (392.2GiB) write-thru activated] | | o- disk02 ..................................................... [/dev/sda (476.9GiB) write-thru deactivated] | o- fileio ............................................................................... [Storage Objects: 0] | o- pscsi ................................................................................ [Storage Objects: 0] | o- ramdisk .............................................................................. [Storage Objects: 0] o- iscsi .......................................................................................... [Targets: 1] | o- iqn.2014-08.com.exmaple:nuc .................................................................... [TPGs: 1] | o- tpg1 ................................................................................ [gen-acls, no-auth] | o- acls ........................................................................................ [ACLs: 0] | o- luns ........................................................................................ [LUNs: 1] | | o- lun0 ..................................................................... [block/disk01 (/dev/sdb4)] | o- portals .................................................................................. [Portals: 1] | o- 0.0.0.0:3260 ................................................................................... [OK] o- loopback ....................................................................................... [Targets: 0] />
Asked by ams (1398 rep)
Oct 15, 2014, 04:43 PM
Last activity: Aug 24, 2022, 05:58 AM