Skip to contentSkip to conversation

LVM on 2.2.17 (again)

linux-lvm John DeFranco 2 participants 4 messages Sep 25, 2000 – Sep 28, 2000

lore
Share & tools
lore
#0 lore raw

Hi,

I've checked the LVM email archives so I know there has been lots of discussions on how to get LVM to work on 2.2.17, but unfortunately I'm having problems just building the kernel. I started with Turbolinux Server 6.0.2 (which is 2.2.14) and then added the 2.2.15-2.2.17 patches. When I build I get:

lvm-snap.c:28: linux/iobuf.h: No such file or directory lvm-snap.c: In function `lvm_snapshot_COW':
lvm-snap.c:253: dereferencing pointer to incomplete type lvm-snap.c:257: warning: implicit declaration of function `brw_kiovec'
lvm-snap.c: In function `lvm_snapshot_alloc_iobuf_pages':
lvm-snap.c:308: warning: implicit declaration of function `expand_kiobuf'

Any ideas?

Thanks!

Signature · 4 lines
==========
John DeFranco          ([email protected])
Hewlett Packard
408-447-7543
#1 lore raw
Quoted 7 lines · John DeFranco

I've checked the LVM email archives so I know there has been lots of discussions on how to get LVM to work on 2.2.17, but unfortunately I'm having problems just building the kernel. I started with Turbolinux Server 6.0.2 (which is 2.2.14) and then added the 2.2.15-2.2.17 patches. When I build I get:

Quoted 8 lines

lvm-snap.c:28: linux/iobuf.h: No such file or directory lvm-snap.c: In function `lvm_snapshot_COW':
lvm-snap.c:253: dereferencing pointer to incomplete type lvm-snap.c:257: warning: implicit declaration of function `brw_kiovec'
lvm-snap.c: In function `lvm_snapshot_alloc_iobuf_pages':
lvm-snap.c:308: warning: implicit declaration of function `expand_kiobuf'

Are you using my 2.2 patches (which is a backport of 0.8final from 2.4)? In this case you need to also apply the RAWIO patches available at Stephen Tweedie's site ftp://ftp.linux.org.uk/pub/linux/sct/ Alternately, if you don't need/want LVM snapshots, you can delete lvm-snap.c, and delete the references in lvm.c to any "snap" functions, etc. There are about half a dozen places where this happens. If I get around to it, I will update my patch to simplify turning off lvm snapshots...

Cheers, Andreas

Signature · 3 lines
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
#2 lore raw

Thanks! That helped alot. One other question, I wanted to pvcreate a software RAID device (/dev/md0 in this case). This is a simple two disk mirror (since LVM does not do mirroring). It would not let me do this however. The FAQ seems to indicate that I can (at least that the way I am interpreting the last section:

I recommend to use dedicated hardware RAID subsystems or Multiple Devices to have the redundancy below the LVM. In this case you just don't care about Logical Volume data redundancy and you don't run into the dangerous situation that your data is not redundant by accident.
).

Does anyone know if this is possible and if so how to accomplish it?

Thanks!

Quoted 31 lines · Andreas Dilger
Quoted 7 lines · John DeFranco

I've checked the LVM email archives so I know there has been lots of discussions on how to get LVM to work on 2.2.17, but unfortunately I'm having problems just building the kernel. I started with Turbolinux Server 6.0.2 (which is 2.2.14) and then added the 2.2.15-2.2.17 patches. When I build I get:

Quoted 8 lines

lvm-snap.c:28: linux/iobuf.h: No such file or directory lvm-snap.c: In function `lvm_snapshot_COW':
lvm-snap.c:253: dereferencing pointer to incomplete type lvm-snap.c:257: warning: implicit declaration of function `brw_kiovec'
lvm-snap.c: In function `lvm_snapshot_alloc_iobuf_pages':
lvm-snap.c:308: warning: implicit declaration of function `expand_kiobuf'

Are you using my 2.2 patches (which is a backport of 0.8final from 2.4)? In this case you need to also apply the RAWIO patches available at Stephen Tweedie's site ftp://ftp.linux.org.uk/pub/linux/sct/ Alternately, if you don't need/want LVM snapshots, you can delete lvm-snap.c, and delete the references in lvm.c to any "snap" functions, etc. There are about half a dozen places where this happens. If I get around to it, I will update my patch to simplify turning off lvm snapshots...

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

Signature · 3 lines
==========
Cheers
   -jdf
#3 lore raw

Hi everyone,

Thanks to everyone that responded. Peter Green solved my problem by pointing me to the SuSE lvm tools (at http://rpmfile.net/linux/RPM/LByName.html).
Installed those and this is working ok.

Quoted 60 lines · John DeFranco

Thanks! That helped alot. One other question, I wanted to pvcreate a software RAID device (/dev/md0 in this case). This is a simple two disk mirror (since LVM does not do mirroring). It would not let me do this however. The FAQ seems to indicate that I can (at least that the way I am interpreting the last section:

I recommend to use dedicated hardware RAID subsystems or Multiple Devices to have the redundancy below the LVM. In this case you just don't care about Logical Volume data redundancy and you don't run into the dangerous situation that your data is not redundant by accident.
).

Does anyone know if this is possible and if so how to accomplish it?

Thanks!

Quoted 26 lines · Andreas Dilger
Quoted 7 lines · John DeFranco

I've checked the LVM email archives so I know there has been lots of discussions on how to get LVM to work on 2.2.17, but unfortunately I'm having problems just building the kernel. I started with Turbolinux Server 6.0.2 (which is 2.2.14) and then added the 2.2.15-2.2.17 patches. When I build I get:

Quoted 8 lines

lvm-snap.c:28: linux/iobuf.h: No such file or directory lvm-snap.c: In function `lvm_snapshot_COW':
lvm-snap.c:253: dereferencing pointer to incomplete type lvm-snap.c:257: warning: implicit declaration of function `brw_kiovec'
lvm-snap.c: In function `lvm_snapshot_alloc_iobuf_pages':
lvm-snap.c:308: warning: implicit declaration of function `expand_kiobuf'

Are you using my 2.2 patches (which is a backport of 0.8final from 2.4)? In this case you need to also apply the RAWIO patches available at Stephen Tweedie's site ftp://ftp.linux.org.uk/pub/linux/sct/ Alternately, if you don't need/want LVM snapshots, you can delete lvm-snap.c, and delete the references in lvm.c to any "snap" functions, etc. There are about half a dozen places where this happens. If I get around to it, I will update my patch to simplify turning off lvm snapshots...

Quoted 5 lines

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

--
==========
Cheers
-jdf

Signature · 3 lines
==========
Cheers
   -jdf