ITPub博客

首页 > 数据库 > Oracle > create the volume group and activate it

create the volume group and activate it

原创 Oracle 作者:penglele2009 时间:2011-04-13 14:05:29 0 删除 编辑

To create the volume group and activate it, enter commands similar to the following:

# /sbin/mknod /dev/vg_name/group c 64 0xnn0000

# /sbin/vgcreate /dev/vg_name /dev/dsk/cxtydz . . .

# /sbin/vgchange -a y vg_name

In this example:

vg_name is the name that you want to give to the volume group

0xnn0000 is a minor number that is unused on all nodes in the cluster

/dev/dsk/cxtydz... is a list of one or more block device names for the disks that you want to add to the volume group

1,为卷组创建一个目录,比如:

# mkdir /dev/vg01

2,为组创建一个控制文件:

# mknod /dev/vg01/group c 64 0x10000

3,创建卷组并指定它包含的物理卷:

# vgcreate /dev/vg01 /dev/dsk/c0t3d0 /dev/dsk/c0t4d0

4,用vgdisplay命令查看是否创建成功:

# vgdisplay -v vg01

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22934571/viewspace-1048605/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: RAC 配置和命令
下一篇: HP-UX 常用命令
请登录后发表评论 登录
全部评论

注册时间:2009-11-26

  • 博文量
    199
  • 访问量
    677243