Hi all,
I'm having problems to create/resize an lv up to 1T (well I can't reach 300G),
my system is a CentOS 5.1 x86_64 on a Dell 2950 with 6x500G SATA (RAID5 to aprox. 2.5T)
[root@Mugello ~]# fdisk -l
Disk /dev/sda: 2497.7 GB, 2497791918080 bytes
255 heads, 63 sectors/track, 303672 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 36323 291657269+ 8e Linux LVM
[root@Mugello ~]# vgdisplay
--- Volume group ---
VG Name sys
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 26
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 4
Max PV 0
Cur PV 1
Act PV 1
VG Size 2,27 TB
PE Size 32,00 MB
Total PE 74436
Alloc PE / Size 512 / 16,00 GB
Free PE / Size 73924 / 2,26 TB
VG UUID yuxYGR-dLVP-DuXz-i4oP-14ep-aYWQ-xBp6f1
[root@Mugello ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy%
root sys -wi-ao 4,00G
swap sys -wi-ao 2,00G
usr sys -wi-ao 5,00G
var sys -wi-ao 5,00G
When I try to create a 1T lv it gives me this error:
[root@Mugello ~]# lvcreate -L1T -nstor sys
device-mapper: reload ioctl failed: Argumento inválido
Failed to activate new LV.
and on /var/log/messages I had this:
Dec 6 08:31:27 Mugello kernel: device-mapper: table: device 8:2 too small for target
Dec 6 08:31:27 Mugello kernel: device-mapper: table: 253:4: linear: dm-linear: Device lookup failed
Dec 6 08:31:27 Mugello kernel: device-mapper: ioctl: error adding target to table
the lv is created:
[root@Mugello ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy%
root sys -wi-ao 4,00G
stor sys -wi-d- 1,00T
swap sys -wi-ao 2,00G
usr sys -wi-ao 5,00G
var sys -wi-ao 5,00G
but is unusable:
[root@Mugello ~]# mkfs -t ext3 /dev/sys/stor
mke2fs 1.39 (29-May-2006)
Could not stat /dev/sys/stor --- Arquivo ou diretório não encontrado
The device apparently does not exist; did you specify it correctly?
[root@Mugello ~]# ls -la /dev/mapper/
total 0
drwxr-xr-x 2 root root 160 Dez 6 09:02 .
drwxr-xr-x 12 root root 4220 Dez 6 07:43 ..
crw------- 1 root root 10, 63 Dez 6 07:43 control
brw-rw---- 1 root disk 253, 0 Dez 6 07:43 sys-root
brw-rw---- 1 root disk 253, 4 Dez 6 09:02 sys-stor
brw-rw---- 1 root disk 253, 3 Dez 6 07:43 sys-swap
brw-rw---- 1 root disk 253, 1 Dez 6 07:43 sys-usr
brw-rw---- 1 root disk 253, 2 Dez 6 07:43 sys-var
[root@Mugello ~]# mkfs -t ext3 /dev/mapper/sys-stor
mke2fs 1.39 (29-May-2006)
mkfs.ext3: Device size reported to be zero. Invalid partition specified, or
partition table wasn't reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-read your partition table.
If I try with a small size (less than 300G) it works well:
[root@Mugello ~]# lvcreate -L100G -nstor sys
Logical volume "stor" created
[root@Mugello ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy%
root sys -wi-ao 4,00G
stor sys -wi-a- 100,00G
swap sys -wi-ao 2,00G
usr sys -wi-ao 5,00G
var sys -wi-ao 5,00G
What can I try to do to create an lv with 1T??
Thanks in advance,
Antonio.
--
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Antonio S. Martins Jr. - Support Analist | "Only The Shadow Knows |
| Universidade Estadual de Maringá - Brasil| what evil lurks in the |
| NPD - Núcleo de Processamento de Dados | Heart of Men!" |
| E-Mail: asmartins(a)uem.br / shadow(a)uem.br | !!! Linux User: 52392 !!! |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
--
Esta mensagem foi verificada pelo sistema de antiv�rus e
acredita-se estar livre de perigo.