OVH Community, your new community space.

Redimensionar disco


Ghaelito
26/07/2013, 01:06
Buenas, a ver, siempre he tenido un lió con el tema de los discos en linux y ya hablando de raid me resulta imposible del todo....

El problema es que tengo todo esto:

Filesystem Size Used Avail Use% Mounted on
rootfs 20G 1.6G 17G 9% /
devtmpfs 3.8G 196K 3.8G 1% /dev
tmpfs 3.8G 0 3.8G 0% /dev/shm
/dev/md1 20G 1.6G 17G 9% /
devtmpfs 3.8G 196K 3.8G 1% /dev
/dev/md2 905G 200M 859G 1% /home
/dev/md1 20G 1.6G 17G 9% /var/named/chroot/etc/named
/dev/md1 20G 1.6G 17G 9% /var/named/chroot/var/named
/dev/md1 20G 1.6G 17G 9% /var/named/chroot/etc/named.conf
/dev/md1 20G 1.6G 17G 9% /var/named/chroot/etc/named.rfc1912.zones
/dev/md1 20G 1.6G 17G 9% /var/named/chroot/etc/rndc.key
/dev/md1 20G 1.6G 17G 9% /var/named/chroot/usr/lib64/bind
/dev/md1 20G 1.6G 17G 9% /var/named/chroot/etc/named.iscdlv.key
/dev/md1 20G 1.6G 17G 9% /var/named/chroot/etc/named.root.key
Con lo que /var/www se me queda en 16.5Gb y en /home tengo 1Tb y lo necesito justo del revés, ese Tb en /var/www y los 20G en /home

¿Como hago esto?

Dejo también un fdisk por si fuera de ayuda:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00079cae

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20478976 fd Linux raid autodetect
/dev/sda2 2550 121536 955754496 fd Linux raid autodetect
/dev/sda3 121536 121601 523264 82 Linux swap / Solaris

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000ad0c3

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2550 20478976 fd Linux raid autodetect
/dev/sdb2 2550 121536 955754496 fd Linux raid autodetect
/dev/sdb3 121536 121601 523264 82 Linux swap / Solaris

Disk /dev/md2: 978.7 GB, 978692538368 bytes
2 heads, 4 sectors/track, 238938608 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk /dev/md1: 21.0 GB, 20970405888 bytes
2 heads, 4 sectors/track, 5119728 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
He probado con esto, pero no funciona:
[root@ksxxxxxx]# lvextend -rl +80%FREE /dev/md1
Path required for Logical Volume "md1"
Please provide a volume group name
Run `lvextend --help' for more information.
[root@ksxxxxxx]#
La distro es CentOS6, como siempre, gracias de antemano.

NOTA: Formatear no sería una opción factible...