OpenWRT and Bare Metal BackUps: Difference between revisions
Line 188: | Line 188: | ||
===Other Notes=== | ===Other Notes=== | ||
==== LVM (Logical Volume Management) -- Rough Draft ==== | ====LVM (Logical Volume Management) -- Rough Draft==== | ||
Signature ([[wikipedia:Master_boot_record#Disk_identity|Disk Signature / Disk Identity]]): A [[wikipedia:Master_boot_record#DISK_ID|32 bit section]] of the MBR (GPT, DOS, LVM, etc). Oh, and CFDISK won't work as it does not facilitate LVM Disks. | Signature ([[wikipedia:Master_boot_record#Disk_identity|Disk Signature / Disk Identity]]): A [[wikipedia:Master_boot_record#DISK_ID|32 bit section]] of the MBR (GPT, DOS, LVM, etc). Oh, and CFDISK won't work as it does not facilitate LVM Disks. | ||
* Steps for Creating a Bootable Disk with an LVM Partition | *Steps for Creating a Bootable Disk with an LVM Partition | ||
** Create a BOOT Partition at an offset of 1M (equivalent to a quantity 2048 sectors that are 512 Bytes / Sector) | **Create a BOOT Partition at an offset of 1M (equivalent to a quantity 2048 sectors that are 512 Bytes / Sector) | ||
** ...same steps as below, but for /dev/sdaX | **...same steps as below, but for /dev/sdaX | ||
* Steps for Creating an LVM Disk (NOTE: As in, that's an entire Disk, not just a Partition, and it assumes there's another disk to boot from, so do NOT do this, it is just here for reference) | *Steps for Creating an LVM Disk (NOTE: As in, that's an entire Disk, not just a Partition, and it assumes there's another disk to boot from, so do NOT do this, it is just here for reference) | ||
** PVCREATE (Create a Physical Disk, sort of equivalent to writing a Disk Signature): pvcreate /dev/sda (this will / can overwrite the DOS or GPT signature / identity of a disk) | **PVCREATE (Create a Physical Disk, sort of equivalent to writing a Disk Signature): pvcreate /dev/sda (this will / can overwrite the DOS or GPT signature / identity of a disk) | ||
** VGCREATE (Create a Volume Group, nope, not sort of like creating a Partition (that's next), but rather like part B of PVCREATE, where one or more disks are assigned to a Volume Group): vgcreate VG1 /dev/sda (VG1 is an arbitrary name, it can be 'anything') | **VGCREATE (Create a Volume Group, nope, not sort of like creating a Partition (that's next), but rather like part B of PVCREATE, where one or more disks are assigned to a Volume Group): vgcreate VG1 /dev/sda (VG1 is an arbitrary name, it can be 'anything') | ||
** LVCREATE (Create a Logical Volume, equivalent to Partitioning); | **LVCREATE (Create a Logical Volume, equivalent to Partitioning); | ||
*** lvcreate -L 16M -n BOOT VG1 (16M is the size of the first "Partition", BOOT is just a name given to the Logical Volume, it can be anything, VG1 is the name of the Volume Group from the previous step) | ***lvcreate -L 16M -n BOOT VG1 (16M is the size of the first "Partition", BOOT is just a name given to the Logical Volume, it can be anything, VG1 is the name of the Volume Group from the previous step) | ||
*** lvcreate -L 16G -n ROOT VG1 | ***lvcreate -L 16G -n ROOT VG1 | ||
** Mount (...but Format first) the Volume Group(s) | **Mount (...but Format first) the Volume Group(s) | ||
*** LVDISPLAY (shows the available LVs in /dev/NameOfVolumeGroup/NameOfLogicalVolume) | ***LVDISPLAY (shows the available LVs in /dev/NameOfVolumeGroup/NameOfLogicalVolume) | ||
*** mkfs.ext4 -L BOOT /dev/VG1/BOOT -v (where -L BOOT is just the name of the Partition) | ***mkfs.ext4 -L BOOT /dev/VG1/BOOT -v (where -L BOOT is just the name of the Partition) | ||
*** mnt /dev/VG1/BOOT /mnt/BOOT (mkdir /mnt/BOOT first) | ***mnt /dev/VG1/BOOT /mnt/BOOT (mkdir /mnt/BOOT first) | ||
*** | *Steps for Creating an LVM "Partition" (IE, leave the MBR, "MBR Gap", and /boot Partitions intact. | ||
**...same as above, but instead of referring to an entire drive (/dev/sda), refer to a partition (/dev/sda1) | |||
====GRUB==== | ====GRUB==== |