System Administration Storage Systems Agenda Storage Devices Partitioning
- Slides: 65
System Administration Storage Systems
Agenda �Storage Devices �Partitioning �LVM �File Systems
STORAGE DEVICES
Single Disk
RAID?
RAID �Redundant Array of Independent Disks �Software vs. Hardware �RAID 0, 1, 3, 5, 6
Software RAID �Parity done by CPU �Fake. RAID �Linux md �LVM �ZFS, btrfs ◦ Later
Hardware RAID �RAID controller card �Dedicated hardware box
Direct Attached Storage �SAS interface
Storage Area Network �Fiber Channel �i. SCSI �ATA-over-Ethernet
Fiber Channel
Network Attached Storage �NFS �CIFS (think Windows File Sharing)
SAN vs. NAS
PARTITIONING
1 File System / Disk?
2 TB maybe… 2 TB x 12?
2 TB x 128 then?
Partitioning in Linux �fdisk ◦ No support for GPT �Parted ◦ GParted
Fdisk
Add Partition
Delete Partition
Save & Exit
Parted
Add Partition
Change Units
Delete Partition
No need to save �Any action you do is permanent �Parted will try to update system partition table
Script support �parted can also take commands from command line: ◦ parted /dev/sda mkpart pri ext 2 1 Mib 10 Gib
Resize (Expand) 1. ◦ 2. ◦ 3. Edit partition table Delete and create with same start position Reload partition table Reboot if needed Expand filesystem
Resize (Shrink) 1. ◦ 2. ◦ 3. ◦ 4. Shrink filesystem Slightly smaller than final Edit partition table Delete and create with same start position Reload partition table Reboot if needed Expand filesystem to fit partition
No Partition Moving
LOGICAL VOLUME MANAGER
What is LVM? �A system to manage storage devices �Volume == Disk
Why use LVM? �Storage pooling �Online resizing �Resize any way �Snapshots
Concepts �Physical Volume ◦ A disk or partition �Volume Group ◦ A group of PVs �Logical Volume ◦ A virtual disk/partition �Physical Extent ◦ Data blocks of a PV
Using a partition for LVM �Best 1. ◦ ◦ 2. to have a partition table Create partition with LVM type Fdisk: use “t” to change type to “ 8 e” Parted: toggle “lvm” flag pvcreate /dev/XXX
Create a volume group �vgcreate <name> /dev/XXX …
Add PVs to volume groups �vgextend <name> /dev/XXX …
Create a logical volume �lvcreate --name <name> --size <size> <volume group> �Size units: ◦ B, K, M, G, T … �Path to new volume ◦ /dev/<volume group>/<name>
More about LVM �https: //wiki. archlinux. org/index. p hp/LVM
FILE SYSTEMS
What is a File System? �A file system (or filesystem) is an abstraction to store, retrieve and update a set of files. �Learn more in OS course
Linux Disk File Systems �Ext Family ◦ Ext 2 ◦ Ext 3 ◦ Ext 4 �Reiser. FS �XFS �ZFS �Btrfs
Ext Family �Ext replaced MINIX file system �Ext 2 was major overhaul �Ext 3 adds ◦ Journaling ◦ Online expand ◦ Htree directory index (was linkedlist)
Ext Family cont. �Ext 4 ◦ ◦ ◦ ◦ adds Larger file system (> 2 TB) Extents Journal Checksum Increase subdirectory limit Delayed Allocation Persistent Pre-allocation …
Ext Family cont. �Default FS in many distros
Reiser. FS (Reiser 3) �By Hans Reiser / NAMESYS �Earlier than ext 3 �Fast for huge directories and small files �Features ◦ Journaling ◦ Online resize ◦ Tail packing
XFS �By SGI �Opensourced and ported to Linux �Fast for large filesystems and large files �Features ◦ Journaling ◦ Extents ◦…
ZFS �Filesystem + LVM �By Sun �Open-source but license not compatible with Linux �Available on ◦ Solaris ◦ Free. BSD (older/slower than Solaris) ◦ Linux using FUSE or “ZFS on Linux” �Basis for Sun Open Storage
Btrfs �Started by Oracle �Experimental �Comparable to ZFS
Recommendation �Use ext 4 or XFS �See manpages for tunables ◦ ◦ Features Block size RAID stripe size / stride width Journaling level
How to create a filesystem �/sbin/mkfs. <type> /dev/XXX ◦ Type: ext 2, ext 3, ext 4, xfs, reiserfs, … �ZFS and btrfs have special tools
Filesystem Utilities �Ext Family ◦ e 2 fsprogs �Reiser. FS ◦ reiserfsprogs �XFS ◦ xfsprogs
How to mount a filesystem �A filesystem is mounted at a “mount point”, a directory ◦ Contents of that directory are hidden �mount /dev/XXX /mnt �mount ◦ Shows currently mounted filesystems
How to unmount �unmount /dev/XXX �unmount /mnt
Automatic mounting �Add entry in /etc/fstab �Will mount during boot
Practice �Use a spare HDD or flat file ◦ Create a 10 G flat file with dd: ◦ dd if=/dev/zero of=XXX bs=1 M count=10 k �Play with fdisk/parted and LVM �Go through the docs or Wikipedia ◦ Learn the features
Homework: Write a script � Given 2 HDDs /dev/sdb /dev/sdc � Use parted in script mode to create LVM partitions on both HDDs � Add them to LVM volume group ◦ Use your student ID as the name � Create a 20 G LV named ID-1 � Create a 20 G LV named ID-2 � Undo (delete everything) � Be � Do and format as ext 4 and format as XFS sure to try it SAFELY before submitting not include any useless commands
- Fixed partitioning and dynamic partitioning
- Agenda sistemica y agenda institucional
- Insurance accounting and systems association
- Agenda management systems
- Agenda open systems
- Primary storage and secondary storage
- Primary storage and secondary storage
- Secondary storage provides temporary or volatile storage
- Object based and unified storage
- Types of storage devices
- Benefits of secondary storage
- What is physical storage
- Internal input devices
- Inkjet or laser printer
- 4 storage devices of computer
- Types of storage devices
- Secondary storage devices magnetic tape
- Introduction of storage devices
- Storage devices and media igcse ict
- Characteristics of storage devices
- Computer peripherals storage devices
- Backing storage
- What is tertiary storage
- Types of optical storage
- Mass storage devices are specialized high capacity
- Assignment on storage devices
- Storage devices
- 3 storage devices
- Storage devices presentation
- Data tape disposal
- Ramis registration
- System administration module
- Placement administration and support system
- Office ventilation
- Network operating system administration
- System administration outsourcing
- Ramis system
- Suny system administration
- Mitel system administration and diagnostics download
- Literary technique imagery
- Scanner is input or output device
- Directed line segment
- Partitioning numbers to 100
- Fielder vector
- Input space partitioning example
- Channel partitioning mac protocols
- African geography cloze notes
- Segment partition formula
- Directed line segment worksheet
- British colonies in africa
- 12.2 subdividing a segment in a given ratio answer key
- Partitioning a segment
- Fiduccia mattheyses algorithm example
- Greedy algorithm scheduling
- European partitioning across africa map
- What is equivalence class partitioning
- Weak normal equivalence class testing
- Equivalence classes testing
- Strong normal equivalence class testing
- Gause
- Realized niche
- Colonization
- Competitive exclusion vs resource partitioning
- Bsp binary space partition
- 3-way partitioning
- Partitioning a line segment formula