All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Linux 2.4.0-test12-pre7 LVM .9 vs .8final
@ 2000-12-08 16:47 ` Ricardo Muggli
  0 siblings, 0 replies; 8+ messages in thread
From: Ricardo Muggli @ 2000-12-08 16:47 UTC (permalink / raw)
  To: linux-lvm, linux-kernel

I have noticed that Linux 2.4.0-test12-pre7 still comes with .8final. Is
there a plan to have .9 incorporated at some future time into the stock
2.4 kernels? Will this happen before 2.4 comes out?

Also is there a transition path between .8final and .9? (short of save
everything to tape and restore?)


-- 
Ricardo Muggli (ricardo.muggli@mnsu.edu)
Systems Manager
Information and Technology Services
Minnesota State University, Mankato
101 Morris Hall
Mankato, MN  56001
Phone: (507) 389-1164 Fax: (507) 389-6115

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Linux 2.4.0-test12-pre7 LVM .9 vs .8final
@ 2000-12-08 16:47 ` Ricardo Muggli
  0 siblings, 0 replies; 8+ messages in thread
From: Ricardo Muggli @ 2000-12-08 16:47 UTC (permalink / raw)
  To: linux-lvm, linux-kernel

I have noticed that Linux 2.4.0-test12-pre7 still comes with .8final. Is
there a plan to have .9 incorporated at some future time into the stock
2.4 kernels? Will this happen before 2.4 comes out?

Also is there a transition path between .8final and .9? (short of save
everything to tape and restore?)


-- 
Ricardo Muggli (ricardo.muggli@mnsu.edu)
Systems Manager
Information and Technology Services
Minnesota State University, Mankato
101 Morris Hall
Mankato, MN  56001
Phone: (507) 389-1164 Fax: (507) 389-6115

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [linux-lvm] Linux 2.4.0-test12-pre7 LVM .9 vs .8final
  2000-12-08 16:47 ` Ricardo Muggli
  (?)
@ 2000-12-11  6:44 ` Ulf Bartelt
  2000-12-11 14:32   ` lewis
  2000-12-12  7:48   ` Luca Berra
  -1 siblings, 2 replies; 8+ messages in thread
From: Ulf Bartelt @ 2000-12-11  6:44 UTC (permalink / raw)
  To: linux-lvm

Ricardo Muggli wrote:
> 
> I have noticed that Linux 2.4.0-test12-pre7 still comes with .8final. Is
> there a plan to have .9 incorporated at some future time into the stock
> 2.4 kernels? Will this happen before 2.4 comes out?
> 
> Also is there a transition path between .8final and .9? (short of save
> everything to tape and restore?)

I was wondering �bout the same question yesterday...

A set of lvm tools for multiple versions of the io protocol could help a
lot...

Sure this can be faked using links, wrappers etc...

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [linux-lvm] Linux 2.4.0-test12-pre7 LVM .9 vs .8final
  2000-12-11  6:44 ` [linux-lvm] " Ulf Bartelt
@ 2000-12-11 14:32   ` lewis
  2000-12-12  9:06     ` Ulf Bartelt
  2000-12-12  7:48   ` Luca Berra
  1 sibling, 1 reply; 8+ messages in thread
From: lewis @ 2000-12-11 14:32 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1903 bytes --]

On Mon, Dec 11, 2000 at 07:44:32AM +0100, Ulf Bartelt wrote:
> Ricardo Muggli wrote:
> > 
> > I have noticed that Linux 2.4.0-test12-pre7 still comes with .8final. Is
> > there a plan to have .9 incorporated at some future time into the stock
> > 2.4 kernels? Will this happen before 2.4 comes out?
> > 
> > Also is there a transition path between .8final and .9? (short of save
> > everything to tape and restore?)
> 
> I was wondering ´bout the same question yesterday...
> 
> A set of lvm tools for multiple versions of the io protocol could help a
> lot...
> 
> Sure this can be faked using links, wrappers etc...

I dunno if this is what you guys are asking for or not, but...as I've been
testing LVM-0.8.1. and LVM-0.9, I've used the same VG and LV.  For the
transition, all I need to do is do a 'vgchange -ay' to reactivate the volume
group using the other version of LVM.  I haven't done anything too complicated
with this, but for my very basic testing, this has worked fine.  So basically
the transition path (If I am correct) between 0.8final and 0.9 is:

