Task Description π
π 7.1: Elasticity Task
π Increase or Decrease the Size of Static Partition in Linux.
steps::::::::
for doing this task first we add a physical disk to the virtual machine
OF 10 Gib
for confirming disk is attached or not .
by fdisk -l command
now our next step is create partition in this harddisk
/dev/sdb
by using this command
fdisk /dev/sdb
sucessfully created partition of 4Gib
our next step is to format this newly created partition
formatted successfully
next step is to mount the partition
our next is to create a file in that folder to which partition attached .
next step is first we delete the partition for deleting we have to unmount the partition so that we create a new partition of increased size
now we create a new partition
size of new partition is increased .
now we again mount the partition to the same folder
our new partition is also is increased
now we check that our file is present or not
file and content also present both
now next step is to again reduce the partition
again we do same steps
unmouting the partition
for created partition with decrease size
first unmount the partition
checking for file system errors.
donβt need to delete the partition this time .
we reduce the partition size to 2 Gib size .
mount the partition to the same folder
/joshi
we check file is present or not
file and content both are present
and our task is also done successfully .