jishunfeng 发表于 2013-05-16 16:20

[已解决]rx2600上dd一块73G的硬盘,一下午了,到现在还是没成功

本帖最后由 lbseraph 于 2013-05-21 11:37 编辑

RX2600上 dd 一块73G的硬盘,一下午了,到现在还是没成功
# ioscan -fnCdisk
Class   IH/W Path       Driver S/W State   H/W Type   Description
=======================================================================
disk      20/0/2/0.0.0.0sdisk   CLAIMED   DEVICE       TEAC    DV-28E-N
                           /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
disk      10/1/1/0.0.0    sdisk   CLAIMED   DEVICE       HP 73.4GST373405LC
                           /dev/dsk/c2t0d0   /dev/dsk/c2t0d0s2   /dev/rdsk/c2t0d0    /dev/rdsk/c2t0d0s2
                           /dev/dsk/c2t0d0s1   /dev/dsk/c2t0d0s3   /dev/rdsk/c2t0d0s1/dev/rdsk/c2t0d0s3
disk      00/1/1/0.1.0    sdisk   CLAIMED   DEVICE       HP 73.4GST373405LC
                           /dev/dsk/c2t1d0   /dev/dsk/c2t1d0s2   /dev/rdsk/c2t1d0    /dev/rdsk/c2t1d0s2
                           /dev/dsk/c2t1d0s1   /dev/dsk/c2t1d0s3   /dev/rdsk/c2t1d0s1/dev/rdsk/c2t1d0s3
原统装在/dev/rdsk/c2t1d0    ,
# dd if=/dev/rdsk/c2t1d0 of=/dev/rdsk/c2t0d0 bs=16384k &

dd的过程中,建议开iostat来监控读写速度
# iostat 1 1000
#ps -efa|grep dd|grep if|grep -v grep|wc -l返回值一直为 1

且 more /var/adm/syslog/syslog.log |grep EMS
May 16 13:13:58 demo EMS : ------ EMS Event Notification ------   Value: "CRITICAL (5)" for Resource: "/system/events/ia64_corehw/core_hw"   (Threshold:>= " 3")    Execute the following command to obtain event details:   /opt/resmon/bin/resdata -R 377815042 -r /system/events/ia64_corehw/core_hw -n 377815041 -a有报错
请大侠们帮我看看是什么问题

解决方法:见5#。

jishunfeng 发表于 2013-05-16 16:29

因为我RX2600上两块盘之前是做过镜像的, 昨天我把镜像拆除掉了,做过一次dd,上次的速度很快,大概一个小时左右,做完后,我把做好的拷贝盘放到之前系统盘的槽位,系统无法启动,进到维护模式,重新vgexport/vgimport ,在vgchange 后可以识别到vg 以及lv 但是重新启动后,还是报错
oot device's HP-UX HW path is: 0.1.1.0.1.0
igelan1: INITIALIZING HP PCI 1000Base-T Core at hardware path 0/1/2/0
btlan: Initializing 10/100BASE-TX card at 0/2/1/0....

    System Console is on the Built-In Serial Interface
AF_INET socket/streams output daemon running, pid 32
afinet_prelink: module installed
Starting the STREAMS daemons-phase 1
LVM : Failure in attaching PV (dev=0x3000007) to the root volume group.
The physical volume does not exist, or is not configured in the kernel
LVM : Activation of root volume group failed
Quorum not present, or some physical volume(s) are missing
LVM: Rootvgscan skipped due to quorum override
LVM : Failure in attaching PV (dev=0x3000007) to the root volume group.
The physical volume does not exist, or is not configured in the kernel
LVM : Activation of root volume group failed
Quorum not present, or some physical volume(s) are missing


      -----------------------------------------------------
      |                                                   |
      |       SYSTEM HALTING during LVM Configuration   |
      |                                                   |
                Could not configure root VG
            If new kernel, HPUX> boot /stand/vmunix -lm ; pvck -y /dev/rdsk/....
      |                                                   |
      -----------------------------------------------------


Message buffer contents after system crash:

panic: LVM: Configuration failure
Stack Trace:
IP                  Function Name
0xe000000001baf020lv_boothalt+0xf0
0xe000000001baede0lvmconf_body+0x680
0xe000000001c371f0lvmconf+0x30
0xe00000000183e6a0im_lvmconf+0x70
0xe0000000022e7700DoCalllist+0x390
End of Stack Trace
所以怀疑dd之前要格式化,所以今天重新把c2t0d0pvcreate 后再dd 就出现4个多小时还没做完,是什么问题呢

lbseraph 发表于 2013-05-16 19:15

确实太久了,把/opt/resmon/bin/resdata -R 377815042 -r /system/events/ia64_corehw/core_hw -n 377815041 -a的命令输出贴出来~

jishunfeng 发表于 2013-05-20 09:57

lbseraph 发表于 2013-05-16 19:15 static/image/common/back.gif
确实太久了,把/opt/resmon/bin/resdata -R 377815042 -r /system/events/ia64_corehw/core_hw -n 37781504 ...

谢谢回复
我发现是我把硬盘pvcreate后就特别的慢,但是不pv就顺利完成了   
但是发现新问题

    System Console is on the Built-In Serial Interface
