User Tools
Writing /app/www/public/data/meta/databaseandnetworkmanagement/partitioning_a_server_with_lvm.meta failed
databaseandnetworkmanagement:partitioning_a_server_with_lvm
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| databaseandnetworkmanagement:partitioning_a_server_with_lvm [2017/06/30 11:45] – 1carew1 | databaseandnetworkmanagement:partitioning_a_server_with_lvm [2021/06/25 10:09] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Partitioning Logical Volumes on a Server ====== | ||
| + | |||
| + | < | ||
| + | # View the partitions | ||
| + | lvdisplay | ||
| + | # Set the parition size - https:// | ||
| + | lvresize --size 0.5T -r / | ||
| + | # This leave 0.4T left | ||
| + | # Create the volume | ||
| + | lvcreate -L 1T -n lv_mysql_data | ||
| + | lvcreate -L 1T -n lv_backup | ||
| + | # Create the file system - https:// | ||
| + | mkfs.ext4 / | ||
| + | mkfs.ext4 / | ||
| + | # Make Directory to Mount | ||
| + | mkdir -p / | ||
| + | mkdir /backup | ||
| + | # Mount the volume | ||
| + | mount / | ||
| + | mount / | ||
| + | # Edit file to specify default mounts - /etc/fstab | ||
| + | / | ||
| + | / | ||
| + | </ | ||