- 论坛徽章:
- 0
|
你的机器没有镜像的,lvreduce不起作用的.
Cur LV 9
Open LV 8
很奇怪还有一个lv呢,没看到,估计就是这个lv的问题,如果lv有问题,状态是stale的.
给你贴下老外的:
vgreduce -f vg01
Not all extents are free. i.e. Out of 868 PEs, only 0 are free.
You must free all PEs using lvreduce/lvremove before the PV can be removed.
Example: lvreduce -A n -m 0 /dev/vg01/lvol1.
lvremove -A n /dev/vg01/lvol1
skip alternate link /dev/dsk/c6t0d0
skip alternate link /dev/dsk/c6t0d2
skip alternate link /dev/dsk/c4t0d1
Here's the map of used PEs
--- Logical extents ---
LE LV PE Status 1
0000 lvol57 0000 ???
0001 lvol57 0001 ???
0002 lvol57 0002 ???
0397 lvol97 0866 ???
0398 lvol97 0867 ???
vgreduce -f vg01 shows that lvol57 and lvol97 is on the system. They couldn't be lvdisplayed/lvremoved due to the lvolname is not the real one. 57 is the minor number for the lvol.
So I did like this,
convert dec 57 to hex 39. Found out that lvol57 infact is /dev/vg01/ora_tmp (minor 36); ls -la /dev/vg01 | grep 39
ls -la /dev/vg01 | grep 39
brw-r----- 1 root sys 64 0x010039 Feb 13 2007 ora_tmp
crw-r----- 1 root sys 64 0x010039 Feb 13 2007 rora_tmp
lvreduce /dev/vg01/ora_tmp
vgreduce -f vg01 (works now when /dev/vg01/ora_tmp is gone)
vgcfgbackup vg01
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf |
|