Unit 7 System Storage Overview
Unit 7 System Storage Overview
Unit 7 System Storage Overview
Copyright IBM Corporation 2009 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
5.2
Unit objectives
IBM Power Systems
After completing this unit, you should be able to: Describe the terminology and concepts associated with:
Physical volumes
Volume groups Logical volumes
Physical partitions
Logical partitions
Physical storage
Logical storage
File systems Directories Files
Partition 1 Partition 2
Partition 4
Partition 5 Partition 3
Problems: Fixed partitions Expanding size of the partition Limitation on size of a file system and a file Contiguous data requirement Time and effort required in planning ahead
Copyright IBM Corporation 2009
Volume group
Logical partitions (LPs)
1 2 3 4 5 6 x y z
write(data);
Application
Physical storage
IBM Power Systems
Volume group A
PV1
Volume group B
PV2
PPn
Big volume groups -t factor 1 2 4 8 16 32 64 1016 2032 4064 8128 16256 32512 65024 128 64 32 16 8 4 2
Volume groups
IBM Power Systems
Max PVs
32
Max LVs
Max PP Size
1 GB
256
Limits
Big
128
512
1 GB
Scalable
1024
4096
128 GB
rootvg
PV1
datavg
PV2
PV3
One-disk VG
Two-disk VG
Three-disk or more VG
VGDA
VGDA
VGDA VGDA
VGDA
VGDA
Logical storage
IBM Power Systems
Physical volumes
1 7 13 19 25 31 35 41 47 2 8 14 20 26 32 36 42 48 3 9 15 21 27 33 37 43 49 4 10 16 22 28 34 38 44 50 1 7 13 19 25 31 35 41 47 2 8 14 20 26 32 36 42 48 3 9 15 21 27 33 37 43 49 4 10 16 22 28 34 38 44 50
1 2 3 4 1 2 3 4
Logical partitions
Logical volume
Logical volume
Copyright IBM Corporation 2009
Different file systems are connected together through directories to form the view of files that users see.
Can strategically place it on disk for improved performance Some tasks are performed more efficiently on a file system than on each directory within the file system, for example, back up, move, secure an entire file system. Can limit disk usage of users by file system through quotas
Maintain integrity of the entire file system structure, for example, if one file system is corrupted, the others are not affected Special security situations
Organize data and programs into groups for ease of file management and better performance
hd4 / (root)
home
sbin
opt
lpp
proc
usr
mnt
etc tmp
hd1
hd10opt
hd2
hd9var
hd3
/
csm freeware
bin
/
lib sbin
/
spool adm tmp
/etc/filesystems
IBM Power Systems
/:
= = = = = = =
/home:
= = = = = =
= = = = = =
/home/team01:
Mount
IBM Power Systems
mount is the glue that logically connects file systems to the directory hierarchy. File systems are associated with devices represented by special files in /dev (the logical volume). When a file system is mounted, the logical volume and its contents are connected to a directory in the hierarchical tree structure.
# mount /dev/fslv00 /home/patsie
What to mount
Where to mount it
Copyright IBM Corporation 2009
Before
home
After
home
liz
john
patsie
liz
john
patsie
data
doc
data
doc
Before
home
After
home
liz
john
patsie
liz
john
patsie
reports
pgms
.profile .exrc
/
.profile .exrc myscript data doc data doc
# lsfs Name /dev/hd4 /dev/hd1 /dev/hd2 /dev/hd9var /dev/hd3 /proc /dev/hd10opt /dev/hd11admin /dev/fslv00
Nodename ----------
VFS Size jfs2 1966080 jfs2 131072 jfs2 4587520 jfs2 655360 jfs2 393216 procfs -jfs2 524288 jfs2 262144 jfs2 262144
Options --------rw
Accounting no no no no no no no no no
# lsvg -l rootvg rootvg: LV NAME hd5 hd6 hd8 hd4 hd2 hd9var hd3 hd1 loglv00 hd11admin fslv00
TYPE boot paging jfs2log jfs2 jfs2 jfs2 jfs2 jfs2 jfs2log jfs jfs2
LPs 1 8 1 15 35 5 3 1 1 2 2
PPs 2 16 2 30 70 10 6 2 2 4 4
PVs 2 2 2 2 2 2 2 2 2 2 2
LV STATE closed/syncd open/syncd open/syncd open/syncd open/syncd open/syncd open/syncd open/syncd closed/syncd open/syncd closed/syncd
MOUNT POINT N/A N/A N/A / /usr /var /tmp /home N/A /admin /db2
Checkpoint (1 of 3)
IBM Power Systems
5. V______ G______
6. P______ V______
2. P______ P ______
3. L_____ P______
4. L______ V_______
Copyright IBM Corporation 2009
Checkpoint solutions (1 of 3)
IBM Power Systems
5. Volume Group
6. Physical Volume
2. Physical Partition
3. Logical Partition
4. Logical Volume
Copyright IBM Corporation 2009
Checkpoint (2 of 3)
IBM Power Systems
7. How many different physical partition (PP) sizes can be set within a single VG? ____________ 8. By default, how big are PPs?
____________________________________________ ____________________________________________
9. How many volume groups (VGs) can a physical volume (PV) belong to? a) Depends on what you specify through SMIT b) Only one c) As many VGs as exist on the system 10. True or False: All VGDA information on your system is identical, regardless of how many volume groups (VGs) exist.
Checkpoint solutions (2 of 3)
IBM Power Systems
7. How many different physical partition (PP) sizes can be set within a single VG? One 8. By default, how big are PPs? Traditionally 4 MB, but LVM chooses an optimal size based on the #PPs/PV and the size of largest PV in the VG. 9. How many volume groups (VGs) can a physical volume (PV) belong to? a) Depends on what you specify through SMIT b) Only one c) As many VGs as exist on the system 10. True or False: All VGDA information on your system is identical, regardless of how many volume groups (VGs) exist. All VGDAs within a VG are the same.
Copyright IBM Corporation 2009
Checkpoint (3 of 3)
IBM Power Systems
11. With which logical volume is the /home file system associated? _____________________________________________________ 12. What type of file systems are being displayed? _____________________________________________________ 13. What is the mount point for the file system located on the /dev/hd4 logical volume? _____________________________________________ 14. Which file system is used primarily to hold user data and home directories? _____________________________________________________
Checkpoint solutions (3 of 3)
IBM Power Systems
11. With which logical volume is the /home file system associated? /dev/hd1 12. What type of file systems are being displayed? Enhanced journaled file systems (JFS2), and CD-ROM (CDRFS) 13. What is the mount point for the file system located on the /dev/hd4 logical volume? / 14. Which file system is used primarily to hold user data and home directories? /home
Copyright IBM Corporation 2009
Exercise 7
IBM Power Systems
System storage
Unit summary
IBM Power Systems
Having completed this unit, you should be able to: Describe the terminology and concepts associated with:
Physical volumes
Volume groups Logical volumes
Physical partitions
Logical partitions