You have a Linux system that has a 1000GB hard disk drive, which has a 90GB part
ID: 3887913 • Letter: Y
Question
You have a Linux system that has a 1000GB hard disk drive, which has a 90GB partition containing an ext4 filesystem mounted to the / directory and a 4GB swap partition. Currently, this Linux system is only used by a few users for storing small files; however, the department manager wants to upgrade this system and use it to run a database application that will be used by 100 users. The database application and the associated data will take up over 200GB of hard disk space. In addition, these 100 users will store their personal files on the hard disk of the system. Each user must have a maximum of 5GB of storage space. The department manager has made it very clear that this system must not exhibit any downtime as a result of hard disk errors. How much hard disk space will you require, and what partitions would you need to ensure that the system will perform as needed? Where would these partitions be mounted? What quotas would you implement? What commands would you need to run and what entries to /etc/fstab would you need to create? Justify your answers.
Explanation / Answer
The Linux system has a harddisk of 1000GB in which 90 GB partition containing an ext4 filesystem and a 4GB swap partition. The database application will take up over 200GB and there are 100 users for each user 5GB sapce has to be needed in order to store the personal data. For this requirement the best the partition type is LVM(linux volume manager).
In order to work with LVM it consists of physical volume(PV's), Volume group(VG's), Logical volume(LV's).
First we have create physical volumes before that we have to change the partition type to LVM. for this
fdisk /dev/sdb ---- formatting a partition.
n ---- creating new partition.
p/l ---- primary/extended partition.
t ---- changing the partition type to LVM(8e)
w ---- save the changes.
partprobe ---- updating the disk information.
Next we have to create the physical volumes PV's for the
pv create /dev/sdb1
pv create /dev/sdb2
in order to see the pv partition pvdisplay can be used. next volume group has to be created for this
vgcreate vg1 /dev/sdb1,/dev/sdb2.
vgdisplay.
we can extend the volume group by using vgextend and also we can reduce the volume group by vgreduce.then logical volume has to be created
lv create -L +700GB lv1 vg1.
after that we have create a directory mkdir directoryname. after that mount /dev/vg1/lv1 /directoryname
There by we can access the partition of type LVM
we can also make it parmanent mount in /etc/fstab
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.