From: Ross S. W. W. <RW...@me...> - 2009-08-25 16:49:30
|
You can add and remove any target via ietadm whether they are defined in ietd.conf or not. I do not understand what the OP is trying to accomplish. You can add and remove backing store LUNs for targets via ietadm, but you can't create or modify the backing stores themselves. This needs to be done using the appropriate tools, fdisk/sfdisk, lvm, etc. Process is: 1) All initiators log out of the target 2) Remove the LUN from the target (using ietadm) 3) Reconfigure the backing store for that LUN (using fdisk or lvm etc) 4) Re-add the LUN to the target with the new modified backing store (using ietadm) Hope that helps. -Ross ________________________________ From: Owen Hau [mailto:ow...@he...] Sent: Tuesday, August 25, 2009 12:39 PM To: ch...@gm...; isc...@li... Subject: Re: [Iscsitarget-devel] create and delete partitions What I know is ietadmin cannot remove a target configed in ietd.conf You only can remove a target created with ietadmin –op new. Please correct me if I’m wrong. From: ch...@gm... [mailto:ch...@gm...] Sent: Tuesday, August 25, 2009 4:49 PM To: isc...@li... Subject: [Iscsitarget-devel] create and delete partitions hello , I have some questions about ietadmin I can't delete old partition and create new i read man but I cant do this I can't understand what is tid and syntax of writing commands I post my all configuration and can anybody help me with command ietadm version 0.4.15 tid:3 name:iqn.2008-11.local.esm. storage.lun0.partition3 tid:2 name:iqn.2008-08.local.esm:storage.lun0.partition2 tid:1 name:iqn.2008-08.local.esm:storage.lun0.partition1 Target iqn.2008-08.local.esm:storage.lun0.partition1 Lun 0 Path=/dev/cciss/c0d0p1,Type=fileio IncomingUser test test Target iqn.2008-08.local.esm:storage.lun0.partition2 #Export MSA20 LUN0 Lun 1 Path=/dev/cciss/c0d0p2,Type=fileio IncomingUser test test Target iqn.2008-11.local.esm.storage.lun0.partition3 #Special partition for library archive Lun 2 Path=/dev/cciss/c0d0p3,Type=fileio IncomingUser test test I use this commands ietadm --op delete --tid $TID --lun $LUN ietadm --op new --tid $TID --lun $LUN --params $PARAMS but I don't understand syntax of use this commands thanks for any help P.S. I'm new in this technology any documentation is great for me -- პატივისცემით ილია უმუდუმოვი ტელ : 877-900-255 -- პატივისცემით ილია უმუდუმოვი ტელ : 877-900-255 ______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof. |