[Eisfair] Eisfair2 - Festplatte erweitern

Andreas Lehmler wuddy at nexgo.de
Di Mai 1 10:52:13 CEST 2012


Am 01.05.2012 10:41, schrieb Andreas Lehmler:
> Available logical volumes
>
> No. LV VG Attr VSize
> ================================================================================
>
> 1 data vg -wi-ao 4.97g
>
> Please choose a volume which you want to resize (1-1, 0=Exit)? 1
> Do you want to expand the logical volume? (y/n) [no]? y
>
> Please enter the size you want to expand the logical volume in megabyte
> (e.g. 100) (1-999999, 0=Exit)? 2000
> Extending logical volume data to 6.92 GiB
> Insufficient free space: 500 extents needed, but only 0 available
>
> --> Erweitern von logischen Volumes Daten zu 6,92 GiB
> Zu wenig freier Speicherplatz: 500 Blöcke nötig, aber nur 0 zur Verfügung
>
> aber Dort leigen 30 GB zu Verfügung ????

You have to check and resize the filesystem manually!
You can do this by running:
e2fsck -f /dev/vg/data
resize2fs /dev/vg/data

--> Ok

root at samba:~# e2fsck -f /dev/vg/data
e2fsck 1.40.8 (13-Mar-2008)
/dev/vg/data is mounted.

WARNING!!!  Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? yes

/dev/vg/data: recovering journal
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/vg/data: 1330/325760 files (12.9% non-contiguous), 486962/1302528 
blocks
root at samba:~# resize2fs /dev/vg/data
resize2fs 1.40.8 (13-Mar-2008)
The filesystem is already 1302528 blocks long.  Nothing to do!

Wenn ich dann aber wieder ...


List logical volumes

LV                             VG                              Attr 
   VSize
================================================================================
data                           vg                              -wi-ao 
   4.97g


Wenn ch dann aber wieder die Grösse des LVM anzeigen lasse, hat sich nix 
geändert :-(


Mehr Informationen über die Mailingliste Eisfair