Problem description:
Default TurboTier data disk which 1 TB is full i.e 100%, or a larger deployment size is needed.
Filesystem: /dev/mapper/vg1-vol1Mounted on : /mnt/dataUse%: 100%
Cause
TurboTier store size is full
Resolution
When you need to increase the size of an existing disk in a Linux environment, follow these steps:
1. Increase Disk Size in VMware
Navigate to the settings of your virtual machine in VMware
Increase the size of the desired disk (for example, extend the disk as required)
2. Connect to the Linux Server
Use a terminal client like PuTTY to log in to the Linux server
3. Verify Current Disk Size and Structure
Run the following commands:
df -h
fdisk -l
lsblk
df -h: Displays disk usage and mounted partitions
fdisk -l: Lists all available disks and partitions
Standard Disk Expansion (For < 2TB or No Partition Limit Issues)
4. Resize the Physical Volume
pvresize /dev/sdb
(Replace /dev/sdb with the correct disk)
5. Extend the Logical Volume
lvextend --size +1.21T /dev/mapper/vg1-vol1
(or use +100%FREE to allocate all available space)
6. Resize the Filesystem
For ext4:
resize2fs /dev/mapper/vg1-vol1
For XFS:
xfs_growfs /dev/mapper/vg1-vol1
7. Verify the New Size
df -h
Additional Steps (For Disks > 2TB / MBR to GPT Conversion Required)
Follow these steps if the disk expansion crosses 2TB or partition limitations are encountered.
1. Unmount the Volume
umount -l /mnt/data
2. Convert MBR to GPT
gdisk
w
Y
3.Reload Partition Table
partprobe /dev/sdb
lsblk /dev/sdb
4. Grow Partition
growpart /dev/sdb 1
lsblk /dev/sdb
5. Resize LVM Physical Volume
pvresize /dev/sdb1
pvs
(Expected: Updated size with free space available)
6. Extend Logical Volume
lvextend -l +100%FREE /dev/vg/lv
lvs
7. Check Filesystem
e2fsck -f /dev/vg/lv
8. Grow Filesystem
resize2fs /dev/vg/lv
9. Remount and Validate
mount /mnt/data
df -h
lsblk
Adding an Additional Disk in Linux
Adding a new disk to your system involves initializing the disk and incorporating it into your volume group.
Shutdown the Virtual Machine
Power off the virtual machine before adding the new disk.
Attach a New Volume in VMware
Add a new virtual disk to the machine with the desired size (e.g., 400 GB).
Power on the Virtual Machine
Start the virtual machine and log in via SSH.
Identify the New Disk
Run the following command to identify the newly added disk:
fdisk -l | grep -i /dev/sdExample output:
Disk /dev/sdc: 400 GB, 400000000000 bytesHere,
/dev/sdcis the new disk.
Initialize the New Disk as a Physical Volume
Format the new disk for use with LVM:
pvcreate /dev/sdc
Extend the Volume Group
Add the new physical volume to your existing volume group:
vgextend vg1 /dev/sdc
Extend the Logical Volume
Verify the New Size
Check the updated volume and filesystem size:
df -h vgs
Example for Adding a 400 GB Disk
For a scenario where you’ve added a 400 GB disk (/dev/sdc):