创建LV
1.查询VG空间情况
# lsvg bkvg
VOLUME GROUP: bkvg VG IDENTIFIER: 0009a8ea0000d60000000132aa4ee783
VG STATE: active PP SIZE: 128 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 6396 (818688 megabytes)
MAX LVs: 512 FREE PPs: 6396 (818688 megabytes)
LVs: 0 USED PPs: 0 (0 megabytes)
OPEN LVs: 0 QUORUM: 3 (Enabled)
TOTAL PVs: 4 VG DESCRIPTORS: 4
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 4 AUTO ON: yes
MAX PPs per VG: 524288 MAX PVs: 1024
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
2.创建一个LV
# smitty mklv
Add a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
Logical volume NAME [archlv01]
* VOLUME GROUP name bkvg
* Number of LOGICAL PARTITIONS [250] #
PHYSICAL VOLUME names [hdisk10 hdisk11 hdisk12 hdisk13] +
Logical volume TYPE [jfs2] +
POSITION on physical volume middle +
RANGE of physical volumes minimum +
MAXIMUM NUMBER of PHYSICAL VOLUMES [] #
to use for allocation
Number of COPIES of each logical 1 +
partition
Mirror Write Consistency? active +
Allocate each logical partition copy yes +
on a SEPARATE physical volume?
RELOCATE the logical volume during yes +
reorganization?
Logical volume LABEL []
MAXIMUM NUMBER of LOGICAL PARTITIONS [512] #
Enable BAD BLOCK relocation? yes +
SCHEDULING POLICY for writing/reading parallel +
logical partition copies
Enable WRITE VERIFY? no +
File containing ALLOCATION MAP []
Stripe Size? [Not Striped] +
Serialize IO? no +
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
archlv01
3.创建挂载的目录
# mkdir /arch
# mkdir /backup
# chown -R oracle:dba /arch
# chown -R oracle:dba /backup
4.创建文件系统
# smitty crfs
Add an Enhanced Journaled File System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LOGICAL VOLUME name archlv01 +
* MOUNT POINT [/arch]
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Block Size (bytes) 4096 +
Logical Volume for Log +
Inline Log size (MBytes) [] #
Extended Attribute Format Version 1 +
ENABLE Quota Management? no +
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
File system created successfully.
32766796 kilobytes total disk space.
New File System size is 65536000
5.进行挂载
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.00 1.91 5% 6616 2% /
/dev/hd2 3.00 1.06 65% 42735 15% /usr
/dev/hd9var 0.88 0.34 62% 7398 9% /var
/dev/hd3 10.00 9.33 7% 3158 1% /tmp
/dev/fwdump 0.12 0.12 1% 4 1% /var/adm/ras/platform
/dev/hd1 0.12 0.05 60% 342 3% /home
/proc - - - - - /proc
/dev/hd10opt 0.50 0.19 62% 8437 16% /opt
/dev/fslv00 20.00 6.97 66% 21239 2% /oracle
/dev/fslv01 1070.00 87.01 92% 28409 1% /oradata
# mount /arch
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.00 1.91 5% 6616 2% /
/dev/hd2 3.00 1.06 65% 42735 15% /usr
/dev/hd9var 0.88 0.34 62% 7398 9% /var
/dev/hd3 10.00 9.33 7% 3159 1% /tmp
/dev/fwdump 0.12 0.12 1% 4 1% /var/adm/ras/platform
/dev/hd1 0.12 0.05 60% 342 3% /home
/proc - - - - - /proc
/dev/hd10opt 0.50 0.19 62% 8437 16% /opt
/dev/fslv00 20.00 6.97 66% 21239 2% /oracle
/dev/fslv01 1070.00 87.01 92% 28409 1% /oradata
/dev/archlv01 31.25 31.24 1% 4 1% /arch
6.扩LV大小
# smitty extendlv
Increase the Size of a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LOGICAL VOLUME name archlv01
* Number of ADDITIONAL logical partitions [2000] #
PHYSICAL VOLUME names [hdisk10 hdisk11 hdisk12 hdisk13] +
POSITION on physical volume middle +
RANGE of physical volumes minimum +
MAXIMUM NUMBER of PHYSICAL VOLUMES [1024] #
to use for allocation
Allocate each logical partition copy yes +
on a SEPARATE physical volume?
File containing ALLOCATION MAP []
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: no stderr: no
Before command completion, additional instructions may appear below.
COMMAND STATUS
Command: OK stdout: no stderr: no
Before command completion, additional instructions may appear below.
7.修改文件大小
# smitty chfs
Change / Show Characteristics of an Enhanced Journaled File System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
File system name /arch
NEW mount point [/arch]
SIZE of file system
Unit Size Gigabytes +
Number of units [280] #
Mount GROUP []
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Start Disk Accounting? no +
Block Size (bytes) 4096
Inline Log? no
Inline Log size (MBytes) [0] #
Extended Attribute Format [v1]
ENABLE Quota Management? no +
Allow Small Inode Extents? no +
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Filesystem size changed to 587202560
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Filesystem size changed to 587202560[@more@]
1.查询VG空间情况
# lsvg bkvg
VOLUME GROUP: bkvg VG IDENTIFIER: 0009a8ea0000d60000000132aa4ee783
VG STATE: active PP SIZE: 128 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 6396 (818688 megabytes)
MAX LVs: 512 FREE PPs: 6396 (818688 megabytes)
LVs: 0 USED PPs: 0 (0 megabytes)
OPEN LVs: 0 QUORUM: 3 (Enabled)
TOTAL PVs: 4 VG DESCRIPTORS: 4
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 4 AUTO ON: yes
MAX PPs per VG: 524288 MAX PVs: 1024
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
2.创建一个LV
# smitty mklv
Add a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
Logical volume NAME [archlv01]
* VOLUME GROUP name bkvg
* Number of LOGICAL PARTITIONS [250] #
PHYSICAL VOLUME names [hdisk10 hdisk11 hdisk12 hdisk13] +
Logical volume TYPE [jfs2] +
POSITION on physical volume middle +
RANGE of physical volumes minimum +
MAXIMUM NUMBER of PHYSICAL VOLUMES [] #
to use for allocation
Number of COPIES of each logical 1 +
partition
Mirror Write Consistency? active +
Allocate each logical partition copy yes +
on a SEPARATE physical volume?
RELOCATE the logical volume during yes +
reorganization?
Logical volume LABEL []
MAXIMUM NUMBER of LOGICAL PARTITIONS [512] #
Enable BAD BLOCK relocation? yes +
SCHEDULING POLICY for writing/reading parallel +
logical partition copies
Enable WRITE VERIFY? no +
File containing ALLOCATION MAP []
Stripe Size? [Not Striped] +
Serialize IO? no +
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
archlv01
3.创建挂载的目录
# mkdir /arch
# mkdir /backup
# chown -R oracle:dba /arch
# chown -R oracle:dba /backup
4.创建文件系统
# smitty crfs
Add an Enhanced Journaled File System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LOGICAL VOLUME name archlv01 +
* MOUNT POINT [/arch]
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Block Size (bytes) 4096 +
Logical Volume for Log +
Inline Log size (MBytes) [] #
Extended Attribute Format Version 1 +
ENABLE Quota Management? no +
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
File system created successfully.
32766796 kilobytes total disk space.
New File System size is 65536000
5.进行挂载
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.00 1.91 5% 6616 2% /
/dev/hd2 3.00 1.06 65% 42735 15% /usr
/dev/hd9var 0.88 0.34 62% 7398 9% /var
/dev/hd3 10.00 9.33 7% 3158 1% /tmp
/dev/fwdump 0.12 0.12 1% 4 1% /var/adm/ras/platform
/dev/hd1 0.12 0.05 60% 342 3% /home
/proc - - - - - /proc
/dev/hd10opt 0.50 0.19 62% 8437 16% /opt
/dev/fslv00 20.00 6.97 66% 21239 2% /oracle
/dev/fslv01 1070.00 87.01 92% 28409 1% /oradata
# mount /arch
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.00 1.91 5% 6616 2% /
/dev/hd2 3.00 1.06 65% 42735 15% /usr
/dev/hd9var 0.88 0.34 62% 7398 9% /var
/dev/hd3 10.00 9.33 7% 3159 1% /tmp
/dev/fwdump 0.12 0.12 1% 4 1% /var/adm/ras/platform
/dev/hd1 0.12 0.05 60% 342 3% /home
/proc - - - - - /proc
/dev/hd10opt 0.50 0.19 62% 8437 16% /opt
/dev/fslv00 20.00 6.97 66% 21239 2% /oracle
/dev/fslv01 1070.00 87.01 92% 28409 1% /oradata
/dev/archlv01 31.25 31.24 1% 4 1% /arch
6.扩LV大小
# smitty extendlv
Increase the Size of a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LOGICAL VOLUME name archlv01
* Number of ADDITIONAL logical partitions [2000] #
PHYSICAL VOLUME names [hdisk10 hdisk11 hdisk12 hdisk13] +
POSITION on physical volume middle +
RANGE of physical volumes minimum +
MAXIMUM NUMBER of PHYSICAL VOLUMES [1024] #
to use for allocation
Allocate each logical partition copy yes +
on a SEPARATE physical volume?
File containing ALLOCATION MAP []
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: no stderr: no
Before command completion, additional instructions may appear below.
COMMAND STATUS
Command: OK stdout: no stderr: no
Before command completion, additional instructions may appear below.
7.修改文件大小
# smitty chfs
Change / Show Characteristics of an Enhanced Journaled File System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
File system name /arch
NEW mount point [/arch]
SIZE of file system
Unit Size Gigabytes +
Number of units [280] #
Mount GROUP []
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Start Disk Accounting? no +
Block Size (bytes) 4096
Inline Log? no
Inline Log size (MBytes) [0] #
Extended Attribute Format [v1]
ENABLE Quota Management? no +
Allow Small Inode Extents? no +
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Filesystem size changed to 587202560
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Filesystem size changed to 587202560[@more@]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21605631/viewspace-1056130/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/21605631/viewspace-1056130/