How to create Volume Group in Linux

0 votes

Hi Guys,

I have created two Physical Volume in my Linux system. I want to create one Volume Group from these two. How can I do this?

Jul 9, 2020 in Linux Administration by akhtar
• 38,260 points
1,563 views

1 answer to this question.

0 votes

Hi@akhtar,

To create a Volume Group, you need to create Physical Volume first. After that, you can use vgcreate command to create one Volume Group. You can go through the below example.

[root@localhost ~]# vgcreate myvg /dev/sdb /dev/sdc
  Volume group "myvg" successfully created
[root@localhost ~]# vgdisplay myvg
  --- Volume group ---
  VG Name               myvg
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               59.99 GiB
  PE Size               4.00 MiB
  Total PE              15358
  Alloc PE / Size       0 / 0
  Free  PE / Size       15358 / 59.99 GiB
  VG UUID               AFeRlq-Uu1l-JkWp-5Dgh-DOfH-UCcH-eJbq1L

I hope this will give you some ideas.

answered Jul 9, 2020 by MD
• 95,460 points

Related Questions In Linux Administration

0 votes
1 answer

How to create a group in Linux system?

Hi@MD, On Linux, group information is held in the /etc/group file. ...READ MORE

answered Aug 14, 2020 in Linux Administration by akhtar
• 38,260 points
1,036 views
0 votes
1 answer

How to create a symlink in Linux?

To create a symbolic link, you can ...READ MORE

answered Feb 1, 2019 in Linux Administration by Omkar
• 69,220 points
1,385 views
0 votes
1 answer

How to find the group associated with a user in linux?

To list all the groups groups or to list ...READ MORE

answered Jun 21, 2019 in Linux Administration by DareDev
• 6,890 points
1,051 views
0 votes
1 answer

How to create one new partition in my hard disk in Linux?

Hi@akhtar, To create new partition you can follow ...READ MORE

answered Apr 7, 2020 in Linux Administration by MD
• 95,460 points
1,276 views
0 votes
1 answer

How to increase Logical Volume Size in Linux?

Hi@akhtar, To increase the Logical Volume Size, the ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,460 points
1,436 views
0 votes
1 answer

How to format Logical Volume in Linux?

Hi@akhtar, In Linux, you can find lots of ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,460 points
1,041 views
0 votes
1 answer
0 votes
1 answer

Volume group "mylv" not found Cannot process volume group mylv

Use lvscan and the absolute path for ...READ MORE

answered Feb 25, 2023 in Linux Administration by anonymous

edited Mar 5 4,757 views
0 votes
1 answer

How to create Logical Volume from Volume Group in Linux?

Hi@akhtar, You can use lvcreate command to create ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,460 points
2,111 views
0 votes
1 answer

How to create Physical Volume in Linux?

Hi@akhtar, To create Physical volume in the Linux ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,460 points
5,682 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP