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, 2020 in Linux Administration by akhtar
• 38,170 points
135 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,180 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,130 points
642 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,130 points
250 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
3,086 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
215 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, 2020 in Linux Administration by MD
• 95,180 points
115 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, 2020 in Linux Administration by MD
• 95,180 points
133 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, 2020 in Linux Administration by MD
• 95,180 points
799 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, 2020 in Linux Administration by MD
• 95,180 points
240 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,180 points
198 views