https://www.suse.com/documentation/sles-12/stor_admin/data/sec_multipath_trouble.html

'IBM PowerLinux > SUSE' 카테고리의 다른 글

SUSE 12 multipath 설정 후 부팅 안될때  (0) 2017.01.12
SAP HANA system  (0) 2016.05.20
Storage Administration Guide  (0) 2016.05.19
multipath  (0) 2016.05.19



System exit to emegency shell at boot with multipath enabled (SLES12, MPIO)

This document (7015462) is provided subject to the disclaimer at the end of this document.
Environment

SUSE Linux Enterprise Server 12 (SLES 12)
Situation

During boot the system exits into the emergency shell with messages similar to

[ OK ] Listening on multipathd control socket.
Starting Device-Mapper Multipath Device Controller...
[ OK ] Listening on Device-mapper event daemon FIFOs.
Starting Device-mapper event daemon...
Expecting device dev-disk-by\x2duuid-34be48b2\x2dc21...32dd9.device...
Expecting device dev-sda2.device...
[ OK ] Listening on udev Kernel Socket.
[ OK ] Listening on udev Control Socket.
Starting udev Coldplug all Devices...
Expecting device dev-disk-by\x2duuid-1172afe0\x2d63c...5d0a7.device...
Expecting device dev-disk-by\x2duuid-c4a3d1de\x2d4dc...ef77d.device...
[ OK ] Started Create list of required static device nodes ...current kernel.
Starting Create static device nodes in /dev...
[ OK ] Started Collect Read-Ahead Data.
[ OK ] Started Device-mapper event daemon.
[ OK ] Started udev Coldplug all Devices.
Starting udev Wait for Complete Device Initialization...
[ OK ] Started Replay Read-Ahead Data.
Starting Load Kernel Modules...
Starting Remount Root and Kernel File Systems...
[ OK ] Started Create static devices
[ 13.682489] floppy0: no floppy controllers found
[* ] (1 of 4) A start job is running for dev-disk-by\x2du...(7s / 1min 30s)
[* ] (1 of 4) A start job is running for dev-disk-by\x2du...(7s / 1min 30s)

...

Timed out waiting for device dev-disk-by\x2duuid-c4a...cfef77d.device.
[DEPEND] Dependency failed for /opt.
[DEPEND] Dependency failed for Local File Systems.
[DEPEND] Dependency failed for Postfix Mail Transport Agent.
Welcome to emergency shell
Give root password for maintenance
(or press Control-D to continue):

this is the exit to the emergency shell


This issue is logical consequence of the multipath integration in systemd and occurs if the root filesystem is not on multipath but multipath is enabled.

In this setup multipath tries to setup its paths for all devices that are not blacklisted, as the device of the root filesystem is mounted already it is inaccessible making multipath fail.

Resolution

There are a number of ways to deal with this issue. The best and recommended way is to configure multipath correctly. This means that if root is not on multipath it should be blacklisted in /etc/multipath.conf

Issue for example

'multipath -v2'

and identify the device for the root filesystem. It will result in an output similar to:

Jul 29 10:10:03 | 3600508b1001030343841423043300400: ignoring map

The string between '| ' and ':' is the wwid, which should be added to /etc/multipath.conf as:

blacklist {
wwid "3600508b1001030343841423043300400"
}

Once this is added multipath will not try to access the wrong device, the non-multipathed Device for the root Filesystem during boot.

Another way of dealing with this would be to enable multipath in the initrd; re-run 'mkinitrd' and include the 'multipath' dracut module. Then the system will always come up multipathed, which is clearly not the intention if the root device is not multipathed.

As an immediate short term workaround one could disable multipath in the root filesystem

systemctl stop multipathd
systemctl stop multipathd.socket
systemctl disable multipathd

CAVEAT: Please keep in mind that this wwid is most likely local to the specific machine. As such

/etc/multipath.conf

should then be removed from syncing of configuration files between different machines. Which applies for example to csync2.
Change Log

2014-Aug-1 - Rolf Schmidt - Initial version

'IBM PowerLinux > SUSE' 카테고리의 다른 글

SUSE 12 root multipath  (0) 2017.08.20
SAP HANA system  (0) 2016.05.20
Storage Administration Guide  (0) 2016.05.19
multipath  (0) 2016.05.19

 

 

 

SAP HANA System Replication on SLES for SAP Applications

 

https://www.suse.com/docrep/documents/wvhlogf37z/sap_hana_system_replication_on_sles_for_sap_applications.pdf

 

 

Current information about SAPHanaSR – the resource agents for SAP HANA system replication

https://www.suse.com/communities/blog/current-information-saphanasr-resource-agents-sap-hana-system-replication/

 

'IBM PowerLinux > SUSE' 카테고리의 다른 글

SUSE 12 root multipath  (0) 2017.08.20
SUSE 12 multipath 설정 후 부팅 안될때  (0) 2017.01.12
Storage Administration Guide  (0) 2016.05.19
multipath  (0) 2016.05.19

'IBM PowerLinux > SUSE' 카테고리의 다른 글

SUSE 12 root multipath  (0) 2017.08.20
SUSE 12 multipath 설정 후 부팅 안될때  (0) 2017.01.12
SAP HANA system  (0) 2016.05.20
multipath  (0) 2016.05.19

 

 node1:/boot # ls -lrt initrd*
-rw-r--r-- 1 root root 6720908 Jul 2 19:29 initrd-3.0.101-63-ppc64
-rw------- 1 root root 8540288 Jul 2 19:30 initrd-3.0.101-63-ppc64-kdump
lrwxrwxrwx 1 root root 23 Jul 2 19:30 initrd -> initrd-3.0.101-63-ppc64

 

 

multipath /boot/initrd~~~ 에 추가 (시스템 부팅시 multipathd 로드)

 

On SLES9 and SLES10 the command to enable multipath is:
# mkinitrd -f mpath

However on SLES11 it is:
# mkinitrd -f multipath

Unfortunately this is not considered in the documentation and manpage shipped with SLES11 DVD.

 

 

/etc/multipath.conf

 

defaults {
               user_friendly_names yes
}


 

자동 실행

# chkconfig multipathd on
# chkconfig boot.multipath on

 

수동 실행

# /etc/init.d/boot.multipath start
# /etc/init.d/multipathd start

 

 

multipath device name alias

 

https://www.suse.com/documentation/sles11/stor_admin/?page=/documentation/sles11/stor_admin/data/bndgyoe.html 

 

 

device rescan

# rescan-scsi-bus.sh

 

multipath restart

# multipath reload

 

SCSI ID 확인
# /lib/udev/scsi_id --whitelisted /dev/sda
SAIX     VDASD          00f9f3a800004c000000014d5aecde11.18

 

 

 

 

'IBM PowerLinux > SUSE' 카테고리의 다른 글

SUSE 12 root multipath  (0) 2017.08.20
SUSE 12 multipath 설정 후 부팅 안될때  (0) 2017.01.12
SAP HANA system  (0) 2016.05.20
Storage Administration Guide  (0) 2016.05.19

+ Recent posts