Skip to content

Commit aeaef82

Browse files
authored
Merge pull request #97487 from vilibert/azure-docs-pr-branch
021219 added reference to SwapVol problems
2 parents 09c7ae4 + 41240d9 commit aeaef82

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

articles/virtual-machines/troubleshooting/chroot-logical-volume-manager.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,30 @@ If needed remove or upgrade the **kernel**
212212

213213

214214
### Example 3 - enable Serial Console
215-
If access has not been possible to the Azure serial console, verify GRUB configuration parameters for your Linux VM and correct them. DEtailed information can be found [in this doc](https://docs.microsoft.com/azure/virtual-machines/troubleshooting/serial-console-grub-proactive-configuration)
215+
If access has not been possible to the Azure serial console, verify GRUB configuration parameters for your Linux VM and correct them. Detailed information can be found [in this doc](https://docs.microsoft.com/azure/virtual-machines/troubleshooting/serial-console-grub-proactive-configuration)
216+
217+
### Example 4 - kernel loading with problematic LVM swap volume
218+
219+
A VM may fail to fully boot and drops into the **dracut** prompt.
220+
More details of the failure can be located from either Azure serial console or navigate to Azure portal -> boot diagnostics -> Serial log
221+
222+
223+
An error similar to this may be present:
224+
225+
```
226+
[ 188.000765] dracut-initqueue[324]: Warning: /dev/VG/SwapVol does not exist
227+
Starting Dracut Emergency Shell...
228+
Warning: /dev/VG/SwapVol does not exist
229+
```
230+
231+
The grub.cfg is configured in this example to load an LV with the name of **rd.lvm.lv=VG/SwapVol** and the VM is unable to locate this. This line shows how the kernel is being loaded referencing the LV SwapVol
232+
233+
```
234+
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.10.0-1062.4.1.el7.x86_64 root=/dev/mapper/VG-OSVol ro console=tty0 console=ttyS0 earlyprintk=ttyS0 net.ifnames=0 biosdevname=0 crashkernel=256M rd.lvm.lv=VG/OSVol rd.lvm.lv=VG/SwapVol nodmraid rhgb quiet
235+
[ 0.000000] e820: BIOS-provided physical RAM map:
236+
```
237+
238+
Remove the offending LV from the /etc/default/grub configuration and rebuild grub2.cfg
216239

217240

218241
## Exit chroot and swap the OS disk
@@ -251,4 +274,8 @@ If the VM is running the Disk Swap will shut it down, reboot the VM once the dis
251274

252275

253276
## Next steps
254-
Learn more about [Azure Serial Console]( https://docs.microsoft.com/azure/virtual-machines/troubleshooting/serial-console-linux)
277+
Learn more about
278+
279+
[Azure Serial Console]( https://docs.microsoft.com/azure/virtual-machines/troubleshooting/serial-console-linux)
280+
281+
[Single user mode](https://docs.microsoft.com/azure/virtual-machines/troubleshooting/serial-console-grub-single-user-mode)

0 commit comments

Comments
 (0)