用smit 创建 文件系统
1、用smit 先创建lv
# smit
Add a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP] [Entry Fields]
Logical volume NAME [lv10g]
* VOLUME GROUP name datavg
* Number of LOGICAL PARTITIONS [96] #
PHYSICAL VOLUME names [] +
Logical volume TYPE [jfs] +
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 reading/writing parallel +
logical partition copies
Enable WRITE VERIFY? no +
File containing ALLOCATION MAP []
[MORE...2]
F1=Help F+------------------------------------------------------+F4=List
Esc+5=Reset E| Running command... |Esc+8=Image
Esc+9=Shell E+------------------------------------------------------+
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
lv10g
2、用smit 创建文件系统,如果原来有,那么需要先把原来的文件系统删掉。选择要创建文件系统的lv,及挂载点
# smit fs
Add a Standard Journaled File System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LOGICAL VOLUME name lv10g +
* MOUNT POINT [/oracle10]
Mount AUTOMATICALLY at system restart? no +
PERMISSIONS read/write +
Mount OPTIONS [] +
Start Disk Accounting? no +
Fragment Size (bytes) 4096 +
Number of bytes per inode 4096 +
Allocation Group Size (MBytes) 8 +
F1=Help F+------------------------------------------------------+F4=List
Esc+5=Reset E| Running command... |Esc+8=Image
Esc+9=Shell E+------------------------------------------------------+
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Based on the parameters chosen, the new /oracle10 JFS file system
is limited to a maximum size of 134217728 (512 byte blocks)
New File System size is 25165824
3、挂载文件系统到根
# mount /dev/lv10g /oracle10
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.00 1.85 8% 4455 1% /
/dev/hd2 8.00 1.90 77% 164772 8% /usr
/dev/hd9var 0.25 0.13 48% 915 2% /var
/dev/hd3 4.00 1.62 60% 4938 1% /tmp
/dev/hd1 6.00 1.17 81% 109463 7% /home
/proc - - - - - /proc
/dev/hd10opt 0.12 0.05 64% 2357 8% /opt
/dev/lv00 0.12 0.12 4% 18 1% /var/adm/csd
/dev/lv9i 12.00 2.05 83% 14858 1% /oracle9i
/dev/lv11 12.00 11.62 4% 121 1% /oracle11
/dev/lv01 6.00 4.16 31% 3847 1% /sybase
/dev/fslv00 200.00 9.75 96% 857016 28% /dsg
/dev/lv10g 12.00 11.62 4% 17 1% /oracle10
扩大文件系统后,逻辑卷就自动扩展了,不需要再对lv做处理。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23062014/viewspace-716228/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23062014/viewspace-716228/