All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jack Waterworth <jack@redhat.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] ThinProvisioned lvm's Don't Activate or Mount
Date: Fri, 05 Dec 2014 17:23:49 -0500	[thread overview]
Message-ID: <54823075.7010307@redhat.com> (raw)
In-Reply-To: <loom.20141203T163029-461@post.gmane.org>

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@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@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@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@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@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@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@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@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

  reply	other threads:[~2014-12-05 22:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-03 16:12 [linux-lvm] ThinProvisioned lvm's Don't Activate or Mount Rock
2014-12-05 22:23 ` Jack Waterworth [this message]
2014-12-06  1:40 ` Alasdair G Kergon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54823075.7010307@redhat.com \
    --to=jack@redhat.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.