Skip to contentSkip to conversation

Clarification

linux-lvm Jason A. Lixfeld 5 participants 6 messages Oct 5, 2001

lore
Share & tools
lore
#0 lore raw

I'm just looking for clarification:

ext2resize will actually resize ext3 aswell? With no extra flags? It will just know that the LVM is ext3 and not ext2?

#1 lore raw

Hi Jason:

Quoted 6 lines · Jason A. Lixfeld

I'm just looking for clarification:

ext2resize will actually resize ext3 aswell? With no extra flags? It will just know that the LVM is ext3 and not ext2?

I would say you better check it on ext2resize and ext3 man pages. By default I wouldn't expect ext2 tools to work with ext3 (anyway, you just can test it on a non-production environment).

Signature · 5 lines
SALUD,
Jes�s
***
[email protected]
***
#2 lore raw

[linux-lvm] consistent lvcreate core dump (rc4 - 2.4.10)

In reply to Jason A. Lixfeld

I'm new to LVM so apologies if this is a FAQ.

I just installed LVM-1.0.1-rc4 on a 486-based linux box running 2.4.10. It only has SCSI disks running via a 53c710 chip on the motherboard. It also has an adaptec 1540B scsi card installed but that only hosts a scsi CDROM.

The LVM kernel patch, module build and install went without a hitch. I have 5 2GB scsi disk each divided into 2 x 1GB partitions. I set the 8e partion flag and created the PVs without and problem. I then created a VG with 4 of the partitions (sda1/2 and sdb1/2). This went OK.

Finally when I came to create an LV I got a seg fault. Using the -v flag I found that it got up to the part where it was: "creating logical volume VGDA in kernel". Then it crashed.

The LV create command was:

lvcreate -V -L 1000M -n backup vg1

Could anybody tell me if I am doing something wrong? - or how to track down the problem?

The pvscan and vgscan utilties reported no problems and I tried restarting LVM, inactivating, reactivating the GV and even deleting the whole thing including the PVs and repeating the process - so it is completely reproduceable in my situation.

thanks

Tony

#3 lore raw

RE: [linux-lvm] consistent lvcreate core dump (rc4 - 2.4.10)

I had that problem aswell. I was using the stock compiler with RedHat and switched to egcs 1.1.2 and it worked fine.

Quoted 54 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Tony Cox
Sent: October 5, 2001 8:58 AM
To: [email protected]
Subject: [linux-lvm] consistent lvcreate core dump (rc4 - 2.4.10)

I'm new to LVM so apologies if this is a FAQ.

I just installed LVM-1.0.1-rc4 on a 486-based linux box running 2.4.10. It only has SCSI disks running via a 53c710 chip on the motherboard. It also has an adaptec 1540B scsi card installed but that only hosts a scsi CDROM.

The LVM kernel patch, module build and install went without a hitch. I have 5 2GB scsi disk each divided into 2 x 1GB partitions. I set the 8e partion flag and created the PVs without and problem. I then created a VG with 4 of the partitions (sda1/2 and sdb1/2). This went OK.

Finally when I came to create an LV I got a seg fault. Using the -v flag I found that it got up to the part where it was:
"creating logical volume VGDA in kernel". Then it crashed.

The LV create command was:

lvcreate -V -L 1000M -n backup vg1

Could anybody tell me if I am doing something wrong? - or how to track down the problem?

The pvscan and vgscan utilties reported no problems and I tried restarting LVM, inactivating, reactivating the GV and even deleting the whole thing including the PVs and repeating the process - so it is completely reproduceable in my situation.

thanks

Tony

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linu> x-lvm read the
LVM HOW-TO at
http://www.sistina.com/lvm/Pages/howto.html

#4 lore raw

Re: [linux-lvm] consistent lvcreate core dump (rc4 - 2.4.10)

In reply to Tony Cox
Quoted 21 lines · Tony Cox

I'm new to LVM so apologies if this is a FAQ.

I just installed LVM-1.0.1-rc4 on a 486-based linux box running 2.4.10. It only has SCSI disks running via a 53c710 chip on the motherboard. It also has an adaptec 1540B scsi card installed but that only hosts a scsi CDROM.

The LVM kernel patch, module build and install went without a hitch. I have 5 2GB scsi disk each divided into 2 x 1GB partitions. I set the 8e partion flag and created the PVs without and problem. I then created a VG with 4 of the partitions (sda1/2 and sdb1/2). This went OK.

Finally when I came to create an LV I got a seg fault. Using the -v flag I found that it got up to the part where it was: "creating logical volume VGDA in kernel". Then it crashed.

The LV create command was:

lvcreate -V -L 1000M -n backup vg1

Quoted 7 lines

Could anybody tell me if I am doing something wrong? - or how to track down the problem?

The pvscan and vgscan utilties reported no problems and I tried restarting LVM, inactivating, reactivating the GV and even deleting the whole thing including the PVs and repeating the process - so it is completely reproduceable in my situation.

My guess is you're using redhat 7.1 with the dodgy release of gcc. Try either building the tools without optimisation or upgrading your compiler.

- Joe

#5 lore raw
In reply to Jason A. Lixfeld
Quoted 4 lines · Jason A. Lixfeld

I'm just looking for clarification:

ext2resize will actually resize ext3 aswell? With no extra flags? It will just know that the LVM is ext3 and not ext2?

If it is unmounted, it will work fine. There is no difference between ext2 and ext3 for a (cleanly) unmounted filesystem (the journal is just a regular file). If you try to resize a filesystem that has a dirty journal (e.g. after a crash) it will refuse to do so and you need to run e2fsck.

Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert