1.vSphere Client にログインして、ハード ディスク 3 の容量を希望のサイズまで引き上げます。 ↓ ハードディスク1を30GBから60GBへ増加
2.アプライアンス上で拡張
root@20-vcd-01 [ ~ ]##partedをインストール root@20-vcd-01 [ ~ ]# tdnf install parted Refreshing metadata for: 'VMware Photon Extras 3.0 (x86_64)' Refreshing metadata for: 'VMware Photon Linux 3.0 (x86_64) Updates' Refreshing metadata for: 'VMware Photon Linux 3.0 (x86_64)' photon 387095 100% Installing: parted x86_64 3.2-10.ph3 photon-updates 1.11M 1168961 Total installed size: 1.11M 1168961 Is this ok [y/N]: y Downloading: parted 421923 100% Testing transaction Running transaction Installing/Updating: parted-3.2-10.ph3.x86_64 Complete! root@20-vcd-01 [ ~ ]##物理ディスク サイズの変更を認識させる root@20-vcd-01 [ ~ ]# echo 1 > /sys/class/block/sda/device/rescan root@20-vcd-01 [ ~ ]##ボリュームサイズ変更 root@20-vcd-01 [ ~ ]# parted /dev/sda GNU Parted 3.2 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print print Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 62914560 blocks) or continue with the current setting? Fix/Ignore? Fix Fix Model: VMware Virtual disk (scsi) Disk /dev/sda: 64.4GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 3146kB 2097kB bios_grub 2 3146kB 423MB 419MB ext3 4 423MB 2570MB 2147MB linux-swap(v1) 3 2570MB 32.2GB 29.6GB ext3 (parted) resizepart 3 resizepart 3 Warning: Partition /dev/sda3 is being used. Are you sure you want to continue? Yes/No? Yes Yes End? [32.2GB]? 64.6GB 64.6GB (parted) print print Model: VMware Virtual disk (scsi) Disk /dev/sda: 64.4GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 3146kB 2097kB bios_grub 2 3146kB 423MB 419MB ext3 4 423MB 2570MB 2147MB linux-swap(v1) 3 2570MB 64.4GB 61.9GB ext3 ★61.9GBへ容量が増えている (parted) (parted) q q Information: You may need to update /etc/fstab. root@20-vcd-01 [ ~ ]# root@20-vcd-01 [ ~ ]# df -Ph / Filesystem Size Used Avail Use% Mounted on /dev/sda3 28G 2.4G 24G 10% / root@20-vcd-01 [ ~ ]# root@20-vcd-01 [ ~ ]# resize2fs /dev/sda3 resize2fs 1.45.5 (07-Jan-2020) Filesystem at /dev/sda3 is mounted on /; on-line resizing required old_desc_blocks = 2, new_desc_blocks = 4 The filesystem on /dev/sda3 is now 15101179 (4k) blocks long. root@20-vcd-01 [ ~ ]# root@20-vcd-01 [ ~ ]# root@20-vcd-01 [ ~ ]# df -Ph / Filesystem Size Used Avail Use% Mounted on /dev/sda3 57G 2.4G 52G 5% / ★57Gへ容量が増えている root@20-vcd-01 [ ~ ]#