rmdev -dl hdisk 会删除盘上的数据吗?
我做过实验了, testvg里包含两块盘, hdisk1,hdisk2.用exportvg 正确的,用其他办法删除hdisk1,都必须执行reducevg 命令,而只要执行这个命令就会得到数据将被删掉的提示,正确的做法如下(testvg 只有hdisk1,也一样):
1.varyoffvg testvg
2.exportvg testvg
3.rmdev -l hdisk1
4.cfgmgr
5.importvg -y testvg hdisk1
6.lspv -l hdisk1
发现原盘里的东西都在.
能用lspv -l hdisk1看看里面有没有LV吗?
现在的解决办法从ODM数据库中直接删除与datavg2有关的信息:
#odmdelete -o CuDv -q name=datavg2
#odmdelete -o CuAt -q name=datavg2
# lsdev -Cc adapter
cor0 Available 08-00 GXT145 Graphics Adapter
ent0 Available Logical Host Ethernet Port (lp-hea)
ent1 Available Logical Host Ethernet Port (lp-hea)
fcs0 Available 02-08 FC Adapter
fcs1 Available 02-09 FC Adapter
lhea0 Available Logical Host Ethernet Adapter (l-hea)
sa0 Available 09-00 4 Port Async EIA-232 PCIe Adapter
sissas0 Available 00-08 PCI-X266 Planar 3Gb SAS Adapter
usbhc0 Available 01-08 USB Host Controller (33103500)
usbhc1 Available 01-09 USB Host Controller (33103500)
usbhc2 Available 01-0a USB Enhanced Host Controller (3310e000)
vsa0 Available LPAR Virtual Serial Adapter
vsa1 Available LPAR Virtual Serial Adapter
# lscfg -vpl fcs0
fcs0 U78A0.001.DNWK92X-P1-C4-T1 FC Adapter
Part Number.................10N8620
Serial Number...............1C1080875A
Manufacturer................001C
EC Level....................D76625
Customer Card ID Number.....5759
FRU Number.................. 10N8620
Device Specific.(ZM)........3
Network Address.............10000000C9B628E6
ROS Level and ID............02C82774
Device Specific.(Z0)........1036406D
Device Specific.(Z1)........00000000
Device Specific.(Z2)........00000000
Device Specific.(Z3)........03000909
Device Specific.(Z4)........FFC01231
Device Specific.(Z5)........02C82774
Device Specific.(Z6)........06C12715
Device Specific.(Z7)........07C12774
Device Specific.(Z8)........20000000C9B628E6
Device Specific.(Z9)........BS2.71X4
Device Specific.(ZA)........B1F2.70A5
Device Specific.(ZB)........B2F2.71X4
Device Specific.(ZC)........00000000
Hardware Location Code......U78A0.001.DNWK92X-P1-C4-T1
PLATFORM SPECIFIC
Name: fibre-channel
Model: LP11002
Node: fibre-channel@1
Device Type: fcp
Physical Location: U78A0.001.DNWK92X-P1-C4-T1
# lspv
hdisk0 00c9d8a62b7d03cb rootvg active
hdisk1 00c9d8a67117c424 rootvg active
hdisk2 00c9d8a670e87525 dbvg
hdisk3 00c9d8a670e8acd7 appvg active
hdisk4 00c9d8a670e8fccb vaultsvg active
hdisk5 00c9d8a670e92464 backupvg active
hdisk6 00c9d8a62ad74ba3 cvfsvg active
hdisk7 00c9d8b6456f945e appvg2 active
hdisk8 none None
hdisk14 00c9d8b62adb7f28 cvdbvg
阅读(848) | 评论(0) | 转发(0) |