[linux-lvm] ThinProvisioned lvm's Don't Activate or Mount
Jack Waterworth
jack at redhat.com
Fri Dec 5 22:23:49 UTC 2014
Try passing the -K flag with vgchange.
# vgchange -Kay
Jack Waterworth, Red Hat Certified Architect
Senior Storage Technical Support Engineer
Red Hat Global Support Services ( 1.888.467.3342 )
On 12/03/2014 11:12 AM, Rock wrote:
> Hello All,
>
> I have two PV's with Thin Volumes within them.
> Im not able to mount or activate either after trying to
> vgcfgrestore one of them.
> PV,VG and LV display/scan all show volumes
> but cant activate them or mount them.
>
>
> I ran the following command to restore the thin volume
> from the metadata file in /etc/lvm/archive.
>
> vgcfgrestore --force -f
> /etc/lvm/archive/vg_sfim_00640-658506285.vg vg_sfim
> Scan commands:
>
> [root at erbium ~]# pvs
> PV VG Fmt Attr PSize PFree
> /dev/sda2 vg_erbium lvm2 a-- 59.51g 0
> /dev/sdb vg_sfim lvm2 a-- 29.80t 0
> /dev/sdc vg_sfim lvm2 a-- 6.58t 0
> /dev/sdd vg_fmrif lvm2 a-- 36.39t 0
> You have new mail in /var/spool/mail/root
> [root at erbium ~]# vgs
> VG #PV #LV #SN Attr VSize VFree
> vg_erbium 1 3 0 wz--n- 59.51g 0
> vg_fmrif 1 14 0 wz--n- 36.39t 0
> vg_sfim 2 3 0 wz--n- 36.39t 0
> [root at erbium ~]# lvs
> lv_home vg_erbium -wi-ao---- 3.19g
> lv_root vg_erbium -wi-ao---- 32.68g
> lv_swap vg_erbium -wi-ao---- 23.64g
> lv_fmrif vg_fmrif Vwi---tz-- 20.00t thinpool
> lv_fmrif_2014_11_20_23_00 vg_fmrif Vwi---tz-k 20.00t thinpool lv_fmrif
> lv_fmrif_2014_11_21_23_00 vg_fmrif Vwi---tz-k 20.00t thinpool lv_fmrif
> lv_fmrif_2014_11_22_23_00 vg_fmrif Vwi---tz-k 20.00t thinpool lv_fmrif
> lv_fmrif_2014_11_23_23_00 vg_fmrif Vwi---tz-k 20.00t thinpool lv_fmrif
> lv_fmrif_2014_11_24_23_00 vg_fmrif Vwi---tz-k 20.00t thinpool lv_fmrif
> lv_fmrif_2014_11_25_23_00 vg_fmrif Vwi---tz-k 20.00t thinpool lv_fmrif
> lv_users vg_fmrif Vwi---tz-- 1.00t thinpool
> lv_users_2014_11_21_23_00 vg_fmrif Vwi---tz-k 1.00t thinpool lv_users
> lv_users_2014_11_22_23_00 vg_fmrif Vwi---tz-k 1.00t thinpool lv_users
> lv_users_2014_11_23_23_00 vg_fmrif Vwi---tz-k 1.00t thinpool lv_users
> lv_users_2014_11_24_23_00 vg_fmrif Vwi---tz-k 1.00t thinpool lv_users
> lv_users_2014_11_25_23_00 vg_fmrif Vwi---tz-k 1.00t thinpool lv_users
> thinpool vg_fmrif twi---tz-- 36.39t
> lv_sfim vg_sfim Vwi---tz-k 35.00t sfim_thinpool
> lv_sfim_2014_11_23_23_00 vg_sfim Vwi---tz-k 35.00t sfim_thinpool
> sfim_thinpool vg_sfim twi---tz-- 36.39t
>
> cant seam to activate them when i do a vgchange.
>
> Get the following output:
>
> [root at erbium ~]# vgchange -ay
> Check of pool vg_fmrif/thinpool failed (status:1). Manual repair required!
> 0 logical volume(s) in volume group "vg_fmrif" now active
> Thin pool transaction_id is 649, while expected 647.
> 0 logical volume(s) in volume group "vg_sfim" now active
> 3 logical volume(s) in volume group "vg_erbium" now active
>
> Also dmsetup command used to show me the volumes in question,
> however after reboot it does not
>
> [root at erbium ~]# dmsetup info -c
> Name Maj Min Stat Open Targ Event UUID
> vg_erbium-lv_root 253 0 L--w 1 1 0 LVM-
> vg_erbium-lv_home 253 2 L--w 1 1 0 LVM-
> vg_erbium-lv_swap 253 1 L--w 1 1 0 LVM-
>
> [root at erbium ~]# dmsetup table
> vg_erbium-lv_root: 0 68534272 linear 8:2 2048
> vg_erbium-lv_home: 0 6684672 linear 8:2 68536320
> vg_erbium-lv_swap: 0 49577984 linear 8:2 75220992
>
> [root at erbium ~]# dmsetup status
> vg_erbium-lv_root: 0 68534272 linear
> vg_erbium-lv_home: 0 6684672 linear
> vg_erbium-lv_swap: 0 49577984 linear
>
> Any help would be greatly appreciated.
> Thanks in advance
> Rock
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
More information about the linux-lvm
mailing list