CIS UNIX System Administration

Similar documents
Linux System Administration, level 1. Lecture 4: Partitioning and Filesystems Part II: Tools & Methods

Adding a block devices and extending file systems in Linux environments

7. Try shrinking / -- what happens? Why? Cannot shrink the volume since we can not umount the / logical volume.

Changing user login password on templates

As this method focuses on working with LVM, we will first confirm that our partition type is actually Linux LVM by running the below command.

Manage your disk space... for free :)

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

example.com index.html # vim /etc/httpd/conf/httpd.conf NameVirtualHost :80 <VirtualHost :80> DocumentRoot /var/www/html/

Red Hat Enterprise Linux 6 Server Instruction Guide for Creating Volume in Free Disk Space

Disks, Filesystems Todd Kelley CST8177 Todd Kelley 1

Quota LVM (Logical Volume Manager)

Braindumps EX200 15q

EX200 EX200. Red Hat Certified System Administrator RHCSA

EX200.Lead2pass.Exam.24q. Exam Code: EX200. Exam Name: Red Hat Certified System Administrator RHCSA. Version 14.0

Vendor: RedHat. Exam Code: EX200. Exam Name: Red Hat Certified System Administrator - RHCSA. Version: Demo

Red Hat.Actualtests.EX200.v by.Dixon.22q. Exam Code: EX200. Exam Name: Red Hat Certified System Administrator (RHCSA) Exam

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Seltestengine EX200 24q

BT Cloud Compute. Adding a Volume to an existing VM running Linux. The power to build your own cloud solutions to serve your specific business needs

RH202. Redhat Certified Technician on Redhat Enterprise Linux 4 (Labs) Exam.

EX200.redhat

Disks, Filesystems, Booting Todd Kelley CST8177 Todd Kelley 1

Getting Started with Pentaho and Cloudera QuickStart VM

SA3 E7 Advanced Linux System Administration III Internet Network Services and Security

EX200.exam.35q. Number: EX200 Passing Score: 800 Time Limit: 120 min. EX200. Red Hat Certified System Administrator RHCSA

System Administration. Storage Systems

Commands LVM information can be created, displayed, and manipulated with the following commands:

Exam Name: Red Hat Certified Engineer on Redhat

An introduction to Logical Volume Management

jfield Documentation Release 1 Jason Field

How To Resize ext3 Partitions Without Losing Data

Advanced Linux System Administra3on

This section describes the procedures needed to add a new disk to a VM. vmkfstools -c 4g /vmfs/volumes/datastore_name/vmname/xxxx.

File system manager. Single tool to manage your storage. Red Hat. October 24, 2011

Back Up (And Restore) LVM Partitions With LVM Snapshots

This is sometimes necessary to free up disk space on a volume that cannot have extra disk space easily added.

How to add additional disks to XenServer host

Arch Linux with an SSD Cache using LVM on BCache. Jeremy Runyan

Linux Systems Security. Backup and Change Management NETS Fall 2016

Exam Questions RH202

Testpassport.

Comparison between Tru64 UNIX and HP-UX Filesystems and Volume-Managers

Cloning and Repartitioning sessionmgr Disks

Set up an encrypted NAS on Odroid- C2 or Rasbperry 3 with OpenMediaVault. Jens Getreu. Revision History

Disks, Filesystems 1

LPI EXAM LPI Level 2 Exam 201, Advanced Level Linux Certification, Part 1 of 2. Buy Full Product.

LPIC-1 System Administrator

File systems and Filesystem quota

exacqvision Virtual Appliance User Manual

TestOut Linux Pro - English 4.0.x OBJECTIVE MAPPING: CompTIA Linux+ LX0-103

1. Set up the storage to allow access to the LD(s) by the server following the NEC storage user guides.

NASA Lab. Partition/Filesystem/Bootloader. TinRay, Yu-Chuan

UUID and R1Soft. What is a UUID and what is it used for?

Design of a Cluster Logical Volume Manager Abhinay Ramesh Kampasi Pune Institute of Computer Technology, University of Pune.

LVM HOWTO. AJ Lewis. Copyright 2002 Sistina Software, Inc

Turtles all the Way Down. Image 2013 CC-BY-NC-SA by Tony Gray

LVM Administrator's Guide. Configuration and Administration 5.2

