Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5725866
  • 博文数量: 745
  • 博客积分: 10075
  • 博客等级: 上将
  • 技术积分: 7716
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-29 12:09
文章分类

全部博文(745)

文章存档

2019年(1)

2016年(1)

2010年(31)

2009年(88)

2008年(129)

2007年(155)

2006年(197)

2005年(143)

分类:

2008-08-19 23:48:02

如下所示,HP 11.23操作系统中,一次镜像分拆后,/dev/dsk/c5t0d0磁盘上(原系统镜像盘)仍旧留有和系统盘/dev/dsk/c0t6d0相同的分区信息:
# ioscan -fnC disk
Class     I  H/W Path        Driver   S/W State   H/W Type     Description
===========================================================================
disk      1  2/0/0/2/0.6.0   sdisk    CLAIMED     DEVICE       HP 146 GST3146855LC
                            /dev/dsk/c0t6d0     /dev/dsk/c0t6d0s2   /dev/rdsk/c0t6d0    /dev/rdsk/c0t6d0s2
                            /dev/dsk/c0t6d0s1   /dev/dsk/c0t6d0s3   /dev/rdsk/c0t6d0s1  /dev/rdsk/c0t6d0s3
disk      3  2/0/12/1/0/4/1.0.0  sdisk    CLAIMED     DEVICE       COMPAQ  BF1468B26B
                            /dev/dsk/c5t0d0     /dev/dsk/c5t0d0s2   /dev/rdsk/c5t0d0    /dev/rdsk/c5t0d0s2
                            /dev/dsk/c5t0d0s1   /dev/dsk/c5t0d0s3   /dev/rdsk/c5t0d0s1  /dev/rdsk/c5t0d0s3
     
仅仅通过“pvcreate -f /dev/rdsk/c5t0d0”来对磁盘进行格式化也只能对磁盘中数据进行清空,但分区信息依然存在:
# pvcreate -f /dev/rdsk/c5t0d0
Physical volume "/dev/rdsk/c5t0d0" has been successfully created.
# ioscan -fnC disk
disk      3  2/0/12/1/0/4/1.0.0  sdisk    CLAIMED     DEVICE       COMPAQ  BF1468B26B
                            /dev/dsk/c5t0d0     /dev/dsk/c5t0d0s2   /dev/rdsk/c5t0d0    /dev/rdsk/c5t0d0s2
                            /dev/dsk/c5t0d0s1   /dev/dsk/c5t0d0s3   /dev/rdsk/c5t0d0s1  /dev/rdsk/c5t0d0s3

下面介绍清空分区信息的具体方法:
1,# idisk -R /dev/rdsk/c5t0d0
idisk version: 1.32
********************** WARNING ***********************
If you continue you will destroy all partition data on this disk.
Do you wish to continue(yes/no)? yes
2,# rmsf -H 2/0/12/1/0/4/1.0.0
3, ioscan -fnC disk         
Class     I  H/W Path        Driver   S/W State   H/W Type     Description
===========================================================================
disk      1  2/0/0/2/0.6.0   sdisk    CLAIMED     DEVICE       HP 146 GST3146855LC
                            /dev/dsk/c0t6d0     /dev/dsk/c0t6d0s2   /dev/rdsk/c0t6d0    /dev/rdsk/c0t6d0s2
                            /dev/dsk/c0t6d0s1   /dev/dsk/c0t6d0s3   /dev/rdsk/c0t6d0s1  /dev/rdsk/c0t6d0s3
disk      0  2/0/0/2/1.2.0   sdisk    CLAIMED     DEVICE       Optiarc DVD RW AD-5170A
                            /dev/dsk/c1t2d0   /dev/rdsk/c1t2d0
disk      2  2/0/0/3/0.6.0   sdisk    CLAIMED     DEVICE       HP 146 GST3146855LC
                            /dev/dsk/c2t6d0   /dev/rdsk/c2t6d0
disk      3  2/0/12/1/0/4/1.0.0  sdisk    CLAIMED     DEVICE       COMPAQ  BF1468B26B
disk      4  2/0/12/1/0/4/1.1.0  sdisk    CLAIMED     DEVICE       COMPAQ  BF1468B26B
                            /dev/dsk/c5t1d0   /dev/rdsk/c5t1d0
