Reduce (shrink) and resize raw disk at Proxmox 1. Check the status of raw disk: #e2fsck -fy /hdd-img/images/111/vm-111-disk-1.raw e2fsck 1.46.5 (30-Dec-2021) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /hdd-img/images/111/vm-111-disk-1.raw: 135279/327680000 files (1.8% non-contiguous), 857599886/1310720000 blocks 2. At first, check raw disk size: #qemu-img info /hdd-img/images/111/vm-111-disk-1.raw image: /hdd-img/images/111/vm-111-disk-1.raw file format: raw virtual size: 4.88 TiB (5368709120000 bytes) disk size: 3.59 TiB 3. Resize filesystem: -M - will resize to the minimum size based on saved files -p - will display progress bar #resize2fs -M -p /hdd-img/images/111/vm-111-disk-1.raw resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /hdd-img/images/111/vm-111-disk-1.raw to 852166716 (4k) blocks....
How to clone CentOS server to another one Step 1: Installing the Rsync Tool in CentOS For cloning to be successful the rsync command-line tool needs to be present on both servers. This will be used for mirroring the source server to the destination server and syncing all the differences between the two systems. Thankfully, modern systems come with rsync already pre-installed. To check the version of rsync installed run: $ rsync --version If you want to view additional information about rsync, execute the following rpm command : $ rpm -qi rsync Check Rsync Version in CentOS If rsync is missing, run the following command to install it in RHEL / CentOS / Fedora systems. $ sudo yum install rsync Step 2: Configure the Source Server There are directories and files that you may want to exclude from cloning because they are either already available in the destination server or are autogenerated. These include the /boot , /tmp and /dev directories. Therefor...
Hi,
ReplyDeleteand thank you bery much for your proposal.
The only one which work for me: Oracle Linux 7.3
Regards,
Coolatsa