PV Create :-
Syntax :- pvcreate <diskname>
"pvs" is the command to see current Physical Volumes.
VG Create :-
Syntax :- vgcreate <vgname>
"vgs" is the command to see current Volume Groups.
LV Create :-
Syntax:- lvcreate -L size -n <lvname> <vgname >
"lvs" is the command to see current Logical Volumes
How to create file system ? In below example I am showing for ext3. You can replace it with ext4/xfs as needed .
syntax:- mkfs.ext3 /dev/<vgname>/<lvname>
syntax:- mount -t <filesystemType> /dev/<vgname>/<lvname> <mount directory>
ex:- mount -t ext3 /dev/vglinuxtechnotes/lvlinux /linuxtechnotes
In order to get auto mount during system boot add to /etc/fstab file as below .
No comments:
Post a Comment