免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2857 | 回复: 5
打印 上一主题 下一主题

solaris 10下面修改磁盘分区的属组,修改后不生效。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-04-09 18:59 |只看该作者 |倒序浏览
大家好:

我是在solaris 10 x86平台上面,通过openfiler共享的磁盘过来。修改磁盘分区的属组后不生效,请问是什么影响。

# ls -l /dev/rdsk/c2t3d0s0
lrwxrwxrwx   1 root     root          56 Apr  7 10:53 /dev/rdsk/c2t3d0s0 -> ../../devices/iscsi/disk@0000iqn.huang%3Asun0001,0:a,raw
# chown grid:asmadmin /dev/rdsk/c2t3d0s0
# ls -l /dev/rdsk/c2t3d0s0              
lrwxrwxrwx   1 root     root          56 Apr  7 10:53 /dev/rdsk/c2t3d0s0 -> ../../devices/iscsi/disk@0000iqn.huang%3Asun0001,0:a,raw

下面是我分区的情况。

# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <DEFAULT cyl 2085 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@0,0
       1. c1t1d0 <DEFAULT cyl 2085 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@1,0
       2. c1t2d0 <DEFAULT cyl 2086 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@2,0
       3. c1t3d0 <DEFAULT cyl 2086 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@3,0
       4. c2t3d0 <DEFAULT cyl 508 alt 2 hd 64 sec 32>
          /iscsi/disk@0000iqn.huang%3Asun0001,0
       5. c2t4d0 <DEFAULT cyl 1996 alt 2 hd 128 sec 32>
          /iscsi/disk@0000iqn.huang%3Asun0001,1
       6. c2t5d0 <DEFAULT cyl 3004 alt 2 hd 128 sec 32>
          /iscsi/disk@0000iqn.huang%3Asun0001,2
       7. c2t6d0 <DEFAULT cyl 508 alt 2 hd 64 sec 32>
          /iscsi/disk@0000iqn.huang%3Asun0001,3
       8. c2t7d0 <DEFAULT cyl 508 alt 2 hd 64 sec 32>
          /iscsi/disk@0000iqn.huang%3Asun0001,4
Specify disk (enter its number): 4
selecting c2t3d0
[disk formatted]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Current partition table (original):
Total disk cylinders available: 508 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders       Size            Blocks
  0 unassigned    wm       0 - 507      508.00MB    (508/0/0) 1040384
  1 unassigned    wm       0              0         (0/0/0)         0
  2     backup    wu       0 - 507      508.00MB    (508/0/0) 1040384
  3 unassigned    wm       0              0         (0/0/0)         0
  4 unassigned    wm       0              0         (0/0/0)         0
  5 unassigned    wm       0              0         (0/0/0)         0
  6 unassigned    wm       0              0         (0/0/0)         0
  7 unassigned    wm       0              0         (0/0/0)         0
  8       boot    wu       0 -   0        1.00MB    (1/0/0)      2048
  9 unassigned    wm       0              0         (0/0/0)         0

partition> label
Ready to label disk, continue? y

partition> quit


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> quit

论坛徽章:
1
狮子座
日期:2013-09-02 12:10:41
2 [报告]
发表于 2012-04-09 22:46 |只看该作者
chown grid:asmadmin /devices/iscsi/disk@0000iqn.huang%3Asun0001,0:a,raw

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
3 [报告]
发表于 2012-04-09 23:51 |只看该作者
本帖最后由 东方蜘蛛 于 2012-04-09 23:51 编辑

# chown -h oracle:oinstall /dev/rdsk/c2t3d0s0
# ls ../../devices/iscsi/disk@0000iqn.huang%3Asun0001,0:a,raw
软链接权限不变不受影响。

论坛徽章:
4
技术图书徽章
日期:2013-09-23 10:22:37狮子座
日期:2013-10-15 23:31:54卯兔
日期:2013-11-11 17:33:15金牛座
日期:2013-11-15 17:25:28
4 [报告]
发表于 2012-04-11 22:17 |只看该作者
不用管软链结,应该看软链结指向的磁盘分区

  1. ls -lL /dev/rdsk/c2t3d0s0  
复制代码

论坛徽章:
0
5 [报告]
发表于 2012-04-12 10:40 |只看该作者
我已经用ls -lL来查看了属性变成grid:asmadmin但是在安装ORACLE数据库的时候还是不能发现。

论坛徽章:
4
技术图书徽章
日期:2013-09-23 10:22:37狮子座
日期:2013-10-15 23:31:54卯兔
日期:2013-11-11 17:33:15金牛座
日期:2013-11-15 17:25:28
6 [报告]
发表于 2012-04-12 22:06 |只看该作者
本帖最后由 nbrr 于 2012-04-12 22:06 编辑

是在安装ASM吗,设置参数asm_diskstring = /dev/rdsk/*试试

除了chown,还要chmod 660
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP