Welcome 微信登录

首页 / 操作系统 / Linux / Linux lvm创建文件系统

以下仅为安装记录
1、创建lv 引用
[root@Linux ~]# lvcreate -L 20480 VolGroup_ID_25519 -n lvdbra
  Logical volume "lvdbra" created2、创建挂载点 引用
[root@Linux ~]# mkdir /dbra3、直接挂载或用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 /dbra6、在/etc/fstab添加条目,随系统自启动 引用
/dev/VolGroup_ID_25519/lvdbra  /dbra                   ext3    defaults        1 2Linux gcc rpm包安装过程GoodReader Ubuntu文件传送方法相关资讯      Linux教程 
  • Linux教程:如何在命令行中查看目  (07/28/2014 12:22:23)
  • Linux 修改root密码  (11/03/2012 07:53:38)
  • su - root 与su root的区别  (06/06/2012 00:39:40)
  • Linux进程间通信:消息队列  (01/28/2013 09:43:00)
  • U盘安装Linux开机无法启动解决方法  (10/07/2012 08:55:52)
  • Windows 7/Linux 同步时间  (05/15/2012 06:17:55)
本文评论 查看全部评论 (0)
表情: 姓名: 字数