6: 2023-05-18 (Thu) 17:44:17 iseki | Cur: 2023-06-08 (Thu) 17:26:05 iseki | ||
---|---|---|---|
Line 8: | Line 8: | ||
#br | #br | ||
+ | *** RAID1のディスクでLVMを作る [#c40c9a82] | ||
+ | RAID1を構成する(/dev/md1, /dev/md2, /dev/md3) | ||
+ | pvcreate /dev/md1 | ||
+ | pvcreate /dev/md2 | ||
+ | pvcreate /dev/md3 | ||
+ | vgcreate vg-home /dev/md1 /dev/md2 /dev/md3 | ||
+ | vgdisplay | ||
+ | lvcreate -n lv-home -l 100%FREE vg-home | ||
+ | |||
+ | mkfs.ext4 /dev/vg-home/lv-home | ||
+ | mkdir /mnt/home | ||
+ | mount /dev/vg-home/lv-home /mnt/home/ (テスト) | ||
+ | vi /etc/fstab | ||
+ | reboot | ||
+ | |||
+ | |||
+ | lvdisplay | ||
+ | lvremove /dev/vg-home/lv-home | ||
+ | lvdisplay | ||
+ | vgdisplay | ||
+ | vgremove vg-home | ||
+ | pvremove /dev/md1 | ||
+ | pvremove /dev/md2 | ||
+ | pvremove /dev/md3 | ||
** Case [#wcba4b3c] | ** Case [#wcba4b3c] |
- Backup list of LVM
- Backup diff of LVM(No. All)