How to activate Linux logical volume

In order to check the logical volume’s status we’ll use the lvs command:

[root@devops ~]# lvs
  LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  lvol1    doe_vg      -wi-ao 100.00m

The status of the lv will be dispalyed in the attr column on the fifth feild. in the above example the attribute is A which means – active.

If the fifth feild is not as shown above. for example:

[root@devops ~]# lvs
  LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  lvol1    doe_vg      -wi--- 100.00m

you may not be able to mount a filesystem on the logical volume.

In order to activate the logical volume we’ll use the command below:

[root@devops ~]# lvchange -aa /dev/mapper/vol1

2 Comments

  1. Nathan   •  

    Thanks for another informative website. Where else could I am getting
    that kind of information written in such an ideal approach?
    I’ve a project that I’m simply now working on, and I have been at the glance out
    for such info.

  2. Liam   •  

    Wow. That is so elegant and logical and clearly explained. Brilliantly goes through what could be a complex process and makes it obvious. Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *