New disk installed and mounted LVM not working

Les hlhowell at pacbell.net
Sun Jan 14 18:08:35 UTC 2007


On Sun, 2007-01-14 at 11:07 +0100, Ambrogio wrote:
> Il giorno dom, 14/01/2007 alle 01.40 -0800, Les ha scritto:
> > [root at localhost ~]# pvscan
> >   PV /dev/hdb1   VG second       lvm2 [3.83 GB / 3.83 GB free]
> >   PV /dev/hdb2   VG second       lvm2 [275.62 GB / 275.62 GB free]
> >   PV /dev/hda2   VG VolGroup00   lvm2 [14.19 GB / 32.00 MB free]
> >   Total: 3 [293.64 GB] / in use: 3 [293.64 GB] / in no VG: 0 [0   ]
> > [root at localhost ~]# export E2FSADM_RESIZE_CMD=ext2resize
> > [root at localhost ~]# e2fsadm /dev/ops/batch  -L+500M
> > -bash: e2fsadm: command not found
> ok, now what are you doing?
> The extension of /dev/ops/batch (assuming it's a filesystems) is not
> right.
> 
> Where (in which lv) is the /dev/ops/batch that are you extending?
> 
> please provide the output of
> pvscan (already done)
> vgdisplay
> lvdisplay
> mount
> 
> Bye
>  Ambrogio
That command was a direct implementation of the stream in the document
before I realized that ops was one of his volumes.

	Once I realized that i did pvcreate to make a second volume called
second.

Now vgdisplay shows:
# vgdisplay
  --- Volume group ---
  VG Name               second
  System ID             
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               279.45 GB
  PE Size               4.00 MB
  Total PE              71540
  Alloc PE / Size       0 / 0   
  Free  PE / Size       71540 / 279.45 GB
  VG UUID               nrNgih-Xvhk-yDRD-v1DI-ozcB-06io-AYDwo1
   
  --- Volume group ---
  VG Name               VolGroup00
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               14.19 GB
  PE Size               32.00 MB
  Total PE              454
  Alloc PE / Size       453 / 14.16 GB
  Free  PE / Size       1 / 32.00 MB
  VG UUID               uKlnk8-alIg-znH2-EO0x-L6aL-82uN-8V8Xi1
   
#  lvdisplay
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                JwcVYB-H7fp-Iox2-V1vT-Ub2I-8TWO-jWhTY7
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                13.66 GB
  Current LE             437
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                NnWxHH-RICe-9pQg-9Wou-COEv-50ci-t0dOZK
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                512.00 MB
  Current LE             16
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:1

# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

# cat /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults
1 1
LABEL=/boot             /boot                   ext3    defaults
1 2
devpts                  /dev/pts                devpts  gid=5,mode=620
0 0
tmpfs                   /dev/shm                tmpfs   defaults
0 0
proc                    /proc                   proc    defaults
0 0
sysfs                   /sys                    sysfs   defaults
0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults
0 0







More information about the fedora-list mailing list