[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] About fstab and fsck




You said you increased the size of a LV, not added a new LV. If you
added a new LV and created a filesystem on it you'd want to add it to
fstab, but if you're growing an existing LV and filesystem you
wouldn't need to change anything - the filesystem you grew would
already be listed in fstab. You did grow the filesystem too, right?
Why do you think you need to reboot?

-------------->

A new disk was added /dev/sdb , to grow existing LV on /dev/sda. So yes, no need to change anything in fstab


[root server ~]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               VolGroup00
  PV Size               698.54 GB / not usable 4.40 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              22353
  Free PE               0
  Allocated PE          22353
  PV UUID               L6igzx-qX3V-TEpR-0A6b-DXT9-eIf9-6Kl65Q

  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               VolGroup00
  PV Size               698.64 GB / not usable 10.34 MB
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              22356
  Free PE               1556
  Allocated PE          20800
  PV UUID               7tN9mF-ZUGA-Fsdx-SU30-OHBL-gcVf-IYiDDK

[root server ~]#



[root server ~]# cat /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
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/VolGroup00/LogVol01 swap                    swap    defaults        0 0
[root server ~]#



[root server ~]# fdisk -l

Disk /dev/sda: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       91201   732467610   8e  Linux LVM

Disk /dev/sdb: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       91201   732572001   83  Linux
[root server ~]#

( strange though ,  ID is still showing 83 for /dev/sdb1 , even when i used 8e , while formatting /dev/sdb, ) ,  i selected 83 for t during fdisk for /dev/sdb

current status
------------------------
[root server ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      1.3T  426G  812G  35% /
/dev/sda1              99M   29M   65M  31% /boot
tmpfs                 3.9G     0  3.9G   0% /dev/shm
[root server ~]#



old status
---------------------

[root server ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      730  670G  60G  35% /
/dev/sda1              99M   29M   65M  31% /boot
tmpfs                 3.9G     0  3.9G   0% /dev/shm
[root server ~]#




why reboot? - > I do not intend to do so, just wanted to know.


I agree with chris (using not too large disk) ,  we do use only 250G disks ( max size) for most of our servers ( except some CDP servers),  but in this case someone else wanted little help,  and was bent on using large disk, I did caution him though


Thanks

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]