如需修改网络地址、主机名等,一定要用 set_parms 命令 # set_parms hostname # set_parms ip_address
8/16/5.6.0
8--- 第一级总线
16--- 第二级总线
5-----第三级总线卡号 6地 址
0--- 相应地址下第一个设备
# ioscan -fu
Class I H/W Path Driver S/W State H/W Type Description
=============================================================================
ext_bus 0 8/0/19/0 c720 CLAIMED INTERFACE SCSI C87x Ultra Wide Single-Ended
disk 0 8/0/19/0.6.0 sdisk CLAIMED DEVICE IBM DPSS-318350N
ctl 0 8/0/19/0.7.0 sctl CLAIMED DEVICE Initiator
lan 0 8/0/20/0 btlan CLAIMED INTERFACE HP PCI 10/100Base-TX Core
tty 1 8/0/63 asio0 CLAIMED INTERFACE Built-in RS-232C
ext_bus 2 8/16/0 CentIf CLAIMED INTERFACE Built-in Parallel Interface
audio 0 8/16/1 audio CLAIMED INTERFACE Built-in Audio
tty 0 8/16/4 asio0 CLAIMED INTERFACE Built-in RS-232C
ext_bus 1 8/16/5 c720 CLAIMED INTERFACE Built-in SCSI
disk 1 8/16/5.2.0 sdisk CLAIMED DEVICE MATSHITACD-ROM CR-508
ctl 1 8/16/5.7.0 sctl CLAIMED DEVICE Initiator
ps2 0 8/16/7 ps2 CLAIMED INTERFACE Built-in Keyboard/Mouse
pc 0 8/16/10 fdc CLAIMED INTERFACE Built-in Floppy Drive
floppy 0 8/16/10.1 pflop CLAIMED DEVICE HP_PC_FDC_FLOPPY
graphics 0 10/0/4/0 graph3 CLAIMED INTERFACE PCI Display (103c1005)
class,设备的分类,定义在/usr/conf/master.d文件中
Instance 与设备或板卡有关的实例号,在同类设备中该数字保持唯一
H/W path 硬件组件的字符串,顺序记录总线到设备的地址,/代表一个总线转换器
driver 控制硬件组件的驱动程序名称
S/W state 软件是否邦定,claimed表示成功绑定
Hardware Type 硬件组件的实体标示符
察看scsi借口卡地址
# ioscan -fu|grep Initiator
ctl 0 8/0/19/0.7.0 sctl CLAIMED DEVICE Initiator
ctl 1 8/16/5.7.0 sctl CLAIMED DEVICE Initiator
察看机型
# model
9000/782/C240+
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
8/0/20/0 0x0060B0C298F0 0 UP lan0 snap0 1 ETHER Yes 119
# ioscan -f|grep lan
Class I H/W Path Driver S/W State H/W Type Description
==============================================================================
lan 0 8/0/20/0 btlan CLAIMED INTERFACE HP PCI 10/100Base-TX Core
HP9000上,使用insf -eC lan 重新建立丢失或错误的lan设备文件
# cd /dev
# insf -eC lan
insf: Installing special files for btlan instance 0 address 8/0/20/0
nsswitch.conf文件的使用(简)
# cat /etc/nsswitch.conf
#
# /etc/nsswitch.files:
#
# @(#)B.11.11_LR
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any name services.
#
passwd: files
group: files
hosts: files [NOTFOUND=continue] dns
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
注意hosts行,先查找文件/etc/hosts,然后查找dns
# ioscan -fu
Class I H/W Path Driver S/W State H/W Type Description
=============================================================================
ext_bus 0 8/0/19/0 c720 CLAIMED INTERFACE SCSI C87x Ultra WideSingle-Ended
disk 0 8/0/19/0.6.0 sdisk CLAIMED DEVICE IBM DPSS-318350N
ctl 0 8/0/19/0.7.0 sctl CLAIMED DEVICE Initiator
lan 0 8/0/20/0 btlan CLAIMED INTERFACE HP PCI 10/100Base-TX Core
tty 1 8/0/63 asio0 CLAIMED INTERFACE Built-in RS-232C
ext_bus 2 8/16/0 CentIf CLAIMED INTERFACE Built-in Parallel Interface
audio 0 8/16/1 audio CLAIMED INTERFACE Built-in Audio
tty 0 8/16/4 asio0 CLAIMED INTERFACE Built-in RS-232C
ext_bus 1 8/16/5 c720 CLAIMED INTERFACE Built-in SCSI
disk 1 8/16/5.2.0 sdisk CLAIMED DEVICE MATSHITACD-ROM CR-508
ctl 1 8/16/5.7.0 sctl CLAIMED DEVICE Initiator
ps2 0 8/16/7 ps2 CLAIMED INTERFACE Built-in Keyboard/Mouse
pc 0 8/16/10 fdc CLAIMED INTERFACE Built-in Floppy Drive
floppy 0 8/16/10.1 pflop CLAIMED DEVICE HP_PC_FDC_FLOPPY
graphics 0 10/0/4/0 graph3 CLAIMED INTERFACE PCI Display (103c1005)
class,设备的分类,定义在/usr/conf/master.d文件中
Instance 与设备或板卡有关的实例号,在同类设备中该数字保持唯一
H/W path 硬件组件的字符串,顺序记录总线到设备的地址,/代表一个总线转换器
driver 控制硬件组件的驱动程序名称
S/W state 软件是否邦定,claimed表示成功绑定
Hardware Type 硬件组件的实体标示符
#
# vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4384
VGDA 2
PE Size (Mbytes) 4
Total PE 4374
Alloc PE 1388
Free PE 2986
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4384
VGDA 2
PE Size (Mbytes) 4
Total PE 4374
Alloc PE 1388
Free PE 2986
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 300
Current LE 75
Allocated PE 75
Used PV 1LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 256
Used PV 1LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 200
Current LE 50
Allocated PE 50
Used PV 1LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 200
Current LE 50
Allocated PE 50
Used PV 1LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 20
Current LE 5
Allocated PE 5
Used PV 1LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 588
Current LE 147
Allocated PE 147
Used PV 1LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 1696
Current LE 424
Allocated PE 424
Used PV 1LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 1524
Current LE 381
Allocated PE 381
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
PV Status available
Total PE 4374
Free PE 2986
Autoswitch On
# pvdisplay /dev/dsk/c0t6d0
--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 8
PE Size (Mbytes) 4
Total PE 4374
Free PE 2986
Allocated PE 1388
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On创建文件系统
# newfs -F vxfs /dev/vg00/rlvol9
version 4 layout
2048000 sectors, 2048000 blocks of size 1024, log size 1024 blocks
unlimited inodes, largefiles not supported
2048000 data blocks, 2046392 free data blocks
63 allocation units of 32768 blocks, 32768 data blocks
last allocation unit has 16384 data blocks#mkdir /u01
# mount /dev/vg00/lvol9 /u01

305

被折叠的 条评论
为什么被折叠?