Tru64 UNIX and HP-UX File Systems and Volume Managers

EX200 Exam Questions Demo Red Hat. Exam Questions EX200

MFT / Linux Setup Documentation May 25, 2008

EX200 - EX200 Red Hat Certified System Administrator (RHCSA) Exam

SA2 v6 Linux System Administration II Net Configuration, Software, Troubleshooting

Univention Corporate Server. Extended installation documentation

SAP HANA Restore Guide (for A2040d SLES) 23 rd of January 2017 NEC SAP Global Competence Center

OPS235. Linux File Systems Partitioning Mounting File Systems

Exam Questions EX200

Red Hat Enterprise Linux 5 Logical Volume Manager Administration. LVM Administrator's Guide Edition 1

LVM HOWTO. AJ Lewis. <lewis(at)sistina.com> Copyright 2002 Sistina Software, Inc

More on file systems, Booting Todd Kelley CST8177 Todd Kelley 1

Novell SUSE Linux Enterprise Server

exam.30q. Number: Passing Score: 800 Time Limit: 120 min File Version: 1 LPI

mdadm Contents From Wikipedia, the free encyclopedia mdadm is a Linux utility used to manage software RAID devices. mdadm

CompTIA Linux Course Overview. Prerequisites/Audience. Course Outline. Exam Code: XK0-002 Course Length: 5 Days

Installation of the OS

Ubuntu - How to Create Software RAID 1 in Ubuntu Linux - Tutorial

Virtualization Provisioning & Centralized Management with iscsi. RACF Brookhaven National Laboratory James Pryor CHEP 2010

Kernel Korner. What Is AoE? ATA Over Ethernet: Putting Hard Drives on the LAN. Ed L. Cashin. Abstract

FORTINET DOCUMENT LIBRARY FORTINET VIDEO GUIDE FORTINET BLOG CUSTOMER SERVICE & SUPPORT FORTIGATE COOKBOOK FORTINET TRAINING SERVICES

Fedora Linux Installation Guide

Linux Hardware Management. Linux System Administration COMP2018 Summer 2017

Exam Actual. Higher Quality. Better Service! QUESTION & ANSWER

How to increase XenServer virtual machine root or swap partition

Univention Corporate Server. Extended installation documentation

RHCE BOOT CAMP. Filesystem Administration. Wednesday, November 28, 12

RocketRAID 2522 SATA Controller Ubuntu Linux Installation Guide

Server guides for the GIRAF project

Using iscsi On Debian Lenny (Initiator And Target)

Partitioning and Formatting Guide

Rocket RAID 2644 SAS Controller opensuse Linux Installation Guide

Test-king q

Disks & File Systems. Dick Gillman, ITSS. 1/19/06 10:20:11 am docs/disks.sxi

iscsi storage is used as shared storage in Redhat cluster, VMware vsphere, Redhat Enterprise Virtualization Manager, Ovirt, etc.

"Charting the Course... MOC B: Linux System Administration. Course Summary

Manual File System Check Linux Command Line

RED HAT ENTERISE LINUX 5, 6, AND 7 Common administrative commands

ONTAP Select with NVMe Storage

ECE590 Enterprise Storage Architecture Homework #2: Drives and RAID

Veritas Volume Manager Conversion

Total Backup Recovery Server for Linux. User s Guide

Vertica on Microsoft Azure HPE Vertica Analytic Database. Software Version: 7.2.x

Transcription:

Lab 11: Lab notes: - Lab 10 successful completion is a prerequisite for this lab - The sda8, sda9 partitions below may change based on current disk partition. See instructor for current # s. - After the labs. The original /home partition is to be restored for subsequent lab. So these labs will be graded in class 1)Freeing up disk space Use fdisk to delete /share /home, Ubuntu partitions, swap (as appropriate). Remove from /etc/fstab: /share, swap, Rerun grub2-mkconfig -o /boot/grub2/grub.cfg Rerun grub2-install /dev/sda (see Internet for current commands) See Lab 11 recovery if necessary for swap space removal. RAID 0 Exercise 2) Create LVM partitions: fdisk -l fdisk /dev/sda n, +10G n, +10G t, 8e t,8e w fdisk -l into single user mode (how?) 3) Create physical volumes: pvcreate /dev/sda8 /dev/sda9 pvremove /dev/sda8 /dev/sda9 pvdisplay /dev/sda8 /dev/sda9 pvcreate /dev/sda8 /dev/sda9 pvdisplay /dev/sda8 /dev/sda9 4) Create volume group vgcreate vg1 /dev/sda8 /dev/sda9 vgdisplay vgscan vgrename vg1 homevol vgdisplay vgremove homevol vgcreate homevol /dev/sda8 /dev/sda9

