ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 利用solaris的mknod变更format(阵列设备标识符)

利用solaris的mknod变更format(阵列设备标识符)

原创 Linux操作系统 作者:wisdomone1 时间:2009-11-12 21:29:57 0 删除 编辑
bash-3.00# ls -l /dev/rdsk/c2t1d0s0  --rac2上面的设备,查看底层/devices设备,找到主和次设备号
lrwxrwxrwx   1 root     root          89 11月  5日 11:15 /dev/rdsk/c2t1d0s0 -> ../../devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:a,raw
bash-3.00# ls -l /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:a,raw
crw-r-----   1 640      oinstall 118, 16 11月 11日 17:01 /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:a,raw  --注意涂红部分为主,次设备号

然事利用mknod变更此设备的设备(用format)标识符
mknod /dev/rdsk/同于rac1上面(用format)看到的设备标识符名字  c 118  16



下附上官方说明文档
bash-3.00# man mknod
正在重新格式化页面。请等待... 完成

System Administration Commands                          mknod(1M)

NAME
     mknod - make a special file

SYNOPSIS
     mknod name b major minor

     mknod name c major minor

     mknod name p

DESCRIPTION
     mknod makes a directory entry for a special file.

OPTIONS
     The following options are supported:

     b        Create a block-type special file.

     c        Create a character-type special file.

     p        Create a FIFO (named pipe).

OPERANDS
     The following operands are supported:

     major    The major device number.

     minor    The minor device number; can be either  decimal  or
              octal.  The  assignment  of major device numbers is
              specific to each system. You must be the super-user
              to use this form. of the command.

     name     A special file to be created.

USAGE
     See largefile(5) for the  description  of  the  behavior  of
     mknod  when  encountering  files  greater than or equal to 2
     Gbyte ( 2**31 bytes).

SunOS 5.10          Last change: 16 Sep 1996                    1

System Administration Commands                          mk




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

请登录后发表评论 登录
全部评论
提供针对oracle初学者及进阶的数据库培训,欢迎大家咨询: 微信: wisdomone 微信公众号: lovedb 工作经历: 中国普天 北京科蓝 北京云和恩墨 北京神州新桥

注册时间:2008-04-04

  • 博文量
    2189
  • 访问量
    12689906