AF_INET socket/streams output daemon running, pid 32
afinet_prelink: module installed
Starting the STREAMS daemons-phase 1
LVM : Failure in attaching PV (dev=0x3000007) to the root volume group.
The physical volume does not exist, or is not configured in the kernel
LVM : Activation of root volume group failed
Quorum not present, or some physical volume(s) are missing
LVM: Rootvgscan skipped due to quorum override
LVM : Failure in attaching PV (dev=0x3000007) to the root volume group.
The physical volume does not exist, or is not configured in the kernel
LVM : Activation of root volume group failed
Quorum not present, or some physical volume(s) are missing


      -----------------------------------------------------
      |                                                   |
      |       SYSTEM HALTING during LVM Configuration   |
      |                                                   |
                Could not configure root VG
            If new kernel, HPUX> boot /stand/vmunix -lm ; pvck -y /dev/rdsk/....
      |                                                   |
      -----------------------------------------------------


Message buffer contents after system crash:

panic: LVM: Configuration failure
Stack Trace:
IP                  Function Name
0xe000000001baf020lv_boothalt+0xf0
0xe000000001baede0lvmconf_body+0x680
0xe000000001c371f0lvmconf+0x30
0xe00000000183e6a0im_lvmconf+0x70
0xe0000000022e7700DoCalllist+0x390
End of Stack Trace

linkstamp:          Thu Apr 18 18:48:56 EST 2013
_release_version:   @(#) $Revision: vmunix:    B.11.31_LR FLAVOR=perf
Calling function e000000001920fe0 for Shutdown State 1 type 0x2
      i 0 pfn 0x1 pages 0x9f
      i 1 pfn 0x100 pages 0x3f4e4
      i 2 pfn 0x3fb00 pages 0x2c
      i 3 pfn 0x4040000 pages 0xbfd68
      i 4 pfn 0x40ffda4 pages 0x6c
      i 5 pfn 0x40ffe7e pages 0x140

*** A system crash has occurred. (See the above messages for details.)
*** The system is now preparing to dump physical memory to disk, for use
*** in debugging the crash.

ERROR:Your system crashed before I/O and dump configuration was complete.
      This system does not support a crash dump under these circumstances.
      Contact your HP support representative for assistance.
进维护模式 vgimport 导入vg00 ,vgimport vg00 /dev/dsk/c2t1d0s2;后再vgchange -a y vg00;可以正常vgdisplay
vgdisplay -v vg00
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write   
VG Status                   available               
Max LV                      255   
Cur LV                      9      
Open LV                     9      
Max PV                      16   
Cur PV                      1      
Act PV                      1      
Max PE per PV               4328         
VGDA                        2   
PE Size (Mbytes)            16            
Total PE                  4319   
Alloc PE                  2224   
Free PE                     2095   
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)            1792            
   Current LE                  112      
   Allocated PE                112         
   Used PV                     1      

   LV Name                     /dev/vg00/lvol2
   LV Status                   available/syncd         
   LV Size (Mbytes)            8192            
   Current LE                  512      
   Allocated PE                512         
   Used PV                     1      

   LV Name                     /dev/vg00/lvol3
   LV Status                   available/syncd         
   LV Size (Mbytes)            1024            
   Current LE                  64      
   Allocated PE                64         
   Used PV                     1      

   LV Name                     /dev/vg00/lvol4
   LV Status                   available/syncd         
   LV Size (Mbytes)            512            
   Current LE                  32      
   Allocated PE                32         
   Used PV                     1      

   LV Name                     /dev/vg00/lvol5
   LV Status                   available/syncd         
   LV Size (Mbytes)            112            
   Current LE                  7         
   Allocated PE                7         
   Used PV                     1      

   LV Name                     /dev/vg00/lvol6
   LV Status                   available/syncd         
   LV Size (Mbytes)            5120            
   Current LE                  320      
   Allocated PE                320         
   Used PV                     1      

   LV Name                     /dev/vg00/lvol7
   LV Status                   available/syncd         
   LV Size (Mbytes)            5008            
   Current LE                  313      
   Allocated PE                313         
   Used PV                     1      

   LV Name                     /dev/vg00/lvol8
   LV Status                   available/syncd         
   LV Size (Mbytes)            8704            
   Current LE                  544      
   Allocated PE                544         
   Used PV                     1      

   LV Name                     /dev/vg00/lvol9
   LV Status                   available/syncd         
   LV Size (Mbytes)            5120            
   Current LE                  320      
   Allocated PE                320         
   Used PV                     1      


   --- Physical volumes ---
   PV Name                     /dev/dsk/c2t1d0s2
   PV Status                   available               
   Total PE                  4319   
   Free PE                     2095   
   Autoswitch                  On      
重新reboot还是报之前的报错,请大侠指教,坐等,先谢谢了

lbseraph 发表于 2013-05-20 13:02

回复 4# jishunfeng

进维护模式把vg00激活后再按个输入下面的命令,重启再看一下结果:

lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -R
reboot   

jishunfeng 发表于 2013-05-20 15:21

版主英明, 按照你说的, 做了一遍,机器已正常启动!thks


结贴

lbseraph 发表于 2013-05-21 11:38

解决就好~其实报错已经告诉你LVM的配置有问题。

chinadns 发表于 2013-05-22 15:57

dd 跟你pvcreate没关系
页: [1]
查看完整版本: [已解决]rx2600上dd一块73G的硬盘,一下午了,到现在还是没成功