Skip to content

Commit dc2e3db

Browse files
author
Mauricio
authored
Update linux-virtual-machine-cannot-start-fstab-errors.md
Updating ALAR command.
1 parent f46b719 commit dc2e3db

1 file changed

Lines changed: 6 additions & 21 deletions

File tree

support/azure/virtual-machines/linux/linux-virtual-machine-cannot-start-fstab-errors.md

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -95,32 +95,17 @@ If the VM serial console access is not available, an alternative solution is to
9595
9696
#### Use Azure Linux Auto Repair (ALAR)
9797
98-
Azure Linux Auto Repair (ALAR) scripts is a part of VM repair extension described in [Repair a Linux VM by using the Azure Virtual Machine repair commands](./repair-linux-vm-using-azure-virtual-machine-repair-commands.md). ALAR covers automation of multiple repair scenarios including `/etc/fstab` issues.
98+
Azure Linux Auto Repair (ALAR) scripts is a part of VM repair extension described in [Use Azure Linux Auto Repair (ALAR) to fix a Linux VM](./repair-linux-vm-using-alar.md). ALAR covers automation of multiple repair scenarios including `/etc/fstab` issues.
9999
100-
The ALAR scripts use the repair extension `run` command and its `--run-id` option. The script-id for the automated recovery is: **linux-alar2**. Implement the following steps to automate fstab errors via offline ALAR approach:
100+
The ALAR scripts use the repair extension `repair-button` to fix fstab issues by specifying `--button-command fstab`. This parameter triggers the automated recovery. Implement the following steps to automate fstab errors via the offline ALAR approach:
101101
102102
```azurecli-interactive
103-
az vm repair create --verbose -g centos7 -n cent7 --repair-username rescue --repair-password 'password!234' --copy-disk-name repairdiskcopy
104-
```
105-
106-
```azurecli-interactive
107-
az vm repair run --verbose -g centos7 -n cent7 --run-id linux-alar2 --parameters fstab --run-on-repair
108-
```
109-
110-
```azurecli-interactive
111-
az vm repair restore --verbose -g centos7 -n cent7
112-
```
103+
az vm repair repair-button --button-command fstab --verbose rgtest --name vmtest
104+
```
113105
114106
> [!Note]
115-
>The resource group name "centos7, vm name "cent7", and --copy-disk-name "repairdiskcopy" are examples and the values need to change accordingly.
116-
117-
>The fstab repair script will take a backup of the original file and strip off any lines in the /etc/fstab file which are not needed to boot a system. After successful start of the OS, edit the fstab again and correct any errors which didn’t allow a reboot of the system before.
118-
119-
Alternatively, once a repair vm is created, the changes can also be implemented by manually logging into the repair vm, mounting the attached copy of OS disk and making changes to its fstab file. Follow the steps here:
120-
* Create a repair VM using the `az vm repair create` command.
121-
* In order to mount and chroot to the filesystems of the attached OS disk in a rescue VM, follow the detailed [chroot instructions](./chroot-environment-linux.md).
122-
* Next, follow the same [fstab troubleshooting steps](#fstab-troubleshooting-steps) as above.
123-
* Once the changes are applied, `az vm repair restore` command can be used to perform automatic OS disk swap with the original VM.
107+
>The resource group name "rgtest and vm name "vmtest", are examples and the values need to change accordingly.
108+
>The fstab repair script will take a backup of the original file and strip off any lines in the /etc/fstab file which are not needed to boot a system. After successful start of the OS, edit the fstab again and correct any errors which didn’t allow a reboot of the system before.
124109
125110
#### Use Manual Method
126111

0 commit comments

Comments
 (0)