How to format Logical Volume in Linux

0 votes

Hi Guys,

I have created one Logical Volume in my Linux system. I want to format this volume. So that I can store my data. How can I do that?

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

1 answer to this question.

0 votes

Hi@akhtar,

In Linux, you can find lots of commands to format your volume like mkfs, nfs, etc. You can use mkfs command to format your volume as shown below.

[root@localhost ~]# mkfs.ext4 /dev/myvg/mylv
mke2fs 1.44.3 (10-July-2018)
Creating filesystem with 14417920 4k blocks and 3604480 inodes
Filesystem UUID: b5c7d06f-865c-488e-9b99-f4eb99961b7b
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424
Allocating group tables: done
Writing inode tables: done
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done

I hope this will help you.

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

Related Questions In Linux Administration

–1 vote
1 answer

How to get octal file permission in linux?

You can use this: stat -c "%a %n" ...READ MORE

answered Jan 3, 2019 in Linux Administration by Omkar
• 69,220 points
2,895 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 path of software installed in Linux?

There are multiple ways to find the ...READ MORE

answered May 20, 2019 in Linux Administration by Rishi
8,642 views
0 votes
1 answer

How to convert DOS line endings to Linux line endings in vim?

try this; :%s/\r/\r/g READ MORE

answered May 24, 2019 in Linux Administration by Upasana
• 8,620 points
1,125 views
0 votes
1 answer

How to create Volume Group in Linux?

Hi@akhtar, To create a Volume Group, you need ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,460 points
1,564 views
0 votes
1 answer
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,683 views
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 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
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