NASA LAB RAID / Partition / LVM

NASA LAB RAID / Partition / LVM

NASA LAB RAID / Partition / LVM Chiachi / Tinray Before We Start Download what we need for today. linux1 linux2 linux3 linux4 google drive Username : nasa Password : nasa2018 Levels of Storage ● Application Application Read/Write on filesystem. ● Filesystem Filesystem Handle lock, permission, journaling … Ex : ext 2/3/4 , xfs, NTFS, FAT32 Block Device ● Block device What really stores things. RAID Redundant Arrays of Independent Disks Disk Disk Virtual Disk Operating Disk RAID X System Disk Virtual Disk Disk Why RAID? 1. Performance 2. Reliability 3. Storage pooling Performance Example : RAID 0 Reliability Example : RAID 1 More About RAID RAID 1+0, RAID 0+1 (combination of RAID 0 & RAID 1) RAID 5 , RAID 6 … Wiki Partition Why Partitioning? 1. Separate OS and personal data 2. Multiple operating systems 3. Make backup more flexible 4. Improve performance (smaller partition) MBR Primary Partition Extended Partition Logical Partition parted LV LV LVM Logical Volume Manager VG PV PV PV PV PV Disk Disk Disk Partition Partition Why LVM? 1. Storage pooling 2. Resizing 3. Snapshots PV Stage pvcreate <partition> ex : pvcreate /dev/sdb1 pvscan VG Stage vgcreate -s <size> <vg_name> <pv_name> ex : vgcreate -s 5G nasa-vg /dev/sdb1 vgscan LV Stage lvcreate -L <size> -n <lv_name> <vg_name> ex : lvcreate -L 2G -n nasa-lv nasa-vg lvresize -L +/-<size> <lv_path> ex : lvresize -L +500M /dev/nasa-vg/nasa-lv lvscan Exercise Then you can use Terminal or Git BASH to ssh on the virtual machine. ssh [email protected] Goal /dev/sdb ● Use GPT partition table ● Create first partition with size 16G and xfs filesystem ● Create second partition with the rest of the size and label as lvm Goal ● Create a volume group “nasa-vg” with the second partition of /dev/sdb and the entire /dev/sdc ● Create a logical volume with 30G name “lv-<student_id>” and ext4 filesystem Goal ● Mount the first partition of /dev/sdb under /backup ● Mount /dev/nasavg/lv-<student_id> under /student Useful commands ● lsblk See block devices as well as partitions even not mounted. ● df -h See usage of mounted partitions. Useful commands ● mkfs -t <filesystem> <partition_path> ● mount <partition_path> <mount_path> If You Still Have Time... Try to resize /dev/nasavg/lv-<student_id> with those extra unused space..

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    34 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us