Operating System - Linux
1820290 Members
2984 Online
109622 Solutions
New Discussion

Creating Lv with a mentioned block size

 
SOLVED
Go to solution
Sreer
Valued Contributor

Creating Lv with a mentioned block size

Hi,

 

I need to create an LV with a block size of  1024

 

but getting the below errors:

 

]# lvcreate -L 3072M  -b 1024 -n lv-u05 /dev/rvg
lvcreate: invalid option -- b
  Error during parsing of command line.

 

Could you please correct me where Iam wrong?

 

Rgds

Sree

1 REPLY 1
Sreer
Valued Contributor
Solution

Re: Creating Lv with a mentioned block size

Hi,

I got the answer.

Create the Lv first

lvcreate -L 3072M -n lv-u05 /dev/rvg

mkfs.ext3 -m 0 -b 1024 /dev/rvg/lv-u05

# tune4fs -l /dev/rvg/lv-u05 | grep -i "Block size:"
Block size: 1024

its done..

Thanks
Sree