1) patch a kernel with the 0.9 patches
2) compile lvm-0.9
3) install the new kernel and lvm-0.9
4) run lilo
5) reboot

Of course, if you are using LVM as your root filesystem, this is a bit
trickier I guess...you probably have to make a lvm-0.9 bootdisk and use that
to activate the VG...

I am definitely not an expert on this though, so take it with a grain of
salt...

Can anyone else comment on this?

Regards,
-- 
AJ Lewis
Sistina Software Inc.                  Voice:  612-379-3951
1313 5th St SE, Suite 111              Fax:    612-379-3952
Minneapolis, MN 55414                  E-Mail: lewis@sistina.com
Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648

Over and over I find being redundant is key to success
in the art of redundancy - Jay Armstrong

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [linux-lvm] Linux 2.4.0-test12-pre7 LVM .9 vs .8final
  2000-12-11  6:44 ` [linux-lvm] " Ulf Bartelt
  2000-12-11 14:32   ` lewis
@ 2000-12-12  7:48   ` Luca Berra
  2000-12-12 23:07     ` lewis
  1 sibling, 1 reply; 8+ messages in thread
From: Luca Berra @ 2000-12-12  7:48 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

On Mon, Dec 11, 2000 at 07:44:32AM +0100, Ulf Bartelt wrote:
> A set of lvm tools for multiple versions of the io protocol could help a
> lot...
> 
> Sure this can be faked using links, wrappers etc...

i am using this piece of junk for testing and switching back btw 0.8 and 0.9

L.

-- 
Luca Berra -- bluca@comedia.it
    Communication Media & Services S.r.l.

