Как удалить wwn targetcli
Материал из ALT Linux Wiki
# targetcli Warning: Could not load preferences file /root/.targetcli/prefs.bin. targetcli shell version 2.1.fb35 Copyright 2011-2013 by Datera, Inc and others. For help on commands, type 'help'. /> qla2xxx/ info Fabric module name: qla2xxx ConfigFS path: /sys/kernel/config/target/qla2xxx Allowed WWN types: naa Allowed WWNs list: naa.5001438004c39414, naa.5001438004c39416 Fabric module features: acls Corresponding kernel module: tcm_qla2xxx /> ls o- / . [. ] o- backstores . [. ] | o- block . [Storage Objects: 0] | o- fileio . [Storage Objects: 0] | o- pscsi . [Storage Objects: 0] | o- ramdisk . [Storage Objects: 0] o- iscsi . [Targets: 0] o- loopback . [Targets: 0] o- qla2xxx . [Targets: 0] o- vhost . [Targets: 0] /> qla2xxx/ create naa.5001438004c39416 Created target naa.5001438004c39416. /> ls o- / . [. ] o- backstores . [. ] | o- block . [Storage Objects: 0] | o- fileio . [Storage Objects: 0] | o- pscsi . [Storage Objects: 0] | o- ramdisk . [Storage Objects: 0] o- iscsi . [Targets: 0] o- loopback . [Targets: 0] o- qla2xxx . [Targets: 1] | o- naa.5001438004c39416 . [gen-acls] | o- acls . [ACLs: 0] | o- luns . [LUNs: 0] o- vhost . [Targets: 0] /> qla2xxx/ create naa.5001438004c39414 Created target naa.5001438004c39414. /># echo "- - -" > /sys/class/scsi_host/host*/scanLinux SCSI Target [1] SCST [2] HOWTO [3]
Как удалить wwn targetcli
Рассмотренный ранее пример скриптового решения для автоматизации периодического полного резервного копирования фермы выполняет свою задачу и применительно к SharePoint Server 2016, и до некоторых пор у нас всё было хорошо. Однако, очередная проверка успешности создания резервных копий показала наличие проблемы, возникающей со службой поиска и приводящей к созданию неполной резервной копии фермы. В этой заметке мы рассмотрим шаги, которые были предприняты для решения этой проблемы. Читать далее.
Решение проблемы Shared Printer Availability Alert : The print spooler failed to share printer. Error 2114. The printer cannot be used by others on the network
02.07.2020 Автор:Алексей Максимов
5 309 Просмотров Комментариев нетНа некоторых серверах на базе Windows Server 2012 R2 с ролью сервера печати была замечена проблема со службой "Print Spooler", возникающая плавающим образом. На этапе загрузки сервера от системы мониторинга SCOM приходила масса оповещений однотипного характера " Alert: Shared Printer Availability Alert ". Читать далее.
Ошибка "SoapException: Fault occurred" при синхронизации WSUS на Windows Server 2012 R2 с онлайн каталогом Windows Update
28.08.2019 Автор:Алексей Максимов
6 522 Просмотров 1 КомментарийПри использовании WSUS на базе Windows Server 2012 R2 было замечено, что в последнее время наблюдались временные отказы при синхронизации метаданных с онлайн службой Windows Update. Синхронизация не работала несколько дней в Июле, затем в конце Июля опять заработала. И вот теперь ситуация снова повторяется, однако, судя по всему, рассчитывать на самовосстановление сервиса уже не приходится. Читать далее.
Ошибка targetcli "WWN not valid as: naa" при попытке добавления в ACL конфигурации Linux-IO FC Target хостов FC Initiator с WWPN от виртуальных машин Hyper-V Gen2
20.06.2019 Автор:Алексей Максимов
4 151 Просмотров Комментариев нетВ одной из прошлых заметок мы уже упоминали о такой штуке, как Linux-IO (LIO) и показывали пример пакетного использования утилиты targetcli, которая используется для управления конфигурацией FC Target. Использование этой утилиты в типичном сценарии, когда хосты, выступающие в роли FC Initiator, являются физическими и имеют физические адаптеры FC HBA, не вызывает проблем. Однако, если в качестве Initiator мы попробуем добавить в конфигурацию LIO вместо физических FC HBA, виртуальные HBA из виртуальных машин Hyper-V, то здесь нам targetcli может выдать ошибку " WWN not valid as: naa ". В этой заметке мы поговорим о том, почему возникает такая ошибка и как её обойти. Читать далее.
Ошибка IIS "HTTP Error 500.19 - Internal Server Error" (DynamicCompressionModule 0x8007007e) после удаления роли Windows Server Update Services (WSUS) на Windows Server 2012 R2
28.05.2019 Автор:Алексей Максимов
6 486 Просмотров 11 комментариевЕсли на сервере с ОС Windows Server 2012 R2 и установленной ролью Windows Server Update Services (WSUS) в конфигурации веб-сервера IIS помимо сайта WSUS Administration имеются какие-либо другие сайты, то после удаления роли WSUS эти сайты могут перестать работать. Рассмотрим эту проблему и способ её решения. Читать далее.
Ошибка установки AppFabric 1.1 на Windows Server 2012 R2 "AppFabric installation failed because installer MSI returned with error code : 1603"
17.05.2019 Автор:Алексей Максимов
4 116 Просмотров 1 КомментарийПри развёртывании сред тестирования и разработки для SharePoint Server 2016 может использоваться конфигурация, когда все нужные разработчику компоненты SharePoint Server и SQL Server устанавливаются в рамках одного виртуального сервера. В качестве одной из предварительно требуемых компонент для SharePoint Server 2016 является пакет Windows Server AppFabric (AppFabric 1.1 for Windows Server). Но в обозначенном окружении может возникнуть проблема с установкой этого пакета в том случае, если перед установкой AppFabric на сервере Windows Server 2012 R2 ранее были установлены серверные компоненты SQL Server, например, SQL Server 2016 Express. Читать далее.
Ошибка Workflow Manager "The provided signing certificate is invalid according to its expiration claims" в SharePoint 2013. Обновляем Self-Signed сертификат для служб Service Bus и Workflow Manager
06.04.2019 Автор:Алексей Максимов
4 581 Просмотров 3 комментария
В рассматриваемой ранее процедуре развёртывания Workflow Manager 1.0 для его последующей интеграции в SharePoint Server 2013 нами была использована схема с генерацией само-подписанного сертификата, который используется для веб-сервисов Workflow Manager (WFM) и Service Bus (SB). С тех пор прошло много времени, и наш экземпляр WFM всё это время выполнял свои задачи вполне себе штатно, пока не наступил момент, когда все новые рабочие процессы дружно перестали выполняться. Забегая вперёд, можно сказать, что это ещё одна история о том, как отсутствие проактивного мониторинга срока действия важного цифрового сертификата может в перспективе создать трудности, которые потом придётся героически преодолевать. Читать далее.
Попытка резервного копирования фермы SharePoint 2013 приводит к исключению Backup-SPFarm : An update conflict has occurred, and you must re-try this action …SPUpdatedConcurrencyException
05.04.2019 Автор:Алексей Максимов
1 663 Просмотров Комментариев нет
Ранее мы рассматривали пример скриптового решения для автоматизации периодического полного резервного копирования фермы SharePoint 2013. И это решение благополучно работало у нас до недавнего времени, но в какой-то момент резервные копии перестали создаваться успешно. Читать далее.
Ошибка запуска службы MSDTC EventID 4691 "The run-time environment was unable to initialize for transactions required to support transactional components. Make sure that MS-DTC is running. (DtcGetTransactionManagerEx(): hr = 0x80004005)"
22.01.2019 Автор:Алексей Максимов
6 677 Просмотров 4 комментарияЭто вторая история, ноги у которой, судя по всему, растут из первой. Дело случилось на одном из ранее описанных виртуальных серверов на базе Windows Server 2012 R2, имевших проблему первичной инициализации в механизме OOBE (Out-of-Box Experience) после клонирования диска ВМ, предварительно подготовленного с помощью sysprep. После развёртывания оба сервера были успешно введены в домен Active Directory и без каких-либо сложностей сделаны участниками нового кластера Windows Failover Cluster. И всё с виду было хорошо до тех пор, пока не настало время установки агента System Center DPM на оба этих сервера. Читать далее.
oVirt 4.2.5 - Ошибка передачи роли SPM между хостами - SPM due to a failure to stop the current SPM
19.08.2018 Автор:Алексей Максимов
5 217 Просмотров 1 КомментарийСлучилось так, что в кластере oVirt 4.2.5 сломалась возможность передачи роли Storage Pool Manager (SPM) с одного хоста на другой. Как позже выяснилось, истинная причина этой проблемы заключалась в том, что на хранилище виртуальных машин Data Domain возникла проблема с неудалённым "осиротевшим" диском в LVM-группе, с которой работает oVirt. Однако данная ключевая проблема привела к другой сложности - невозможности передачи роли SPM между хостами. Читать далее.
Онлайн-курсы Евгения Лейтана
Внедрение Microsoft System Center Operations (SCOM) 2016/2019
13 уроков (6 часов видео), лабораторные работы и вручение именного сертификата.
Промокод "IT-KB_60" со скидкой 60%!Как удалить wwn targetcli
Provided by: targetcli_3.0~pre4.1~ga55d018-2_all
NAME
targetcliDESCRIPTION
targetcli is a shell for viewing, editing, and saving the configuration of the kernel's target subsystem, also known as TCM/LIO. It enables the administrator to assign local storage resources backed by either files, volumes, local SCSI devices, or ramdisk, and export them to remote systems via network fabrics, such as iSCSI or FCoE. The configuration layout is tree-based, similar to a filesystem, and navigated in a similar manner.USAGE
targetcli targetcli [cmd] Invoke targetcli as root to enter the configuration shell, or follow with a command to execute but do not enter the shell. Use ls to list nodes below the current path. Moving around the tree is accomplished by the cd command, or by entering the new location directly. Objects are created using create, removed using delete. Use help for additional usage information. Tab-completion is available for commands and command arguments. Configuration changes in targetcli are made immediately to the underlying kernel target configuration. Settings will not be retained across reboot unless saveconfig is either explicitly called, or implicitly by exiting the shell with the global preference auto_save_on_exit set to true, the default.EXAMPLES
To export a storage resource, 1) define a storage object using a backstore, then 2) export the object via a network fabric, such as iSCSI or FCoE. DEFINING A STORAGE OBJECT WITHIN A BACKSTORE backstores/fileio create disk1 /disks/disk1.img 140M Creates a storage object named disk1 with the given path and size. targetcli supports common size abbreviations like 'M', 'G', and 'T'. In addition to the fileio backstore for file-backed volumes, other backstore types include iblock for block-device-backed volumes, and pscsi for volumes backed by local SCSI devices. rd_mcp backstore creates ram-based storage objects. See the built-in help for more details on the required parameters for each backstore type. EXPORTING A STORAGE OBJECT VIA FCOE tcm_fc/ create 20:00:00:19:99:a8:34:bc Create an FCoE target with the given WWN. targetcli can tab-complete the WWN based on registered FCoE interfaces. If none are found, verify that they are properly configured and are shown in the output of fcoeadm -i. tcm_fc/20:00:00:19:99:a8:34:bc/ If auto_cd_after_create is set to false, change to the configuration node for the given target, equivalent to giving the command prefixed by cd. luns/ create /backstores/fileio/disk1 Create a new LUN for the interface, attached to a previously defined storage object. The storage object now shows up under the /backstores configuration node as activated. acls/ create 00:99:88:77:66:55:44:33 Create an ACL (access control list), for defining the resources each initiator may access. The default behavior is to auto-map existing LUNs to the ACL; see help for more information. The LUN should now be accessible via FCoE. EXPORTING A STORAGE OBJECT VIA ISCSI iscsi/ create Creates an iSCSI target with a default WWN. It will also create an initial target portal group called tpg1. iqn.2003-01.org.linux-iscsi.test2.x8664:sn123456789012/tpg1/ An example of changing to the configuration node for the given target's first target portal group (TPG). This is equivalent to giving the command prefixed by "cd". (Although more can be useful for certain setups, most configurations have a single TPG per target. In this case, configuring the TPG is equivalent to configuring the overall target.) portals/ create Add a portal, i.e. an IP address and TCP port via which the target can be contacted by initiators. Sane defaults are used if these are not specified. luns/ create /backstores/fileio/disk1 Create a new LUN in the TPG, attached to the storage object that has previously been defined. The storage object now shows up under the /backstores configuration node as activated. acls/ create iqn.1994-05.com.redhat:4321576890 Creates an ACL (access control list) for the given iSCSI initiator. acls/iqn.1994-05.com.redhat:4321576890 create 2 0 Gives the initiator access to the first exported LUN (lun0), which the initiator will see as lun2. The default is to give the initiator read/write access; if read-only access was desired, an additional "1" argument would be added to enable write-protect. (Note: if global setting auto_add_mapped_luns is true, this step is not necessary.) acls/iqn.1994-05.com.redhat:4321576890 set authentication=0 Purely for example, make the LUNs in the ACL accessible without authentication. See below for more information on configuring authentication.OTHER COMMANDS
saveconfig Save the current configuration settings to a file, from which settings will be restored if the system is rebooted. This command must be executed from the configuration root node. clearconfig Clears the entire current local configuration. The parameter confirm=true must also be given, as a precaution. This command is executed from the configuration root node. exit Leave the configuration shell.SETTINGS GROUPS
Settings are broken into groups. Individual settings are accessed by get and set = , and the settings of an entire group may be displayed by get . All except for global are associated with a particular configuration node. GLOBAL Shell-related user-specific settings are in global, and are visible from all configuration nodes. They are mostly shell display options, but some starting with auto_ affect shell behavior and may merit customization. Global settings are saved to ~/.targetcli/ upon exit, unlike other groups. BACKSTORE-SPECIFIC attribute /backstore// configuration node. Contains values relating to the backstore and storage object. ISCSI-SPECIFIC discovery_auth /iscsi configuration node. Set the normal and mutual authentication userid and password for discovery sessions, as well as enabling or disabling it. By default it is disabled -- no authentication is required for discovery. parameter /iscsi//tpgX configuration node. ISCSI-specific parameters such as AuthMethod, MaxBurstLength, IFMarker, DataDigest, and similar. attribute /iscsi//tpgX configuration node. Contains implementation-specific settings for the TPG, such as authentication, to enforce or disable authentication for the full-feature phase (i.e. non-discovery). auth /iscsi//tpgX/acls/ configuration node. Set the userid and password for full-feature phase for this ACL.FILES
/etc/target/* /var/lib/target/*AUTHOR
Written by Jerome Martin jxm@risingtidesystems.com>. Man page written by Andy Grover agrover@redhat.com>.REPORTING BUGS
Report bugs to target-devel@vger.kernel.org> targetcli(8)Как удалить wwn targetcli
Устанавливаем пакеты и запускаем службу
yum install targetcli scsi-target-utils -y systemctl enable target.service systemctl start target.serviceОткрываем порт сервиса
firewall-cmd --permanent --zone=public --add-port=3260/tcpЕсли необходимо удалить старую конфигурацию
targetcli clearconfig confirm=truetargetcli cd /backstores/block/ create data /dev/ cd /iscsi create wwn=iqn.XX-X-XX cd /iscsi//tpg1/portals delete 0.0.0.0 3260 create xxx.xxx.xxx.xx ip_port=3260 cd /iscsi//tpg1/luns create /backstores/block/ lun= cd /iscsi//tpg1 set attribute authentication=0 set attribute generate_node_acls=1 set attribute demo_mode_write_protect=0 #set attribute MaxBurstLength cd /iscsi//tpg1/acls create wwn=Формат IQN имеет вид iqn.yyyy-mm.naming-author:unique-name , где:
yyyy-mm - год и месяц. naming-Authority - это обычно обратный синтаксис имени домена в Интернете организации. unique-name - это любое имя, которое вы хотите использовать, например, имя вашего хоста. iqn.2020-01.ru.tx0.iscsi:dss-12020-2023 | Tixo | info@tx0.ru | Погрузитесь в с Тиксо!


