Preface:
pre-project needs to be deployed under several sets of AIX environment RAC cluster, little contact before the AIX system, basic commands create a logical volume is up on her face and so on, but in fact a lot of information on the Internet under the search, to sum up, but also to facilitate their future reference.
Creating a Logical Volume
1. Check all disk devices
# the lsdev -Cc Disk
hdisk0 the Available 50-T1-01 Huawei XSG1 FC Disk Drive
hdisk1 the Available 50-T1-01 Huawei XSG1 FC Disk Drive
hdisk2 the Available 50-T1-01 Huawei XSG1 FC Disk Drive
50-T1-01 the Huawei the Available hdisk3 XSG1 the FC Disk Drive
hdisk4 the Available T1-01 the Huawei XSG1 the FC-50 Disk Drive
hdisk5 The T1-01 the Available the Huawei XSG1 the FC-50 Disk Drive
hdisk6, the Available T1-01 the Huawei XSG1 the FC-50 Disk Drive
hdisk7 the Available T1-01 Huawei XSG1 FC-50 Disk Drive
hdisk8 the Available 50-T1-01 Huawei XSG1 FC Disk Drive
hdisk9 the Available 50-T1-01 Huawei XSG1 FC Disk Drive
50-T1-01 the Huawei the Available hdisk10 XSG1 the FC Disk Drive
hdisk11 the Available T1-01 the Huawei XSG1 the FC-50 Disk Drive
hdisk12 the Available T1-01 the Huawei XSG1 the FC-50 Disk Drive
hdisk13 the Available T1-01 the Huawei XSG1 the FC-50 Disk Drive
hdisk14 the Available T1-01 the Huawei XSG1 the FC-50 Disk Drive
hdisk15 the Available T1-01 the Huawei XSG1 the FC-50 Disk Drive
hdisk16 the Available T1-01 the Huawei XSG1 the FC-50 Disk Drive
annotation: wherein hdisk0 local storage, hdisk1-13 a shared memory database , hdisk14-16 late application to mount shared storage for OGG data synchronization and database backup storage path of
2. View the disk size
# Bootinfo--s hdisk14
819200
# Bootinfo--s hdisk15
# Bootinfo--s hdisk16
3. Creating PV, OGG data backup and user database synchronization hdisk14-16
# the chdev hdisk14 the -l -a pv = yes
# the chdev the -l -a pv = yes hdisk15
PV = the chdev Yes -a # -l hdisk16
4. create a volume group VG
# -Y vgbackup the mkvg hdisk14 hdisk15 hdisk16
# vgbackup the lsvg
5. The Create Logical Volume LV - 2T space allocated
# -t JFS2 -Y lvbackup vgbackup the mklv 2000
# the crfs JFS2 lvbackup -m -d -v / Oracle -p 'RW' = -a LOGNAME 'the INLINE'
6. the mount point of view - in view VG LV distribution and corresponding file system
# -l vgbackup the lsvg
# Mount / Oracle
# chown -R oracle.dba / oracle
comment: set boot automatically mount, it is very important to modify / etc / filesystems configuration file, mount yes
supplement:
1. Check the volume group and the volume group details
# -o the lsvg
vgbackup
the rootvg
the lsvg the rootvg #
VOLUME the GROUP: the rootvg VG IDENTIFIER: 00fa363400004c0000000154ec43ceef
VG STATE: active PP SIZE: 256 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 799 (204544 megabytes)
MAX LVs: 256 FREE PPs: 592 (151552 megabytes)
LVs: 12 USED PPs: 207 (52992 megabytes)
OPEN LVs: 11 QUORUM: 2 (Enabled)
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
The LTG size (the Dynamic): 256 kilobyte (S) the AUTO the SYNC: NO
the HOT SPARE: NO BB POLICY: Relocatable
the PV RESTRICTION: none of INFINITE the RETRY: NO
DISK BLOCK SIZE: 512 CRITICAL in VG of: NO
the FS the SYNC the OPTION: NO
annotation: here creating the new logical volume useful information is PP sIZE free PPS we see PP size is 256M, there are 592 PP is not assigned to the logical volume (151552M free space)
2. create a logical
first check where the disk volume group:
# the lsvg - the rootvg the p-
the rootvg:
pv_name the PV the PPs the FREE STATE TOTAL the PPs the FREE DISTRIBUTION
hdisk0 the Active 799 592 159..103..10..160..160
create logical volumes:
- View to use the file system type
# lsvg -l rootvg
# Mklv -y'lv_oracle '-t'jfs2' rootvg 400 hdisk0 - 100G create
formatted file system:
# / usr / sbin / JFS2 the crfs -v -d 'lv_oracle' -m '/ App' -p -A Yes rw
. the Created File System successfully
. 104 854 196 Total Disk Space kilobytes
New File System size iS 209715200
mount:
# Mount / App
View just specified mount path
# df -SG / App
Filesystem GB Blocks as Free *%% Iused mounted ON Used Iused
/ dev / lv_oracle 100.00 99.98 1% 4 1% / app
view the / etc / filesystems in / app mount information:
/ app:
dev = / dev / lv_oracle
VFS = JFS2
log = / dev / HD8
Mount to true =
= rw Options
the Account = false
logical volume expansion
when there is insufficient oracle installation directory, oracle database login prompt when lack of space equipment, tips are as follows:
oracle @ S1P2 [/ oracle / dumpfile] $ sqlplus / AS sysdba
SQL * Plus: Release 11.2 Production's ON Mon Nov 14 .0.4.0 17:44:09 2016
Copyright (c) 1982, 2013, the Oracle All Rights Reserved..
ERROR:
ORA-09 817:. Audit the Write to File failed The
IBM AIX RISC System / 6000 Error: 28 : No Space left ON Device
Additional Information: 12
ORA-01075: you are logged ON Rate this page Currently
logical volume expansion:
# the lsvg the -lp the rootvg
the rootvg:
pv_name the PV the PPs the FREE STATE TOTAL the PPs the FREE DISTRIBUTION
799 328 159..39..00..00..130 the Active hdisk0
# the chfs -a size = + 50G / dev / fslv00 - Expansion 50G
expansion Reviewing:
# df -SG / App
Filesystem GB *% Used as Free Blocks Mounted ON Iused% Iused
/ dev / fslv00 51 is the 100.00% 49.68%. 1 69126 / App
The rotor < https://blog.51cto.com/secdata/1872789 >