[-- Attachment #2: lvm_wrapper.c --]
[-- Type: text/plain, Size: 1589 bytes --]

/*
A wrapper for Linux LVM user space tools
No Copyright 2000 Luca Berra <bluca@vodka.it>

This program is free software: you can do anything you want
with it, I don't give a damn.

By using this piece of crap you agree that I (Luca Berra)
cannot be held responsible for any damage that it may cause.

To build: cc -o lvm_wrapper lwm_wrapper.c /usr/lib/liblvm.a
To use: move all lvm tools in /sbin/lvm/<iop>, where iop is the iop
	version supported by the tools (eg: 6 for lvm 0.8, 10 for lvm 0.9)
	install lvm_wrapper in /sbin.
	create links to lvm_wrapper for any program in /sbin/lvm/<iop>
	(for i in /sbin/lvm/*/*;do ln -s lvm_wrapper /sbin/${i##*/};done)

I suppose that if the tools are using a shared library you have changed the
shared library name to something including a version number.
else add a putenv("LD_LIBRARY_PATH=....") or putenv("LD_PRELOAD=....")
before the execv.

*/

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <limits.h>

#define LVM_CMD_PREFIX "/sbin/lvm"
struct stat buf;
char prog[PATH_MAX];
int opt_d = 0;

int
main(int argc, char **argv)
{
	int ret = lvm_get_iop_version();
	char *cmd = strrchr(argv[0], '/');
	if (cmd == NULL) {
	    cmd = argv[0];
	} else {
	    cmd++;
	}

	if (ret < 0) {
		fprintf(stderr, "%s -- LVM driver/module not loaded?\n\n", cmd);
		exit(-1);
	}
        
	snprintf(prog, PATH_MAX, "%s/%d/%s", LVM_CMD_PREFIX, ret, cmd);

	if (stat(prog, &buf) < 0) {
		fprintf(stderr, "%s -- invalid i/o protocol version %d\n\n", cmd, ret);
		exit(-1);
	}

	execv(prog,argv);
}

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [linux-lvm] Linux 2.4.0-test12-pre7 LVM .9 vs .8final
  2000-12-11 14:32   ` lewis
@ 2000-12-12  9:06     ` Ulf Bartelt
  0 siblings, 0 replies; 8+ messages in thread
From: Ulf Bartelt @ 2000-12-12  9:06 UTC (permalink / raw)
  To: linux-lvm

lewis@sistina.com wrote:
> Of course, if you are using LVM as your root filesystem, this is a bit
> trickier I guess...you probably have to make a lvm-0.9 bootdisk and use that
> to activate the VG...

My systems have _n_o_ non-lv filesystems.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [linux-lvm] Linux 2.4.0-test12-pre7 LVM .9 vs .8final
  2000-12-12  7:48   ` Luca Berra
@ 2000-12-12 23:07     ` lewis
  2000-12-13  7:36       ` Luca Berra
  0 siblings, 1 reply; 8+ messages in thread
From: lewis @ 2000-12-12 23:07 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]

On Tue, Dec 12, 2000 at 08:48:07AM +0100, Luca Berra wrote:
> On Mon, Dec 11, 2000 at 07:44:32AM +0100, Ulf Bartelt wrote:
> > A set of lvm tools for multiple versions of the io protocol could help a
> > lot...
> > 
> > Sure this can be faked using links, wrappers etc...
> 
> i am using this piece of junk for testing and switching back btw 0.8 and 0.9

As far as I can tell though, this won't help people who are booting off of LVM
to transition to 0.9  We need some sort of boot disk image or something to
activate the volume group under the 0.9 code.

-- 
AJ Lewis
Sistina Software Inc.                  Voice:  612-379-3951
1313 5th St SE, Suite 111              Fax:    612-379-3952
Minneapolis, MN 55414                  E-Mail: lewis@sistina.com
Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648

Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. - Rich Cook

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [linux-lvm] Linux 2.4.0-test12-pre7 LVM .9 vs .8final
  2000-12-12 23:07     ` lewis
@ 2000-12-13  7:36       ` Luca Berra
  0 siblings, 0 replies; 8+ messages in thread
From: Luca Berra @ 2000-12-13  7:36 UTC (permalink / raw)
  To: linux-lvm

On Tue, Dec 12, 2000 at 05:07:20PM -0600, lewis@sistina.com wrote:
> On Tue, Dec 12, 2000 at 08:48:07AM +0100, Luca Berra wrote:
> > On Mon, Dec 11, 2000 at 07:44:32AM +0100, Ulf Bartelt wrote:
> > > A set of lvm tools for multiple versions of the io protocol could help a
> > > lot...
> > > 
> > > Sure this can be faked using links, wrappers etc...
> > 
> > i am using this piece of junk for testing and switching back btw 0.8 and 0.9
> 
> As far as I can tell though, this won't help people who are booting off of LVM
> to transition to 0.9  We need some sort of boot disk image or something to
> activate the volume group under the 0.9 code.

I don't grok the problem, (i have root lvm on my main system)
/dev/vg01/lvol1         253871     49152    191612  20% /

since the only known way to boot this is by having an initrd
i just put lvm 0.9 tools in the initrd an rebooted

my linuxrc looks like:
#!/bin/sh -x
mount -t proc /proc /proc
echo "" > /proc/sys/kernel/modprobe
insmod -k /lib/modules/*/kernel/drivers/md/lvm-mod.o
insmod -k /lib/modules/*/kernel/drivers/md/md.o
insmod -k /lib/modules/*/kernel/drivers/md/raid1.o
insmod -k /lib/modules/*/kernel/drivers/md/xor.o
insmod -k /lib/modules/*/kernel/drivers/md/raid5.o
insmod -k /lib/modules/*/kernel/drivers/scsi/scsi_mod.o
insmod -k /lib/modules/*/kernel/drivers/scsi/aic7xxx.o aic7xxx='verbose'
insmod -k /lib/modules/*/kernel/drivers/scsi/sd_mod.o
insmod -k /lib/modules/*/kernel/drivers/block/floppy.o
insmod -k /lib/modules/*/kernel/fs/reiserfs/reiserfs.o
raidstart -a
ln -s md/0 /dev/md0
ln -s md/1 /dev/md1
vgscan -v
vgchange -a y
umount /proc


-- 
Luca Berra -- bluca@comedia.it
    Communication Media & Services S.r.l.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-12-13  7:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-08 16:47 [linux-lvm] Linux 2.4.0-test12-pre7 LVM .9 vs .8final Ricardo Muggli
2000-12-08 16:47 ` Ricardo Muggli
2000-12-11  6:44 ` [linux-lvm] " Ulf Bartelt
2000-12-11 14:32   ` lewis
2000-12-12  9:06     ` Ulf Bartelt
2000-12-12  7:48   ` Luca Berra
2000-12-12 23:07     ` lewis
2000-12-13  7:36       ` Luca Berra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.