Browse code

Added two troubleshooting topics for PHO-218

Change-Id: I1fb48eba9ba29e755701a7a1049450e45abf2d8d
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6362
Reviewed-by: Siju Maliakkal <smaliakkal@vmware.com>
Tested-by: michellew <michellew@vmware.com>

Vidya Vasudevan authored on 2018/12/12 18:05:02
Showing 6 changed files
... ...
@@ -140,6 +140,7 @@
140 140
         - [Photon OS Logs](photon_troubleshoot/photon-os-logs.md)
141 141
         - [Troubleshooting Progression](photon_troubleshoot/troubleshooting-progression.md)
142 142
     - [Solutions to Common Problems](photon_troubleshoot/solutions-to-common-problems.md)
143
+        - [Boot in Emergency Mode](photon_troubleshoot/boot-in-emergency-mode.md)
143 144
         - [Resetting a Lost Root Password](photon_troubleshoot/resetting-a-lost-root-password.md)
144 145
         - [Fixing Permissions on Network Configuration Files](photon_troubleshoot/network-config-files-permissions.md)
145 146
         - [Permitting Root Login with SSH](photon_troubleshoot/permitting-root-login-with-ssh.md)
... ...
@@ -150,6 +151,7 @@
150 150
         - [Installing Tools From Repositories](photon_troubleshoot/installing-tools.md)
151 151
         - [Linux Troubleshooting Tools](photon_troubleshoot/linux-troubleshooting-tools.md)
152 152
     - [Troubleshooting With systemd](photon_troubleshoot/systemd.md)
153
+        - [Enabling `systemd` Debug Shell During Boot](photon_troubleshoot/enabling-systemd-debug.md)
153 154
         - [Troubleshooting Services with `systemctl`](photon_troubleshoot/troubleshooting-services.md)
154 155
         - [Analyzing System Logs with `journalctl`](photon_troubleshoot/analyzing-system-logs-with-journalctl.md)
155 156
         - [Inspecting Services with `systemd-analyze`](photon_troubleshoot/inspecting-services-with-systemd-analyze.md)
... ...
@@ -11,6 +11,7 @@
11 11
         - [Photon OS Logs](photon-os-logs.md)
12 12
         - [Troubleshooting Progression](troubleshooting-progression.md)
13 13
     -   [Solutions to Common Problems](solutions-to-common-problems.md)
14
+        - [Boot in Emergency Mode](boot-in-emergency-mode.md)
14 15
         - [Resetting a Lost Root Password](resetting-a-lost-root-password.md)
15 16
         - [Fixing Permissions on Network Configuration Files](network-config-files-permissions.md)
16 17
         - [Permitting Root Login with SSH](permitting-root-login-with-ssh.md)
... ...
@@ -21,9 +22,10 @@
21 21
         - [Installing Tools From Repositories](installing-tools.md)
22 22
         - [Linux Troubleshooting Tools](linux-troubleshooting-tools.md)
23 23
     -   [Troubleshooting With systemd](systemd.md)
24
-        -   [Troubleshooting Services with `systemctl`](troubleshooting-services.md)
25
-        -   [Analyzing System Logs with `journalctl`](analyzing-system-logs-with-journalctl.md)
26
-        -   [Inspecting Services with `systemd-analyze`](inspecting-services-with-systemd-analyze.md)
24
+        - [Enabling `systemd` Debug Shell During Boot](enabling-systemd-debug.md)
25
+        - [Troubleshooting Services with `systemctl`](troubleshooting-services.md)
26
+        - [Analyzing System Logs with `journalctl`](analyzing-system-logs-with-journalctl.md)
27
+        - [Inspecting Services with `systemd-analyze`](inspecting-services-with-systemd-analyze.md)
27 28
     -   [Network Troubleshooting](networking.md)
28 29
         - [Managing the Network Configuration](managing-the-network-configuration.md)
29 30
         - [Inspecting IP Addresses](inspecting-ip-addresses.md)
30 31
new file mode 100644
... ...
@@ -0,0 +1,23 @@
0
+# Boot in Emergency Mode
1
+
2
+If you encounter problems during normal boot, you can boot in Emergency Mode. 
3
+
4
+Perform the following steps to boot in Emergency Mode:
5
+
6
+1. Restart the Photon OS machine or the virtual machine running Photon OS. 
7
+    
8
+    When the Photon OS splash screen appears, as it restarts, type the letter `e` quickly. 
9
+
10
+1. Append `emergency` to the kernel command line. 
11
+
12
+1. Press `F10` to proceed with the boot.
13
+
14
+1. At the command prompt, provide the root password to log in to Emergency Mode.
15
+
16
+    By default, `/` is mounted as read-only. 
17
+    
18
+    To make modifications, run the following command to remount with write access:
19
+    
20
+    `mount -o remount,rw /`
21
+
22
+ 
0 23
\ No newline at end of file
1 24
new file mode 100644
... ...
@@ -0,0 +1,17 @@
0
+# Enabling `systemd` Debug Shell During Boot
1
+
2
+To diagnose `systemd` related boot issues, you can enable early shell access during boot.
3
+
4
+Perform the following steps to enable early shell access:
5
+
6
+1. Restart the Photon OS machine or the virtual machine running Photon OS. 
7
+    
8
+    When the Photon OS splash screen appears, as it restarts, type the letter `e` quickly. 
9
+
10
+1. Append `systemd.debug-shell=1` to the kernel command line. 
11
+
12
+    Optionally, to change logging level to debug, you can append `systemd.log_level=debug`.
13
+
14
+1. Press `F10` to proceed with the boot.
15
+
16
+1. Press `Alt+Ctrl+F9` to switch to `tty9` to access the debug shell.
0 17
\ No newline at end of file
... ...
@@ -2,6 +2,7 @@
2 2
 
3 3
 This section describes solutions to problems that you might encounter:
4 4
 
5
+- [Boot in Emergency Mode](boot-in-emergency-mode.md)
5 6
 - [Resetting a Lost Root Password](resetting-a-lost-root-password.md)
6 7
 - [Fixing Permissions on Network Configuration Files](network-config-files-permissions.md)
7 8
 - [Permitting Root Login with SSH](permitting-root-login-with-ssh.md)
... ...
@@ -9,13 +9,12 @@ For example, instead of running the /etc/init.d/ssh script to stop and start the
9 9
 	systemctl stop sshd
10 10
 	systemctl start sshd
11 11
 
12
--   [Troubleshooting Services with `systemctl`](troubleshooting-services.md)
13
--   [Analyzing System Logs with `journalctl`](analyzing-system-logs-with-journalctl.md)
14
--   [Inspecting Services with `systemd-analyze`](inspecting-services-with-systemd-analyze.md)
12
+- [Enabling `systemd` Debug Shell During Boot](enabling-systemd-debug.md) 
13
+- [Troubleshooting Services with `systemctl`](troubleshooting-services.md)
14
+- [Analyzing System Logs with `journalctl`](analyzing-system-logs-with-journalctl.md)
15
+- [Inspecting Services with `systemd-analyze`](inspecting-services-with-systemd-analyze.md)
15 16
 
16 17
 For an overview of systemd, see [systemd System and Service Manager](https://www.freedesktop.org/wiki/Software/systemd/) and the [man page for systemd](https://www.freedesktop.org/software/systemd/man/systemd.html). The systemd man pages are listed at [https://www.freedesktop.org/software/systemd/man/](https://www.freedesktop.org/software/systemd/man/).
17 18
 
18
-## 
19 19
 
20
-### 
21 20