lvm - Is there any way to setup a raid device after installation? - Ask Ubuntu
i set storage-manager server connect via iscsi main system , trying set mirrored volume. resultant volume mirror of /dev/sda1 , /dev/sdd4, noticed there no raid devices set up. (here output of cat /proc/mdstat)
personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] unused devices: <none>
due set lvm combines 2 disks not wanted... raid1... how... mdadm?
tried it: output of following command says "mdadm: no raid-devices specified"
sudo mdadm --create --verbose /dev/md0 --level=raid1 /dev/sdd4 /dev/sda1
i'm assuming because device /dev/md0 doesn't exist.
so question how/could make /dev/md0 raid device work raid1 setup , mdadm (without reinstalling system)? if proves impossible, how set mirrored lvm on ubuntu 16.04?
any insight appreciated. thanks!
thanks terrance found tutorial works great
basically instructions follows:
1.) change partition type --> fdisk /dev/sdd --> press t, select partition, l list codes, looking "linux raid setup" fd 2.) above every volume plan add --> fdisk /dev/sda | t | 1 | fd 3.) 0 superblock of devices --> mdadm --zero-superblock /dev/sdd4 4.) create raid device --> mdadm --create /dev/md0 --level=1 --raid-disks=2 /dev/sdd4 /dev/sda1 5.) check make sure device exists --> cat /proc/mdstat --> should see raid device 6.) create filesystems on our raid array --> mkfs.ntfs /dev/md0 7.) mount raid array --> mount /dev/md0 /srv 8.) recommend benchmark array have idea if going wrong
Comments
Post a Comment