resize RPS OVH

Linux rescue.ovh.net 2.6.31.5-xxxx-std-ipv4-32 #3 SMP Tue Nov 24 16:54:54 UTC 2009 i686
root@rescue : # wget ftp://ftp.ovh.net/made-in-ovh/rps/resize_iscsi.pl
— 2009-12-20 04:45:12— ftp://ftp.ovh.net/made-in-ovh/rps/resize_iscsi.pl
=> `resize_iscsi.pl’
Resolving ftp.ovh.net... 213.186.33.9
Connecting to ftp.ovh.net|213.186.33.9|:21... connected.
Logging in as anonymous ... Logged in !
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /made-in-ovh/rps ... done.
==> SIZE resize_iscsi.pl ... 4262
==> PASV ... done. ==> RETR resize_iscsi.pl ... done.
Length : 4262 (4.2K)

100%[=====================================================================================================================================================>] 4,262 —.-K/s in 0s

2009-12-20 04:45:12 (19.2 MB/s) - `resize_iscsi.pl’ saved [4262]

root@rescue : # perl resize_iscsi.pl
iSCSI disk found

=============================
Model : IET VIRTUAL-DISK (scsi)
Disk /dev/sda : 21.5GB
Sector size (logical/physical) : 512B/512B
Partition Table : msdos

Number Start End Size Type File system Flags
1 512B 5243MB 5243MB primary ext3 boot
2 5243MB 21.0GB 15.7GB primary ext3

=============================
disk_size 41943039 and last_use 40960000 found

Ready to repartition.

Are you ok ? (y/N)
y
We start now.

part_to_test not found (0)
No lost partition found

Last partition removed

Last partition recreated

Let’s resize fs now.

Found ext3 filesystem
Ready to resize .

Are you ok ? (y/N)
y
We start now.

Ext2/3/4 partition detected.

Checking ext2/3/4 filesystem :
e2fsck -f /dev/sda2

e2fsck : /lib/libblkid.so.1 : no version information available (required by e2fsck)
e2fsck : /lib/libuuid.so.1 : no version information available (required by e2fsck)
e2fsck 1.41.9 (22-Aug-2009)
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
/home : 1017/962880 files (1.8% non-contiguous), 77677/3840000 blocks
Doing resize2fs :
resize2fs -p /dev/sda2

resize2fs 1.41.9 (22-Aug-2009)
Resizing the filesystem on /dev/sda2 to 3962879 (4k) blocks.
Begin pass 1 (max = 3)
Extending the inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on /dev/sda2 is now 3962879 blocks long.

resize2fs succeeded.
root@rescue : # reboot

Envie de recevoir nos dernières nouvelles? Inscrivez-vous à notre newsletter