четверг, 10 октября 2019 г.

Ubuntu 18.04.3 установка RAID 1

https://www.nvmedeveloperdays.com/English/Collaterals/Proceedings/2018/20181204_PRECON2_Hands.pdf
https://www.supermicro.org.cn/manuals/other/AOC-VROCxxxMOD.pdf


Настраиваем программный RAID на UEFI-системах в Debian и Ubuntu
.






sudo apt update
sudo apt upgrade
sudo apt install mc
sudo journalctl -xe
sudo journalctl -b
lsblk -o +uuid

user@ubuntu:~$ lsblk -o +uuid
NAME        MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT UUID
nvme0n1     259:0    0  1,8T  0 disk
+-nvme0n1p1 259:1    0  476M  0 part             6BBB-8018
L-nvme0n1p2 259:2    0  1,8T  0 part             773d0001-5d1e-1c24-a14f-d25a61fb9817
  L-md0       9:0    0  1,8T  0 raid1 /          80c7f166-fea8-425a-a829-e8dae1f5ed6b
nvme1n1     259:3    0  1,8T  0 disk
+-nvme1n1p1 259:4    0  476M  0 part  /boot/efi  6BBB-1F76
L-nvme1n1p2 259:5    0  1,8T  0 part             773d0001-5d1e-1c24-a14f-d25a61fb9817
  L-md0       9:0    0  1,8T  0 raid1 /          80c7f166-fea8-425a-a829-e8dae1f5ed6b



$ sudo nano /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/md0 during installation
UUID=80c7f166-fea8-425a-a829-e8dae1f5ed6b /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=6BBB-1F76  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

#$ sudo apt install dosfstools

sudo mkdosfs -i 6BBB1F76 /dev/nvme0n1p1
mkfs.fat 4.1 (2017-01-24)
mkdosfs: /dev/nvme1n1p1 contains a mounted filesystem.

$ efibootmgr -v

Boot0010* ubuntu        HD(1,GPT,6019cb70-dd17-43f2-969b-5aa23881a694,0x800,0xee000)/File(\EFI\ubuntu\shimx64.efi)




$ sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L "ubuntu" -l "\EFI\ubuntu\shimx64.efi"

$ efibootmgr -v
Boot0010* ubuntu        HD(1,GPT,6019cb70-dd17-43f2-969b-5aa23881a694,0x800,0xee000)/File(\EFI\ubuntu\shimx64.efi)
Boot0011* ubuntu        HD(1,GPT,e1a12ebb-0622-4443-9825-7a9b8d64c7bb,0x800,0xee000)/File(\EFI\ubuntu\shimx64.efi)


$ sudo mount /dev/nvme0n1p1 /mnt
$ sudo cp -R /boot/efi/EFI/ /mnt
$ sudo umount /dev/nvme0n1p1

$ cat /proc/mdstat
$ sudo mdadm --detail /dev/md0

Комментариев нет:

Отправить комментарий