sles
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sles [2014/01/20 09:50] – [SLEHA] michael | sles [2022/11/04 17:23] (current) – mduersch | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== SLES ====== | ====== SLES ====== | ||
| - | ==== SLEHA ===== | + | ==== Add Salt Minion to SUSE Manager ==== |
| + | # cleanup if necessary | ||
| + | rpm -qa | grep salt | ||
| + | rpm -e salt-2016.11.10-43.54.1.x86_64 salt-minion-2016.11.10-43.54.1.x86_64 | ||
| + | rm -r /etc/salt | ||
| + | rm / | ||
| + | rm / | ||
| + | |||
| + | # connect minion. | ||
| + | | ||
| + | | ||
| + | sed -i ' | ||
| + | rm / | ||
| + | | ||
| + | rm / | ||
| + | | ||
| + | | ||
| + | | ||
| + | echo " | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | ==== iSCSI ===== | ||
| 195 2013-06-30 11:32:28 iscsiadm -m node iqn.2013-06.home.itbetrieb: | 195 2013-06-30 11:32:28 iscsiadm -m node iqn.2013-06.home.itbetrieb: | ||
| 198 2013-06-30 11:49:53 iscsiadm -m node --logout | 198 2013-06-30 11:49:53 iscsiadm -m node --logout | ||
| + | |||
| + | ==== kernelupdate kills modules ===== | ||
| + | |||
| + | root@bacula:/ | ||
| + | iscsiadm: read error (-1/104), daemon died? | ||
| + | iscsiadm: Could not scan / | ||
| + | libkmod: ERROR ../ | ||
| + | iscsiadm: Could not insert module tcp. Kmod error -2 | ||
| + | iscsiadm: iSCSI driver tcp is not loaded. Load the module then retry the command. | ||
| + | iscsiadm: Could not perform SendTargets discovery: iSCSI driver not found. Please make sure it is loaded, and retry the operation | ||
| + | | ||
| + | missing module is included in: | ||
| + | | ||
| + | apt-get install linux-modules-extra | ||
| + | |||
| | | ||
| iscsiadm -m node iqn.2014-01.home.itbetrieb: | iscsiadm -m node iqn.2014-01.home.itbetrieb: | ||
| - | ==== ISCSI target ===== | + | ==== iSCSI target ===== |
| bind specific interface. | bind specific interface. | ||
| Line 20: | Line 58: | ||
| tsm2:/ | tsm2:/ | ||
| + | |||
| + | List all iscsi Volumes that are available on the Target | ||
| + | |||
| + | infra:/dev # cat / | ||
| + | tid:1 name: | ||
| + | lun:0 state:0 iotype: | ||
| + | lun:1 state:0 iotype: | ||
| + | lun:2 state:0 iotype: | ||
| + | lun:3 state:0 iotype: | ||
| + | lun:4 state:0 iotype: | ||
| + | |||
| + | |||
| + | List all Volumes/ | ||
| + | |||
| + | tsmsrv1:/ | ||
| + | [0: | ||
| + | [2: | ||
| + | [7: | ||
| + | [7: | ||
| + | [7: | ||
| + | [7: | ||
| + | [7: | ||
| + | |||
| + | |||
| + | |||
| + | ==== SLEHA - corosync pacemaker ==== | ||
| + | |||
| + | |||
| + | pvcreate /dev/sdb | ||
| + | pvcreate /dev/sdc | ||
| + | pvcreate /dev/sdd | ||
| + | pvcreate /dev/sde | ||
| + | pvcreate /dev/sdf | ||
| + | |||
| + | lrwxrwxrwx 1 root root 9 Feb 5 12:48 ip-192.168.56.100: | ||
| + | lrwxrwxrwx 1 root root 9 Feb 5 12:48 ip-192.168.56.100: | ||
| + | lrwxrwxrwx 1 root root 9 Feb 5 12:48 ip-192.168.56.100: | ||
| + | lrwxrwxrwx 1 root root 9 Feb 5 12:48 ip-192.168.56.100: | ||
| + | lrwxrwxrwx 1 root root 9 Feb 5 12:48 ip-192.168.56.100: | ||
| + | |||
| + | sdb disk: | ||
| + | iscsiadm -m node -T iqn.2014-02.home.itbetrieb: | ||
| + | |||
| + | |||
| + | |||
| + | login to ONLY ONE target: | ||
| + | iscsiadm -m node -T iqn.2014-02.home.itbetrieb: | ||
| + | |||
| + | |||
| + | infra:/etc # cat / | ||
| + | tid:1 name: | ||
| + | sid: | ||
| + | cid:0 ip: | ||
| + | |||
| + | |||
| + | unavailable vgs after setting sbd to wrong device | ||
| + | |||
| + | infra:/dev # vgchange -a y vg01 | ||
| + | 1 logical volume(s) in volume group " | ||
| + | infra:/dev # vgchange -a y vg02 | ||
| + | 4 logical volume(s) in volume group " | ||
| + | infra:/dev # vgchange -a y vg04 | ||
| + | Volume group " | ||
| + | infra:/dev # vgchange -a y vg03 | ||
| + | 1 logical volume(s) in volume group " | ||
| + | |||
| + | |||
| + | LATEST ERROR | ||
| + | | ||
| + | | ||
| + | Configuring csync2 | ||
| + | Enabling csync2 service | ||
| + | Enabling xinetd service | ||
| + | Merging known_hosts | ||
| + | Probing for new partitions......ERROR: | ||
| + | tsmsrv2:/ | ||
| + | Could not establish cib_ro connection: Connection refused (111) | ||
| + | ERROR: crm_mon exited with code 107 and said: Connection to cluster failed: Transport endpoint is not connected | ||
| + | |||
| + | |||
| + | infra:/ | ||
| + | tid:2 name: | ||
| + | lun:0 state:0 iotype: | ||
| + | lun:1 state:0 iotype: | ||
| + | lun:2 state:0 iotype: | ||
| + | lun:3 state:0 iotype: | ||
| + | lun:4 state:0 iotype: | ||
| + | tid:1 name: | ||
| + | lun:0 state:0 iotype: | ||
| + | |||
| + | wenn keine luns da: iscsitarget restart | ||
| + | |||
| + | |||
| + | delete modify a resource | ||
| + | | ||
| + | # crm resource param < | ||
| + | # crm resource param < | ||
| + | # crm resource param < | ||
| + | |||
| + | failed Meldungen loswerden. | ||
| + | # crm resource cleanup < | ||
| + | |||
| + | |||
| + | # clustermode für vg aktivieren: | ||
| + | vgchange -c y | ||
| + | |||
| + | node tsmsrv1 | ||
| + | node tsmsrv2 | ||
| + | |||
| + | crm configure primitive vtsm1IP ocf: | ||
| + | |||
| + | # mirroring (not wanted in this case) | ||
| + | # crm configure primitive iscsi-drbd ocf: | ||
| + | |||
| + | |||
| + | # crm configure primitive vtsm1target ocf: | ||
| + | # crm configure primitive vtsm1lun0 ocf: | ||
| + | |||
| + | # crm configure primitive vtsm1lun1 ocf: | ||
| + | # crm configure primitive vtsm1lun2 ocf: | ||
| + | # crm configure primitive vtsm1lun3 ocf: | ||
| + | # crm configure primitive vtsm1lun4 ocf: | ||
| + | |||
| + | |||
| + | |||
| + | crm configure primitive vtsm1IP ocf: | ||
| + | crm configure primitive vtsm1LVM ocf: | ||
| + | crm configure primitive vtsm1db ocf: | ||
| + | crm configure primitive vtsm1log ocf: | ||
| + | crm configure primitive vtsm1archlog ocf: | ||
| + | crm configure primitive vtsm1disk ocf: | ||
| + | crm configure primitive vtsm1server ocf: | ||
| + | crm configure group vtsm1 vtsm1IP vtsm1LVM vtsm1db vtsm1log vtsm1archlog vtsm1disk vtsm1server meta target-role=" | ||
| + | crm configure location cli-standby-vtsm1 vtsm1 rule $id=" | ||
| + | |||
| + | crm configure primitive vtsm1run lsb: | ||
| + | |||
| + | |||
| + | |||
| + | crm_resource -D --resource vtsm1 -t group | ||
| + | crm_resource -D --resource vtsm1LVM -t primitive | ||
| + | crm_resource -D --resource vtsm1db -t primitive | ||
| + | crm_resource -D --resource vtsm1log -t primitive | ||
| + | crm_resource -D --resource vtsm1archlog -t primitive | ||
| + | crm_resource -D --resource vtsm1disk -t primitive | ||
| + | crm_resource -D --resource vtsm1server -t primitive | ||
| + | crm_resource -D --resource vtsm1IP -t primitive | ||
| + | |||
| + | | ||
| + | params volgrpname=" | ||
| + | op monitor interval=" | ||
| + | |||
| + | | ||
| + | params device="/ | ||
| + | op monitor interval=" | ||
| + | | ||
| + | | ||
| + | params device="/ | ||
| + | op monitor interval=" | ||
| + | | ||
| + | params device="/ | ||
| + | op monitor interval=" | ||
| + | | ||
| + | params device="/ | ||
| + | op monitor interval=" | ||
| + | | ||
| + | params device="/ | ||
| + | op monitor interval=" | ||
| + | |||
| + | | ||
| + | group tsmt tsmtIP tsmtLVM tsmtMount1 tsmtMount2 tsmtMount3 tsmtMount4 tsmtMount5 tsmtrun \ | ||
| + | meta target-role=" | ||
| + | group tsmtlm tsmtlmIP tsmtlmLVM tsmtlmMount1 tsmtlmMount2 tsmtlmMount3 tsmtlmMount4 tsmtlmrun \ | ||
| + | meta target-role=" | ||
| + | | ||
| + | rule $id=" | ||
| + | | ||
| + | rule $id=" | ||
| + | | ||
| + | dc-version=" | ||
| + | cluster-infrastructure=" | ||
| + | expected-quorum-votes=" | ||
| + | stonith-enabled=" | ||
| + | no-quorum-policy=" | ||
| + | |||
| + | |||
| + | crm configure primitive vtsm1ip ocf:IPaddr2 params ip=192.168.56.111 cidr_netmask=32 nic=eth2 op monitor interval=30s | ||
| + | |||
| + | move vg between clusternodes: | ||
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | |||
| + | create sbd device for pacemaker | ||
| + | tsmsrv1:~ # sbd -d /dev/sdb create | ||
| + | Initializing device /dev/sdb | ||
| + | Creating version 2.1 header on device 3 (uuid: 5f960a58-8429-4397-ad4b-b2b879aa600c) | ||
| + | Initializing 255 slots on device 3 | ||
| + | Device /dev/sdb is initialized. | ||
| + | tsmsrv1:~ # | ||
| + | tsmsrv1:~ # | ||
| + | tsmsrv1:~ # / | ||
| + | tsmsrv1:~ # / | ||
| + | Starting OpenAIS/ | ||
| + | |||
| + | tsmsrv1:/ | ||
| + | NAME | ||
| + | sda 8:0 0 20G 0 | ||
| + | ââsda1 | ||
| + | ââsda2 | ||
| + | sr0 | ||
| + | sdb 8:16 | ||
| + | sdc 8:32 | ||
| + | |||
| + | |||
| + | crm configure primitive clvm ocf: | ||
| + | crm configure primitive vg1 ocf: | ||
| ==== Lin_tape / udev ==== | ==== Lin_tape / udev ==== | ||
| + | |||
| + | barcode lenght @lin_tape | ||
| + | |||
| + | options lin_tape ibm3592_barcode=8 | ||
| + | options lin_tape lto_barcode=6 | ||
| + | |||
| + | Stop and start the driver by running these commands. | ||
| + | | ||
| + | rmmod lin_tape | ||
| + | | ||
| + | | ||
| + | | ||
| If there is a tape device attached to the Linux system with world-wide port name | If there is a tape device attached to the Linux system with world-wide port name | ||
| Line 210: | Line 481: | ||
| 4 new device(s) found. | 4 new device(s) found. | ||
| 0 device(s) removed. | 0 device(s) removed. | ||
| + | |||
| + | echo "- - -" > / | ||
| + | echo "- - -" > / | ||
| + | |||
| + | echo 1 >/ | ||
| + | echo 1 >/ | ||
| + | | ||
| + | | ||
| + | ===== systool ===== | ||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | |||
| + | |||
| ==== Configuring Path Failover Policies ==== | ==== Configuring Path Failover Policies ==== | ||
| Line 235: | Line 522: | ||
| -rw-r--r-- 1 root root 4096 Aug 27 08:59 tgtid_bind_type | -rw-r--r-- 1 root root 4096 Aug 27 08:59 tgtid_bind_type | ||
| --w------- 1 root root 4096 Aug 27 08:59 uevent | --w------- 1 root root 4096 Aug 27 08:59 uevent | ||
| + | |||
| + | |||
| + | systool -av -c fc_host | ||
| + | |||
| + | |||
| + | === Install Server ALSWAYS without SAN connectet === | ||
| + | |||
| + | Otherwise local HDD might be recognized after SAN Storage, resulting in local disk NOT beeing /dev/sda | ||
| + | How to correct this: | ||
| + | |||
| + | in / | ||
| + | INITRD_MODULES=" | ||
| + | |||
| + | make shure that the HBA module is loaded after ahci | ||
| + | |||
| + | |||
sles.1390211447.txt.gz · Last modified: 2021/04/24 07:38 (external edit)
