1) How can we do an easy backup (possibly 1:1 copy) of the entire disk?
2) What is the correct approach to resize an lvm partion?
Here is the partion map:
Code: Select all
Disk /dev/sda: 999.7 GB, 999653638144 bytes, 1952448512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Identificativo disco: 0x573a96bf
Dispositivo Boot Start End Blocks Id System
/dev/sda1 63 80324 40131 de Dell Utility
/dev/sda2 * 81920 4276223 2097152 c W95 FAT32 (LBA)
/dev/sda3 4276224 5300223 512000 83 Linux
/dev/sda4 5300224 1952448511 973574144 5 Extended
/dev/sda5 5302272 1952448511 973573120 8e Linux LVM
Disk /dev/mapper/centos-root: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/centos-swap: 8187 MB, 8187281408 bytes, 15990784 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/centos-home: 935.0 GB, 934994247680 bytes, 1826160640 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Code: Select all
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931G 0 disk
├─sda1 8:1 0 39,2M 0 part
├─sda2 8:2 0 2G 0 part
├─sda3 8:3 0 500M 0 part /boot
├─sda4 8:4 0 1K 0 part
└─sda5 8:5 0 928,5G 0 part
├─centos-root 253:0 0 50G 0 lvm /
├─centos-swap 253:1 0 7,6G 0 lvm [SWAP]
└─centos-home 253:2 0 870,8G 0 lvm /home
sr0 11:0 1 1024M 0 rom
Dell PowerEdge T430
CentOS 7 (Core) - Kernel 3.1.0-514.21.1.el7.x86_64
Thanks in advance for all the help!