5) Create logical volume lvcreate --name newhome --size 5G homevol lvscan lvrename homevol newhome home lvremove /dev/homevol/home lvcreate --name home --size 5G homevol lvreduce -L1G /dev/homevol/home 6) Create and restore the filesystem mkfs -t ext3 /dev/homevol/home # ormke2fs j /dev/homevol/home mount /dev/homevol/home /home # Untar the backup to /home update /etc/fstab to point /home to new filesystem on /dev/homevol/home 7) Increase filesystem size vi fstab, restore old /home filesystem, umount /dev/homevol/home tune2fs -O ^has_journal /dev/homevol/home e2fsck -f /dev/homevol/home lvextend L10G /dev/homevol/home resize2fs /dev/homevol/home 10G tune2fs -j /dev/homevol/home mkdir /mnt/hometmp

8) Increase volume group size and filesystem size Add new partition fdisk /dev/sda n, +4G t,8e w? umount /dev/homevol/home pvcreate /dev/sda10 vgextend homevol /dev/sda10 tune2fs -O ^has_journal /dev/homevol/home e2fsck -f /dev/homevol/home lvextend L23G /dev/homevol/home resize2fs /dev/homevol/home 23G tune2fs -j /dev/homevol/home 9) RAID1 Exercise # Delete LV, VG, PV from RAID 0 exercise how? # Change partitions sda8, sda9,to type fd - how? mdadm --create /dev/md0 --level 1 -n 2 /dev/sda8 missing mdadm --manage /dev/md0 --add /dev/sda9 tail -f /proc/mdstat (monitor mirror build process) mkfs -t ext3 /dev/md0 Untar the backup to /mnt/hometmp echo "DEVICE /dev/sda8 /dev/sda9" >> /etc/mdadm.conf mdadm detail scan tee a /etc/mdadm.conf update /etc/fstab 10) Breaking the mirror (Note: make sure the last two commands against mdadm.conf are done) mdadm stop /dev/md0 # To restart and remount the RAID: mdadm assemble /dev/md0

11) Simulate RAID1 drive loss dd if=/dev/zero of=/dev/sda9 bs=1024 count=1024 mdadm detail scan /dev/md0 ls /mnt/hometmp # Re start raid with 1 drive. mdadm --fail /dev/md0 /dev/sda9 mdadm --detail -scan /dev/md0 (monitor mirror build process) # Use FDISK to delete and and redefine /dev/sda9 as type fd how? Recreate /dev/sda9 as fd Reboot mdadm add /dev/md0 /dev/sda9 ls al /mnt/hometmp LVM using RAID1 (bypass this lab for steps 13,14 12) LVM using RAID1 # Use the GUI to remove MD0 mdadm --create /dev/md0 --level 1 -n 2 /dev/sda8 missing mdadm --manage /dev/md0 --add /dev/sda9 tail -f /proc/mdstat (monitor mirror build process) pvcreate /dev/md0 vgcreate homevol /dev/md0 lvcreate --name home --size 10G homevol mke2fs -j /dev/homevol/home # Untar the backup to /mnt/hometmp # update mdadm.conf how? View LVM setup from GUI

Other file system types 13) Mounting /mnt/hometmp as ext4 umount /dev/md0 tune2fs -O extents,uninit_bg,dir_index /dev/md0 e2fsck -pdf /dev/md0 mount -t ext4 /dev/md0 /mnt/hometmp 14) Permanent Ext2 to Ext4 tune2fs j /dev/md0 tune2fs -O extents,uninit_bg,dir_index /dev/md0 e2fsck -fdc0 /dev/md0 15) Replace 10G /home as 40 Gb standalone partition in Ubuntu area (if necessary) 16) Remove disk quotas from /etc/fstab, delete aquota.user. 17) Reboot