分类:
2009-12-30 18:48:14
误删除/dev/dsk 和/dev/rdsk 下的文件怎么办?
系统:HP-UX 11.11
阵列:SUN T300
误删除/dev/dsk 和/dev/rdsk 下的文件后,执行命令显示如下:
bash-2.04# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/2/0.0.0 sdisk CLAIMED DEVICE SEAGATE ST336704LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 1 0/0/2/1.6.0 sdisk CLAIMED DEVICE TOSHIBA DVD-ROM SD-M1401
/dev/dsk/c3t6d0 /dev/rdsk/c3t6d0
disk 12 0/12/0/0.1.3.255.0.0.0 sdisk CLAIMED DEVICE SUN T300
disk 13 0/12/0/0.1.3.255.0.0.1 sdisk CLAIMED DEVICE SUN T300
恢复步骤:
bash-2.04# mksf -C disk -H 0/12/0/0.1.3.255.0.0.0 -I 12 /dev/dsk/c6t0d0
bash-2.04# mksf -C disk -H 0/12/0/0.1.3.255.0.0.0 -I 12 -r /dev/rdsk/c6t0d0
bash-2.04# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/2/0.0.0 sdisk CLAIMED DEVICE SEAGATE ST336704LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 1 0/0/2/1.6.0 sdisk CLAIMED DEVICE TOSHIBA DVD-ROM SD-M1401
/dev/dsk/c3t6d0 /dev/rdsk/c3t6d0
disk 12 0/12/0/0.1.3.255.0.0.0 sdisk CLAIMED DEVICE SUN T300
/dev/dsk/c6t0d0 /dev/rdsk/c6t0d0
disk 13 0/12/0/0.1.3.255.0.0.1 sdisk CLAIMED DEVICE SUN T300
bash-2.04# mksf -C disk -H 0/12/0/0.1.3.255.0.0.1 -I 13 /dev/dsk/c6t0d1
bash-2.04# mksf -C disk -H 0/12/0/0.1.3.255.0.0.1 -I 13 -r /dev/rdsk/c6t0d1
bash-2.04# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/2/0.0.0 sdisk CLAIMED DEVICE SEAGATE ST336704LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 1 0/0/2/1.6.0 sdisk CLAIMED DEVICE TOSHIBA DVD-ROM SD-M1401
/dev/dsk/c3t6d0 /dev/rdsk/c3t6d0
disk 12 0/12/0/0.1.3.255.0.0.0 sdisk CLAIMED DEVICE SUN T300
/dev/dsk/c6t0d0 /dev/rdsk/c6t0d0
disk 13 0/12/0/0.1.3.255.0.0.1 sdisk CLAIMED DEVICE SUN T300
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1