User Tools

Site Tools


utils_raid_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
utils_raid_setup [2020/05/20 07:24]
xavier
utils_raid_setup [2020/05/20 07:36] (current)
xavier
Line 13: Line 13:
 ''#​ cat /​proc/​mdstat''​\\ ''#​ cat /​proc/​mdstat''​\\
 ''#​ mdadm --detail /​dev/​md0''​\\ ''#​ mdadm --detail /​dev/​md0''​\\
-==> there is an initial phase of reconstruction when an array is created. It is supposedly functional during this time.\\+=> there is an initial phase of reconstruction when an array is created. It is supposedly functional during this time.\\
  
 Make the array a LVM Physical Volume (so it can be used by LVM):\\ Make the array a LVM Physical Volume (so it can be used by LVM):\\
 ''#​ pvcreate /​dev/​md0''​\\ ''#​ pvcreate /​dev/​md0''​\\
-==> That takes time!\\+=> That takes time!\\
  
 Check result:\\ Check result:\\
Line 30: Line 30:
 ''#​ vgdisplay vg_data''​\\ ''#​ vgdisplay vg_data''​\\
  
 +Create LVM Volumes on the Volume Group:\\
 +''#​ lvcreate -n vol_perso_data -L 350G vg_data''​\\
 +=> use -l instead to give % of available space\\
  
 +Check result:\\
 +''#​ lvs''​\\
 +''#​ lvdisplay''​\\
 +
 +We can now use the new Volumes as we would use normal disks!\\
 +Access is done through ''/​dev/​vg_data/​vol_*''​\\
 +
 +For example, to create ext4 partitions:​\\
 +''#​ mkfs.ext4 /​dev/​vg_data/​vol_music''​\\
  
utils_raid_setup.1589959493.txt.gz ยท Last modified: 2020/05/20 07:24 by xavier