Skip to content

Commit

Permalink
docs: replace nsenter with chroot in README.md
Browse files Browse the repository at this point in the history
Replace `nsenter` with `chroot` for mdadm docs.

Signed-off-by: Tom Zaspel <[email protected]>
Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
tzabbi authored and frezbo committed Oct 23, 2024
1 parent f071725 commit 76543d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions storage/mdadm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ Now you are ready to create a software raid.
kubectl -n kube-system debug -it --profile sysadmin --image=alpine node/<node name>
# you are now in the pod again
# the following command will create the software raid
chroot /host mdadm --create /dev/md/<some name> --raid-devices=<amount of devices> --metadata=1.2 --level=<raid level> <all device paths>
chroot /host -- mdadm --create /dev/md/<some name> --raid-devices=<amount of devices> --metadata=1.2 --level=<raid level> <all device paths>
# this is an example usage of the command
# nsenter --mount=/proc/1/ns/mnt -- mdadm --create /dev/md/testmd --raid-devices=4 --metadata=1.2 --level=10 /dev/sda /dev/sdb /dev/sdc /dev/sdd
# chroot /host -- mdadm --create /dev/md/testmd --raid-devices=4 --metadata=1.2 --level=10 /dev/sda /dev/sdb /dev/sdc /dev/sdd
# after you can exit the container and restart the talos node again
exit
```
Expand Down Expand Up @@ -124,5 +124,5 @@ mkfs.ext4 /dev/md127
exit
talosctl reboot --nodes <ip of the nodes>
# after the reboot check if the formatted device shows extfs value in DISCOVERED coloumn
get discoveredvolumes | grep md127
talosctl get discoveredvolumes | grep md127
```

0 comments on commit 76543d1

Please sign in to comment.