手机版
你好,游客 登录 注册
背景:
阅读新闻

Oracle Linux 配置 UDEV SCSI Rules 说明

[日期:2012-04-14] 来源:Linux社区  作者:tianlesoftware [字体:大 中 小]

1.1.4  配置虚拟介质共享,这个在VBOX界面也可以操作,这里使用命令

此信息将被记入到每个虚拟磁盘文件的文件头中,故其他其他再使用的时候就无需再设置成共享了。

 

F:\VBox\sharedisk>VBoxManage modifyhdasm01.vdi --type shareable

F:\VBox\sharedisk>VBoxManage modifyhdasm02.vdi --type shareable

F:\VBox\sharedisk>VBoxManage modifyhdasm03.vdi --type shareable

F:\VBox\sharedisk>VBoxManage modifyhdasm04.vdi --type shareable

 

 

1.2 格式化共享介质

启动虚拟机,进行格式化操作

 

[root@rac1 ~]# cd /dev

[root@rac1 dev]# ls sd*

sda sda1  sda2  sda3 sdb  sdc  sdd sde

--这里的sdb,sdc,sdd,sde就是我们添加的虚拟介质。

 

[root@rac1 dev]# fdisk -l

 

Disk /dev/sda: 16.1 GB, 16106127360 bytes

255 heads, 63 sectors/track, 1958 cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0x0008dd19

 

  Device Boot      Start         End      Blocks  Id  System

/dev/sda1  *           1          26      204800  83  Linux

Partition 1 does not end on cylinderboundary.

/dev/sda2              26         154    1024000   82  Linux swap / Solaris

Partition 2 does not end on cylinderboundary.

/dev/sda3             154        1959   14498816   83  Linux

 

Disk /dev/sdb: 5368 MB, 5368709120 bytes

255 heads, 63 sectors/track, 652 cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0x00000000

 

Disk /dev/sdb doesn't contain a validpartition table

 

Disk /dev/sdc: 5368 MB, 5368709120 bytes

255 heads, 63 sectors/track, 652 cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0x00000000

 

Disk /dev/sdc doesn't contain a validpartition table

 

Disk /dev/sdd: 5368 MB, 5368709120 bytes

255 heads, 63 sectors/track, 652 cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0x00000000

 

Disk /dev/sdd doesn't contain a validpartition table

 

Disk /dev/sde: 5368 MB, 5368709120 bytes

255 heads, 63 sectors/track, 652 cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0x00000000

 

Disk /dev/sde doesn't contain a validpartition table

[root@rac1 dev]#

 

 

开始格式化介质:

[root@rac1 dev]# fdisk /dev/sdb

Device contains neither a valid DOSpartition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel with diskidentifier 0xbe1b86b0.

Changes will remain in memory only, untilyou decide to write them.

After that, of course, the previous contentwon't be recoverable.

 

Warning: invalid flag 0x0000 of partitiontable 4 will be corrected by w(rite)

 

WARNING: DOS-compatible mode is deprecated.It's strongly recommended to

        switch off the mode (command 'c') and change display units to

        sectors (command 'u').

 

Command (m for help): n

Command action

  e   extended

  p   primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-652, default 1):

Using default value 1

Last cylinder, +cylinders or +size{K,M,G}(1-652, default 652):

Using default value 652

 

Command (m for help): w

The partition table has been altered!

 

Calling ioctl() to re-read partition table.

Syncing disks.

[root@rac1 dev]#

 

重复以上操作,格式化剩下的3个介质。

 

验证:

[root@rac1 dev]# ls sd*

sda sda1  sda2  sda3 sdb  sdb1  sdc sdc1  sdd  sdd1 sde  sde1

[root@rac1 dev]# fdisk -l

 

Disk /dev/sda: 16.1 GB, 16106127360 bytes

255 heads, 63 sectors/track, 1958 cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0x0008dd19

 

  Device Boot      Start         End      Blocks  Id  System

/dev/sda1  *           1          26      204800  83  Linux

Partition 1 does not end on cylinderboundary.

/dev/sda2              26         154    1024000   82  Linux swap / Solaris

Partition 2 does not end on cylinderboundary.

/dev/sda3             154        1959   14498816   83  Linux

 

Disk /dev/sdb: 5368 MB, 5368709120 bytes

255 heads, 63 sectors/track, 652 cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0xbe1b86b0

 

  Device Boot      Start         End      Blocks  Id  System

/dev/sdb1               1         652    5237158+  83  Linux

 

Disk /dev/sdc: 5368 MB, 5368709120 bytes

255 heads, 63 sectors/track, 652 cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0x52c60017

 

  Device Boot      Start         End      Blocks  Id  System

/dev/sdc1               1         652    5237158+  83  Linux

 

Disk /dev/sdd: 5368 MB, 5368709120 bytes

255 heads, 63 sectors/track, 652 cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0xb3564300

 

  Device Boot      Start         End      Blocks  Id  System

/dev/sdd1               1         652    5237158+  83  Linux

 

Disk /dev/sde: 5368 MB, 5368709120 bytes

255 heads, 63 sectors/track, 652 cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0x688384a0

 

  Device Boot      Start         End      Blocks  Id  System

/dev/sde1               1         652    5237158+  83  Linux

You have new mail in /var/spool/mail/root

[root@rac1 dev]#

linux
相关资讯       oracle linux 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款