linux 创建文件系统,Linux lvm创建文件系统

以下仅为安装记录

1、创建lv

引用

[root@Linux ~]# lvcreate -L 20480 VolGroup_ID_25519 -n lvdbra

Logical volume "lvdbra" created

2、创建挂载点

引用

[root@Linux ~]# mkdir /dbra

3、直接挂载或用ext3格式挂载报错

引用

[root@Linux ~]# mount /dev/VolGroup_ID_25519/lvdbra /dbra

mount: you must specify the filesystem type

[root@Linux ~]# mount -t ext3 /dev/VolGroup_ID_25519/lvdbra /dbra

mount: wrong fs type, bad option, bad superblock on /dev/VolGroup_ID_25519/lvdbra,

missing codepage or other error

In some cases useful info is found in syslog - try

dmesg | tail  or so

4、用ext3文件系统格式lv

引用

[root@Linux ~]# mkfs.ext3 -L lvdbra /dev/VolGroup_ID_25519/lvdbra

mke2fs 1.39 (29-May-2006)

Filesystem label=lvdbra

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

2621440 inodes, 5242880 blocks

262144 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=4294967296

160 block groups

32768 blocks per group, 32768 fragments per group

16384 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

4096000

Writing inode tables: done

Creating journal (32768 blocks): done

Writing superblocks and filesystem accounting information:

done

This filesystem will be automatically checked every 23 mounts or

180 days, whichever comes first.  Use tune2fs -c or -i to override.

5、mount挂载点

引用

[root@Linux ~]# mount /dev/VolGroup_ID_25519/lvdbra /dbra

6、在/etc/fstab添加条目,随系统自启动

引用

/dev/VolGroup_ID_25519/lvdbra  /dbra                   ext3    defaults        1 20b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值