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 8 in Linux Administration by akhtar
• 18,250 points
31 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 by MD
• 42,420 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,020 points
314 views
0 votes
1 answer

How to create a symlink in Linux?

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

answered Jan 31, 2019 in Linux Administration by Omkar
• 69,020 points
145 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 19, 2019 in Linux Administration by Rishi
1,159 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,590 points
122 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 8 in Linux Administration by MD
• 42,420 points
25 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 8 in Linux Administration by MD
• 42,420 points
23 views
0 votes
1 answer

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

Hi@akhtar, You got this error because your command ...READ MORE

answered Jul 8 in Linux Administration by MD
• 42,420 points
80 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 8 in Linux Administration by MD
• 42,420 points
32 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 in Linux Administration by MD
• 42,420 points
35 views