One Logical Volume named lv1 is created under vg0. The Initial Size of that Logical Volume is 100MB. Now you required the size 500MB. Make successfully the size of that Logical Volume 500M without losing any data. As well as size should be increased online.
Answer is in the explanation below.
Reference / correct answer:
See explanation below.
The LVM system organizes hard disks into Logical Volume (LV) groups. Essentially, physical hard disk partitions (or possibly RAID arrays) are set up in a bunch of equal sized chunks known as Physical Extents (PE). As there are several other concepts associated with the LVM system, let's start with some basic definitions:
Physical Volume (PV) is the standard partition that you add to the LVM mix. Normally, a physical volume is a standard primary or logical partition. It can also be a RAID array.
Physical Extent (PE) is a chunk of disk space. Every PV is divided into a number of equal sized PEs. Every PE in a LV group is the same size. Different LV groups can have different sized PEs.
Logical Extent (LE) is also a chunk of disk space. Every LE is mapped to a specific PE.
Logical Volume (LV) is composed of a group of LEs. You can mount a file system such as /home and /var on an LV.
Volume Group (VG) is composed of a group of LVs. It is the organizational group for LVM. Most of the commands that you'll use apply to a specific VG. Verify the size of Logical Volume: lvdisplay /dev/vg0/lv1
Verify the Size on mounted directory: df -h or df -h mounted directory name Use: lvextend -L+400M /dev/vg0/lv1 ext2online -d /dev/vg0/lv1 to bring extended size online. Again Verify using lvdisplay and df -h command.
Question 2
SIMULATION
According the following requirements to create user, user group and the group members:
- A group named admin.
- A user named mary, and belong to admin as the secondary group.
- A user named alice, and belong to admin as the secondary group.
- A user named bobby, bobby’s login shell should be non-interactive. Bobby not belong to admin as the secondary group.Mary, Alice, bobby users must be set "password" as the user's password.
Answer is in the explanation below.
Reference / correct answer:
See explanation below.
groupadd admin useradd -G admin mary useradd -G admin alice useradd -s /sbin/nologin bobby echo "password" | passwd --stdin mary echo "password" | passwd --stdin alice echo "password" | passwd --stdin bobby
Question 3
SIMULATION
Configure a HTTP server, which can be accessed through http://station.domain40.example.com. Please download the released page from http://ip/dir/example.html.
Answer is in the explanation below.
Reference / correct answer:
See explanation below.
# yum install -y httpd
# chkconfig httpd on
# cd /var/www/html
# wget http://ip/dir/example.html
# cp example.com index.html
# vim /etc/httpd/conf/httpd.conf
NameVirtualHost 192.168.0.254:80
DocumentRoot /var/www/html/
ServerName station.domain40.example.com
Limited Time Offer – Save Now!
Don’t miss out — get full access at the best price.