PV (Physical Voulum)
PVRA
VGRA
User Data Area
BBRA
Foot Data (System Vol)
LVM
Physical Volumn Logical
Volumn -> Group -> Volumn
DEV / VGXX / GROUP / DEV / VGXX / LVDX
/ DEV / VGXX / RLVOLX
Equipment master
64: Disk
Equipment period:
OX 01 00 02
| /
Volume group number logical volume
PV -> PE (Physical Extend)
PV -> vg ->
Lv
-> le (4m)
Diskinfo / dev / rdsk / c0t5d0
Display disk information
Steps to create a LVM and file system
1 Find device file name
ioscan -func disk
2 media check
Mediainit / dev / rdsk / c0t3d0
* 3 Create a physical volume
PVCREAT -F / DEV / RDSK / C0T3D0
4 Create a directory for the volume group
MKDIR / DEV / VG01
* 5 Create a special group file group, (disk master number is 64)
MKNOD / DEV / VG01 / GROUP C 64 0x010000
* 6 Add PV to VG
Vgcreate / dev / vg01 / dev / dsk / c0t3d0
7 check the volume group created
Vgdisplay -v VG01
Pvdisplay / dev / dsk / c0t3d0
* 8 Create LV in Volume VG01
Lvcreate -l 16 VG01
9 check the LV status
VgDisplay -V
Lvdisplay -V / dev / vg01 / lvol06
* 10 Create a file system on LV03
NEWFS -F VXFS / DEV / VG01 / RLVOL06
11 hang file system
Mount / dev / vg01 / lvol06
Extend logical volume, you need to have free PE in VG
LVEXTEND -L 10 / DEV / VG01
-L follows the number of LEs
File system type
HFS High Performance File System
JFS Jounaled File System (VXFS)
NFS Network File System
CDFS CD-ROM File System
The kernel must be placed on HFS
FSTYP / DEV / RLVOL01 View file system type
File system structure
Super block
I node
table of Contents
data block
The root directory node is on the 2 I node
Hard connection increases a i node to the same data block, hard connection cannot leapfly, you cannot connect to the directory
HFS
HFS's super block backup information is placed in / var / adm / sbtab
HFS block size: default 8K, block is the smallest read unit
The HFS section can be 1/2, 1/4, 1/8 block size
View hangs
Mount -V
BDF
DF
Uninstall file system
Umount / DEV / VG-1 / LVOL01
Umount / myfs
View files and directorys are accessing,
FUSER -
UK
/ DEV / VG01 / LVOL01
-k kills related processes
Refresh buffer storage area
SYNCER executes script by startup
Sysnc manual execution
FSck -f HFS / DEV / VG00 / LVOL1
Check the file system, to uninstall the file system before run, to optimize performance, using disk-character device file
-b Select Super Block
-f enforces FSCK, can only be used for single user mode, then rebooted with boot -n, no refreshing buffer
FSCK's option for JFS
-o full of JFS comprehensive inspection
-o nolog blocks the intent of the log recovery backup / restore the configuration of LVM Group
Vgcfgbackup
VGCFGRESTORE
Create a device swap area available
Newfs do in the reserved space at the end of the disk
LvcReate uses the entire logical volume
File exchange area
Create / Paging directory in the directory, the exchange block size is 2MB, one but enable until the next system starts,
This file system can be uninstalled when not in use.
LvlnBoot -V Display Information Configuration System startup disk
Lvlnboot -s / dev / vg00 / lvol01 defines lvol01 as the main switching area
The default main switch area is with / file system in a disk
default
Lvol01 / file system
Lvol02 SWAP master exchange area
Lvol3 / stand
Swapon / dev / vg01 / myswap
Swapon / DEV / DSK / C0T2D0
Swapon -p 4 -l 4m / myfs
Swapon -a
-e file system, space after using the file system
-f cover file system
-p priority, the smaller the number, the higher the priority
Exchange area can join automatic load entries in FSTAB
The switch area defaults to 512m (256 blocks)
SwapInfo Shows Exchange Area Information
Dmesg Shows Information
The switching area is set to 2 times in memory.