7343696 发表于 2012-04-09 18:59

solaris 10下面修改磁盘分区的属组,修改后不生效。

大家好:

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

# ls -l /dev/rdsk/c2t3d0s0
lrwxrwxrwx   1 root   root          56 Apr7 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 Apr7 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



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

byuq 发表于 2012-04-09 22:46

chown grid:asmadmin /devices/iscsi/disk@0000iqn.huang%3Asun0001,0:a,raw

东方蜘蛛 发表于 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
软链接权限不变不受影响。

nbrr 发表于 2012-04-11 22:17

不用管软链结,应该看软链结指向的磁盘分区
ls -lL /dev/rdsk/c2t3d0s0

7343696 发表于 2012-04-12 10:40

我已经用ls -lL来查看了属性变成grid:asmadmin但是在安装ORACLE数据库的时候还是不能发现。

nbrr 发表于 2012-04-12 22:06

本帖最后由 nbrr 于 2012-04-12 22:06 编辑

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

除了chown,还要chmod 660
页: [1]
查看完整版本: solaris 10下面修改磁盘分区的属组,修改后不生效。