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...
Continue reading...