情形:安装suse+db2 hadr时,磁盘是挂载移动硬盘上的,手欠把移动硬盘给拔了,重启下发现lv状态不对
suse80:/dev # mount /dev/rootvg/db2ecdslv /db2ecds
mount: special device /dev/rootvg/db2ecdslv does not exist
suse80:/dev # lvdisplay
— Logical volume —
LV Name /dev/rootvg/db2ecdslv
VG Name rootvg
LV UUID U6tSuY-cO1o-1bMu-86Zg-kmHA-nxpr-8bk3LA
LV Write Access read/write
LV Creation host, time suse80, 2017-10-13 15:20:02 +0800
LV Status NOT available
LV Size 1.00 GiB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
— Logical volume —
LV Name /dev/rootvg/edb2_ecdsdb
VG Name rootvg
LV UUID RNm0WN-Qa26-OS0a-Dv44-q890-pRrV-awymGo
LV Write Access read/write
LV Creation host, time suse80, 2017-10-13 15:20:44 +0800
LV Status NOT available
LV Size 1.00 GiB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
suse80:/dev # vgdisplay
— Volume group —
VG Name rootvg
System ID
Format lvm2
Metadata Areas 3
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 0
Max PV 0
Cur PV 3
Act PV 3
VG Size 6.98 GiB
PE Size 4.00 MiB
Total PE 1788
Alloc PE / Size 512 / 2.00 GiB
Free PE / Size 1276 / 4.98 GiB
VG UUID 1DLgiF-dzTr-Vbml-w2eQ-mLU7-4BaQ-s0frdv
— Volume group —
VG Name ecds_dbvg
System ID
Format lvm2
Metadata Areas 4
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 4
Act PV 4
VG Size 22.98 GiB
PE Size 4.00 MiB
Total PE 5884
Alloc PE / Size 0 / 0
Free PE / Size 5884 / 22.98 GiB
VG UUID 9TDcJA-tDyz-Cpdl-j9eQ-oI2c-FWOH-Nza8HC
suse80:/dev # vgchange -a y rootvg
2 logical volume(s) in volume group “rootvg” now active
suse80:/dev # lvdisplay
— Logical volume —
LV Name /dev/rootvg/db2ecdslv
VG Name rootvg
LV UUID U6tSuY-cO1o-1bMu-86Zg-kmHA-nxpr-8bk3LA
LV Write Access read/write
LV Creation host, time suse80, 2017-10-13 15:20:02 +0800
LV Status available
# open 0
LV Size 1.00 GiB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 1024
Block device 253:0
— Logical volume —
LV Name /dev/rootvg/edb2_ecdsdb
VG Name rootvg
LV UUID RNm0WN-Qa26-OS0a-Dv44-q890-pRrV-awymGo
LV Write Access read/write
LV Creation host, time suse80, 2017-10-13 15:20:44 +0800
LV Status available
# open 0
LV Size 1.00 GiB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 1024
Block device 253:1
suse80:/dev # mount /dev/rootvg/db2ecdslv /db2ecds
suse80:/dev # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 7.0G 3.9G 2.7G 60% /
udev 940M 164K 940M 1% /dev
tmpfs 940M 72K 940M 1% /dev/shm
/dev/mapper/rootvg-db2ecdslv 1008M 34M 924M 4% /db2ecds
suse80:/dev #