在准备创建oracle数据库的安装目录时,使用df命令发现没有适合的安装目录:
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 0.50 0.32 36% 13255 15% /
/dev/hd2 2.00 0.03 99% 46197 81% /usr
/dev/hd9var 0.50 0.22 56% 8831 15% /var
/dev/hd3 0.25 0.24 5% 49 1% /tmp
/dev/fwdump 0.25 0.25 1% 4 1% /var/adm/ras/platform
/dev/hd1 0.25 0.25 1% 8 1% /home
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 0.50 0.31 39% 8697 11% /opt
/dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump
所以自己得从新挂载一个
首先查看现在有哪些可用卷组:
# lsvg
Rootvg
不明白你的意思是什么,没有合适的安装目录是什么意思,自己创建啥.
查看该卷组属性:
# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00c83f0d00004c000000013aad05bf26
VG STATE: active PP SIZE: 256 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 546 (139776 megabytes)
MAX LVs: 256 FREE PPs: 519 (132864 megabytes)
LVs: 13 USED PPs: 27 (6912 megabytes)
OPEN LVs: 12 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
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
发现未用的还有100多个G;
使用smit fs命令来挂载一个安装目录
# smit fs
接下来依次选择
Add / Change / Show / Delete File Systems
Enhanced Journaled File Systems
Add an Enhanced Journaled File System
然后选择挂载目录所在的卷组:
| Volume Group Name |
| |
| Move cursor to desired item and press Enter. |
| |
| rootvg |
[Entry Fields]
Volume group name rootvg
SIZE of file system
Unit Size Gigabytes
Number of units [30]
MOUNT POINT [/oracle]
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
ENABLE Quota Management? no
Enable EFS? no
Allow internal snapshots? no
Mount GROUP []
设置好后敲击回车键,出现以下过程:
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
File system created successfully.
31456116 kilobytes total disk space.
New File System size is 62914560
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
File system created successfully.
31456116 kilobytes total disk space.
New File System size is 62914560
F1=Help F2=Refresh F3=Cancel Esc+6=Command
Esc+8=Image Esc+9=Shell Esc+0=Exit /=Find
n=Find Next
查看一下:
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 0.50 0.32 36% 13262 15% /
/dev/hd2 2.00 0.03 99% 46197 81% /usr
/dev/hd9var 0.50 0.22 56% 8828 15% /var
/dev/hd3 0.25 0.24 5% 48 1% /tmp
/dev/fwdump 0.25 0.25 1% 4 1% /var/adm/ras/platform
/dev/hd1 0.25 0.25 1% 8 1% /home
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 0.50 0.31 39% 8697 11% /opt
/dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump
并没发现我们挂载的oracle目录,此时我们应该使用mount /oracle将其挂载:
# mount /oracle
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 0.50 0.32 36% 13262 15% /
/dev/hd2 2.00 0.03 99% 46197 81% /usr
/dev/hd9var 0.50 0.22 56% 8828 15% /var
/dev/hd3 0.25 0.24 5% 48 1% /tmp
/dev/fwdump 0.25 0.25 1% 4 1% /var/adm/ras/platform
/dev/hd1 0.25 0.25 1% 8 1% /home
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 0.50 0.31 39% 8697 11% /opt
/dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump
/dev/fslv00 30.00 30.00 1% 4 1% /oracle
到此挂载成功。
哦,原来这样呀,smit就是好.
如果不用smit,命令怎么操作呢
欢迎光临 重庆思庄Oracle、、PostgreSQL、Redhat认证学习论坛 (http://bbs.cqsztech.com/) | Powered by Discuz! X3.2 |