In this lab, you will practice retrieving system hardware information and adding virtual hardware by configuring an additional storage device in your virtual machine. For each task, take a screenshot showing your command and as much of the output as is showing in your terminal window. These screenshots will be put together into a single pdf for submission. Questions which ask for you to describe or explain something should have their answers in the PDF file next to any screenshots that apply to them.
The following tasks will introdce you to identifying hardware present in your system.
lshw -short
or lshw -businfo
, identify the names of your network interface device and your disk device and your cdrom device if you have one.lscpu
command to determine your cpu architecture, cpu model name, cpu clock speed, cpu cache(s) size(s), and number of cpu cores. Does the arch
command show the same cpu architecture as the lspcu
command?lshw -class memory
to determine your BIOS vendor, BIOS description, BIOS version, and BIOS revision date.lshw -class memory
to determine how many motherboard slots have DIMMs in them and how big each one is.vmstat
and free
commands?lshw -class disk
command to produce a list of your storage devices showing, vendor, product (name and capacity), serial number, and version information.In this section, you will run a tiny script to create activity in your system. While that script is running, you be able to observe system resource utilization in multiple ways.
while (true) do find / -type f -exec sort {} \; >&/dev/null;done
vmstat 3
and iostat 3
to see how much disk and cpu activity is generated by the search and sort going on in the other window.
CTRL-C
to terminate each of the iostat
and vmstat
commands, as well as the sort
task running in the other terminal window when you complete this task.The following steps will walk you through adding a new disk device to an existing system. WARNING: You can easily destroy your vm if you do not follow instructions carefully. It is advisable to create a snapshot of your VM before beginning this task. The only screenshot needed for this task is the output of Step 12.
sudo poweroff
lsblk
to find the device name for your new disk device (probably sdb).
sudo fdisk /dev/yourdevicename
to create a single primary partition on the disk that is the size of the entire disk. Run
lsblk
to verify you now have a partition available on the disk.
mkfs
to make a filesystem on your new partition.
sudo mkfs /dev/yournewpartition
lsblk --output NAME,UUID,FSTYPE,SIZE,MOUNTPOINT
to see your new filesystem and get its UUID.
sudo mkdir /backups
sudo vi /etc/fstab
sudo mount /backups
to mount your new filesystem.
lsblk
df -h
cat /etc/fstab
lsblk
df -h
For each task, take a screenshot showing your command and as much of the output as is showing in your terminal window. These screenshots must be put together into a single PDF file for submission. Questions which ask for you to describe or explain something should have their answers in the PDF file next to any screenshots that apply to them. Submit only one PDF file.