逻辑卷上面创建文件系统并挂载下次启动没有自动挂载的解决办法

 

 

现象:

 

[root@localhost ~]# df -h

Filesystem                      Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup-lv_root    6.8G  5.9G  609M  91% /

tmpfs                           498M   72K  498M   1% /dev/shm

/dev/sda1                       477M   55M  397M  13% /boot

/dev/mapper/VolGroup-lvoracle    12G  7.2G  3.5G  68% /oracle

/dev/mapper/VolGroup-lvoradata  3.9G  1.5G  2.2G  42% /oradata

 

[root@localhost ~]# init 6

 

 

[root@localhost ~]# df -h

Filesystem                      Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup-lv_root    6.8G  5.9G  609M  91% /

tmpfs                           498M   72K  498M   1% /dev/shm

/dev/sda1                       477M   55M  397M  13% /boot

 

 

解决方法:

[root@localhost ~]# lvs

  LV        VG       Attr       LSize  Pool Origin Data%  Move Log Cpy%Sync Convert

  lv_root   VolGroup -wi-ao—-  7.00g                                             

  lv_swap   VolGroup -wi-ao—-  1.97g                                            

  lvoracle  VolGroup -wi-a—– 11.53g                                            

  lvoradata VolGroup -wi-a—–  4.00g

 

 

[root@localhost ~]# lvdisplay

  — Logical volume —

  LV Path                /dev/VolGroup/lv_root

  LV Name                lv_root

  VG Name                VolGroup

  LV UUID                UX2roe-WTf3-dfCl-CG60-UtT2-Q4TF-35VwgH

  LV Write Access        read/write

  LV Creation host, time localhost.localdomain, 2014-04-28 11:05:58 +0800

  LV Status              available

  # open                 1

  LV Size                7.00 GiB

  Current LE             1792

  Segments               1

  Allocation             inherit

  Read ahead sectors     auto

  – currently set to     256

  Block device           252:0

  

  — Logical volume —

  LV Path                /dev/VolGroup/lv_swap

  LV Name                lv_swap

  VG Name                VolGroup

  LV UUID                LcNjde-TBlu-Wg1g-Pc9A-xi5z-3OmR-TJO22B

  LV Write Access        read/write

  LV Creation host, time localhost.localdomain, 2014-04-28 11:05:59 +0800

  LV Status              available

  # open                 2

  LV Size                1.97 GiB

  Current LE             504

  Segments               1

  Allocation             inherit

  Read ahead sectors     auto

  – currently set to     256

  Block device           252:1

  

  — Logical volume —

  LV Path                /dev/VolGroup/lvoracle

  LV Name                lvoracle

  VG Name                VolGroup

  LV UUID                BMojcj-XotD-XMh8-FdSc-1Zin-7N0M-TbyMsg

  LV Write Access        read/write

  LV Creation host, time localhost.localdomain, 2014-04-30 09:17:13 +0800

  LV Status              available

  # open                 0

  LV Size                11.53 GiB

  Current LE             2952

  Segments               2

  Allocation             inherit

  Read ahead sectors     auto

  – currently set to     256

  Block device           252:2

  

  — Logical volume —

  LV Path                /dev/VolGroup/lvoradata

  LV Name                lvoradata

  VG Name                VolGroup

  LV UUID                huDbe4-R3bz-JBdw-L92S-bm2i-slhR-RLGRdj

  LV Write Access        read/write

  LV Creation host, time localhost.localdomain, 2014-04-30 10:00:09 +0800

  LV Status              available

  # open                 0

  LV Size                4.00 GiB

  Current LE             1024

  Segments               1

  Allocation             inherit

  Read ahead sectors     auto

  – currently set to     256

  Block device           252:3

 

[root@localhost ~]# mount /dev/VolGroup/lvoracle /oracle

 

[root@localhost ~]# mount /dev/VolGroup/lvoradata /oradata

 

 

[root@localhost ~]# mount /oradata

mount: can't find /oradata in /etc/fstab or /etc/mtab

 

[root@localhost ~]# vi /etc/fstab

 

#

# /etc/fstab

# Created by anaconda on Mon Apr 28 11:07:45 2014

#

# Accessible filesystems, by reference, are maintained under '/dev/disk'

# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info

#

/dev/mapper/VolGroup-lv_root /                       ext4    defaults        1 1

UUID=9203007c-b906-4c6c-81b6-577317f18659 /boot                   ext4    defaults        1 2

/dev/mapper/VolGroup-lv_swap swap                    swap    defaults        0 0

tmpfs                   /dev/shm                tmpfs   defaults        0 0

devpts                  /dev/pts                devpts  gid=5,mode=620  0 0

sysfs                   /sys                    sysfs   defaults        0 0

proc                    /proc                   proc    defaults        0 0

/dev/mapper/VolGroup-lvoracle /oracle           ext4    defaults        1 3

/dev/VolGroup/lvoradata  /oradata               ext4    defaults        1 4

 

[root@localhost ~]# init 6

 

[root@localhost ~]# df -h

Filesystem                      Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup-lv_root    6.8G  5.9G  609M  91% /

tmpfs                           498M   72K  498M   1% /dev/shm

/dev/sda1                       477M   55M  397M  13% /boot

/dev/mapper/VolGroup-lvoracle    12G  7.2G  3.5G  68% /oracle

/dev/mapper/VolGroup-lvoradata  3.9G  1.5G  2.2G  42% /oradata

 

 

 

 

 

 




Related posts

coded by nessus
分享:  DeliciousGReader鲜果豆瓣CSDN网摘
Trackback

only 1 comment untill now

  1. oneasy@banisters.fir” rel=”nofollow”>.…

    ñïàñèáî çà èíôó!…

Add your comment now

无觅相关文章插件