Hello ,
I success to extend the disk using parted command :
[root@appliance ~]# parted
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: Msft Virtual Disk (scsi)
Disk /dev/sda: 64.4GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 538MB 537MB primary ext4 boot
2 538MB 4833MB 4295MB primary xfs
3 4833MB 5907MB 1074MB primary xfs
4 5907MB 60.0GB 54.1GB extended
5 5908MB 60.0GB 54.1GB logical xfs
but when i check the disk size using df -h command i still see the /var/lib/mysql 4.5G
[root@appliance ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 17M 1.9G 1% /run
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sda2 4.0G 980M 3.1G 24% /
/dev/sda1 488M 80M 373M 18% /boot
/dev/sda3 1014M 40M 975M 4% /tmp
tmpfs 392M 0 392M 0% /run/user/0
/dev/sda5 4.5G 706M 3.8G 16% /var/lib/mysql
please help me how to extend the /var/lib/mysql
I success to extend the disk using parted command :
[root@appliance ~]# parted
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: Msft Virtual Disk (scsi)
Disk /dev/sda: 64.4GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 538MB 537MB primary ext4 boot
2 538MB 4833MB 4295MB primary xfs
3 4833MB 5907MB 1074MB primary xfs
4 5907MB 60.0GB 54.1GB extended
5 5908MB 60.0GB 54.1GB logical xfs
but when i check the disk size using df -h command i still see the /var/lib/mysql 4.5G
[root@appliance ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 17M 1.9G 1% /run
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sda2 4.0G 980M 3.1G 24% /
/dev/sda1 488M 80M 373M 18% /boot
/dev/sda3 1014M 40M 975M 4% /tmp
tmpfs 392M 0 392M 0% /run/user/0
/dev/sda5 4.5G 706M 3.8G 16% /var/lib/mysql
please help me how to extend the /var/lib/mysql
.
Comment