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
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博客 ” ,链接:http://blog.itpub.net/9240380/viewspace-619528/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9240380/viewspace-619528/