通过以上信息可见磁盘/dev/dsk/c5t0d0上分区信息已经丢失,磁盘路径没有显示是与"rmsf -H 2/0/12/1/0/4.1.0.0"有关;
4,通过"insf"命令为磁盘加载驱动程序:
# insf -e
insf: Installing special files for sdisk instance 1 address 2/0/0/2/0.6.0
insf: Installing special files for sctl instance 0 address 2/0/0/2/0.7.0
insf: Installing special files for sdisk instance 0 address 2/0/0/2/1.2.0
insf: Installing special files for sctl instance 1 address 2/0/0/2/1.7.0
insf: Installing special files for sdisk instance 2 address 2/0/0/3/0.6.0
insf: Installing special files for sctl instance 2 address 2/0/0/3/0.7.0
insf: Installing special files for stape instance 0 address 2/0/0/3/1.3.0
insf: Installing special files for sctl instance 3 address 2/0/0/3/1.7.0
insf: Installing special files for sctl instance 5 address 2/0/12/1/0/4/0.7.0
insf: Installing special files for sdisk instance 3 address 2/0/12/1/0/4/1.0.0
insf: Installing special files for sdisk instance 4 address 2/0/12/1/0/4/1.1.0
insf: Installing special files for sdisk instance 5 address 2/0/12/1/0/4/1.2.0
insf: Installing special files for sdisk instance 6 address 2/0/12/1/0/4/1.3.0
insf: Installing special files for sctl instance 4 address 2/0/12/1/0/4/1.7.0
insf: Installing special files for sctl instance 7 address 2/0/12/1/0/4/1.15.0
insf: Installing special files for sctl instance 8 address 2/0/14/1/0/4/0.7.0
insf: Installing special files for sdisk instance 7 address 2/0/14/1/0/4/1.0.0
insf: Installing special files for sdisk instance 8 address 2/0/14/1/0/4/1.1.0
insf: Installing special files for sdisk instance 9 address 2/0/14/1/0/4/1.2.0
insf: Installing special files for sdisk instance 10 address 2/0/14/1/0/4/1.3.0
insf: Installing special files for sctl instance 6 address 2/0/14/1/0/4/1.7.0
insf: Installing special files for ipmi instance 0 address 2/250/1
insf: Installing special files for asio0 instance 0 address 2/250/2
insf: Installing special files for pseudo driver cn
insf: Installing special files for pseudo driver mm
insf: Installing special files for pseudo driver ptym
insf: Installing special files for pseudo driver ptys
insf: Installing special files for pseudo driver udp
insf: Installing special files for pseudo driver tcp
insf: Installing special files for pseudo driver rawip
insf: Installing special files for pseudo driver nuls
insf: Installing special files for pseudo driver dmem
insf: Installing special files for pseudo driver ip
insf: Installing special files for pseudo driver arp
insf: Installing special files for pseudo driver tlcotsod
insf: Installing special files for pseudo driver tlcots
insf: Installing special files for pseudo driver tlclts
insf: Installing special files for pseudo driver devkrs
insf: Installing special files for pseudo driver dmp
insf: Installing special files for pseudo driver dev_config
insf: Installing special files for pseudo driver strlog
insf: Installing special files for pseudo driver sad
insf: Installing special files for pseudo driver stcpmap
insf: Installing special files for pseudo driver tels
insf: Installing special files for pseudo driver telm
insf: Installing special files for pseudo driver asyncdsk
insf: Installing special files for pseudo driver vols
insf: Installing special files for pseudo driver echo
insf: Installing special files for pseudo driver dlpi
insf: Installing special files for pseudo driver ptm
insf: Installing special files for pseudo driver pts
insf: Installing special files for pseudo driver klog
insf: Installing special files for pseudo driver sy
insf: Installing special files for pseudo driver kepd
insf: Installing special files for pseudo driver diag2
insf: Installing special files for pseudo driver root
5,通过"ioscan"命令进行确认:
# ioscan -fnC disk
Class     I  H/W Path        Driver   S/W State   H/W Type     Description
===========================================================================
disk      1  2/0/0/2/0.6.0   sdisk    CLAIMED     DEVICE       HP 146 GST3146855LC
                            /dev/dsk/c0t6d0     /dev/dsk/c0t6d0s2   /dev/rdsk/c0t6d0    /dev/rdsk/c0t6d0s2
                            /dev/dsk/c0t6d0s1   /dev/dsk/c0t6d0s3   /dev/rdsk/c0t6d0s1  /dev/rdsk/c0t6d0s3
disk      0  2/0/0/2/1.2.0   sdisk    CLAIMED     DEVICE       Optiarc DVD RW AD-5170A
                            /dev/dsk/c1t2d0   /dev/rdsk/c1t2d0
disk      2  2/0/0/3/0.6.0   sdisk    CLAIMED     DEVICE       HP 146 GST3146855LC
                            /dev/dsk/c2t6d0   /dev/rdsk/c2t6d0
disk      3  2/0/12/1/0/4/1.0.0  sdisk    CLAIMED     DEVICE       COMPAQ  BF1468B26B
                            /dev/dsk/c5t0d0   /dev/rdsk/c5t0d0
disk      4  2/0/12/1/0/4/1.1.0  sdisk    CLAIMED     DEVICE       COMPAQ  BF1468B26B
                            /dev/dsk/c5t1d0   /dev/rdsk/c5t1d0
disk      5  2/0/12/1/0/4/1.2.0  sdisk    CLAIMED     DEVICE       COMPAQ  BF1468B26B
                            /dev/dsk/c5t2d0   /dev/rdsk/c5t2d0
disk      6  2/0/12/1/0/4/1.3.0  sdisk    CLAIMED     DEVICE       COMPAQ  BF1468B26B
                            /dev/dsk/c5t3d0   /dev/rdsk/c5t3d0
disk      7  2/0/14/1/0/4/1.0.0  sdisk    CLAIMED     DEVICE       COMPAQ  BF1468B26B
                            /dev/dsk/c7t0d0   /dev/rdsk/c7t0d0
disk      8  2/0/14/1/0/4/1.1.0  sdisk    CLAIMED     DEVICE       COMPAQ  BF1468B26B
                            /dev/dsk/c7t1d0   /dev/rdsk/c7t1d0
disk      9  2/0/14/1/0/4/1.2.0  sdisk    CLAIMED     DEVICE       COMPAQ  BF1468B26B
                            /dev/dsk/c7t2d0   /dev/rdsk/c7t2d0
disk     10  2/0/14/1/0/4/1.3.0  sdisk    CLAIMED     DEVICE       COMPAQ  BF1468B26B
                            /dev/dsk/c7t3d0   /dev/rdsk/c7t3d0
阅读(3053) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~