GroFrame在Vmware里加硬盘建工区.docx
- 文档编号:23629325
- 上传时间:2023-05-19
- 格式:DOCX
- 页数:17
- 大小:773.46KB
GroFrame在Vmware里加硬盘建工区.docx
《GroFrame在Vmware里加硬盘建工区.docx》由会员分享,可在线阅读,更多相关《GroFrame在Vmware里加硬盘建工区.docx(17页珍藏版)》请在冰豆网上搜索。
GroFrame在Vmware里加硬盘建工区
关机状态下点编辑虚拟机设置
硬件里点添加
添加硬盘
创建新的虚拟磁盘
选择scsi硬盘
根据需要设置硬盘大小
虚拟硬盘在物理硬盘里的名字
完成后会出现新的硬盘
然后接通电源,开机
用root登录
密码还是redhat
打开命令窗口
输入命令 fdisk –l,就可以看到现有磁盘及分区情况
下边有一个Disk /dev/sdb:
171.7 GB, 171798691840 bytes,这个就是刚加的硬盘,显示没有分区
输入命令 fdisk /dev/sdb 对硬盘进行分区
出现Command (m for help)后,输入n
partition number 输入 1
后边两个起始截止扇区直接回车选择默认即可。
然后输入 w,将分区写入磁盘
[root@localhost ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 20886.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning:
invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help):
n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4):
1
First cylinder (1-20886, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-20886, default 20886):
Using default value 20886
Command (m for help):
w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@localhost ~]#
输入命令 mkfs.ext3 /dev/sdb1 对分区进行格式化
[root@localhost ~]# mkfs.ext3 /dev/sdb1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type:
Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
20971520 inodes, 41941690 blocks
2097084 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=41943040
1280 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Writing inode tables:
done
Creating journal (8192 blocks):
done
Writing superblocks and filesystem accounting information:
done
This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
格式化完成后,再用 fdisk -l 命令查看操作是否成功
[root@localhost ~]# fdisk -l
Disk /dev/sda:
37.5 GB, 37580963840 bytes
255 heads, 63 sectors/track, 4568 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4313 34644141 83 Linux
/dev/sda2 4314 4568 2048287+ 82 Linux swap
Disk /dev/sdb:
171.7 GB, 171798691840 bytes
255 heads, 63 sectors/track, 20886 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 20886 167766763+ 83 Linux
下边显示/dev/sdb 硬盘被划分为一个分区 /dev/sdb1
接下来,要把这个分区挂接到系统上:
[root@localhost/]#cd/home/oracle
[root@localhost~]#mkdirSDB1
在用户目录下新建文件夹SDB1。
注意:
一定要大写
[root@localhostoracle]#mount/dev/sdb1home/oracle/SDB1
将硬盘挂接在SDB1上,然后设置文件夹权限为全可读写。
[root@localhostoracle]#chmod777SDB1
在 Konqueror 里可以看到 Devices里出现了一个 Hard Disc(sdb1)
160G硬盘就挂好了
设置新硬盘开机自动挂载:
用root用户登录,更改/etc/fstab文件
在最后一行加入:
/dev/sdb1/home/oracle/SDB1ext3defaults12
注销root,然后用oracle登陆
运行 GeoFrame
点Project Management
点DBA密码 gf_dba
再点Tablespaces,然后Create
按下图设置
点OK
然后再点
按下图设置,用户就是oracle Tablespaces 选择刚新建的sdb1
点OK,进入Storagesetting界面,点上边窗口第三个,在下边窗口就会显示磁盘信息,我们建的新工区就在新硬盘上了。
OK
OK
这个界面里设置单位,还有Setprojection。
点Create,按下图参数设置坐标系统。
设置好后OK:
再OK。
我们的新工区就建好了。
工区数据已经移到新硬盘上了。
这样,GeoFrame里就有两个工区,一个工区是老硬盘,一个工区是新硬盘,查看老数据是选择try连接,做新工作时,选择sdb1连接。
原来的 TRY工区数据在这里
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- GroFrame Vmware 里加 硬盘 工区