linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Help on LVM/SW-RAID build problems
@ 2001-11-10 16:42 BOIK MOON
  2001-11-10 17:13 ` svetljo
  0 siblings, 1 reply; 4+ messages in thread
From: BOIK MOON @ 2001-11-10 16:42 UTC (permalink / raw)
  To: linux-lvm



Hello,

I am totally in trouble after I changed the partition
type to 0x8e. On SUSE7.2 I am trying to configure
LVM on SW-RAID1 with two IDEs. 

I did not have any problem to configure md0, md1, md2
and then create volume group and logical volume using
the attached "raidtab" in the end.

These problems are come after I changed the partition
type to 0x8e. So I deleted all of patitions from two
IDEs and re-partition them. I still have the same
problems as follow;

1) fdisk error

Disk /dev/hdb: 255 heads, 63 sectors, 2434 cylinders
Units = cylinders of 16065 * 512 bytes
 
   Device Boot    Start       End    Blocks   Id 
System
/dev/hdb1             1        64    514048+  8e 
Linux LVM
/dev/hdb2            65       702   5124735   8e 
Linux LVM
/dev/hdb3           703      1340   5124735   8e 
Linux LVM
 
Command (m for help): w
The partition table has been altered!
 
Calling ioctl() to re-read partition table.
Re-read table failed with error 16: Device or resource
busy.


2) No such file error
 
root@bo:~ > raidstop --all
cannot determine md version: No such file or directory
 
kingate@bo:~ > /sbin/mkraid
cannot determine md version: No such file or directory
 
kingate@bo:~ > /sbin/mkraid --really-force /dev/md1
cannot determine md version: No such file or directory

3) Partiton type

 Is it OK to use the partition type "0x8e" for
LVM/SW-RAID?  How about "0xfd"?

Thanks in advance,

Bo

-----------------raidtab------------
raiddev /dev/md0
        raid-level 0
        nr-raid-disks 2
        nr-spare-disks 0
        chunk-size 4
        persistent-superblock 1
        device     /dev/hdb1
        raid-disk 0
        device     /dev/hdc1
        raid-disk 1
 
raiddev /dev/md1
        raid-level 1
        nr-raid-disks 2
        nr-spare-disks 0
        chunk-size 4
        persistent-superblock 1
        device     /dev/hdb2
        raid-disk 0
        device     /dev/hdc2
        raid-disk 1

raiddev /dev/md2
        raid-level 1
        nr-raid-disks 2
        nr-spare-disks 0
        chunk-size 4
        persistent-superblock 1
        device     /dev/hdb3
        raid-disk 0
        device     /dev/hdc3
        raid-disk 1

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

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

* Re: [linux-lvm] Help on LVM/SW-RAID build problems
  2001-11-10 16:42 [linux-lvm] Help on LVM/SW-RAID build problems BOIK MOON
@ 2001-11-10 17:13 ` svetljo
  2001-11-12 22:29   ` BOIK MOON
  0 siblings, 1 reply; 4+ messages in thread
From: svetljo @ 2001-11-10 17:13 UTC (permalink / raw)
  To: linux-lvm

Hi
you shouldn't change the softRAID partition id to lvm
you had to create the lvm over the RAID

>1) fdisk error
>
>Disk /dev/hdb: 255 heads, 63 sectors, 2434 cylinders
>Units = cylinders of 16065 * 512 bytes
> 
>   Device Boot    Start       End    Blocks   Id 
>System
>/dev/hdb1             1        64    514048+  8e 
>Linux LVM
>/dev/hdb2            65       702   5124735   8e 
>Linux LVM
>/dev/hdb3           703      1340   5124735   8e 
>Linux LVM
> 
>
you have destroyed the RAID

>
>Command (m for help): w
>The partition table has been altered!
>
>
>2) No such file error
> 
>
you have no the raid devices hdb[1-3]

>
>root@bo:~ > raidstop --all
>cannot determine md version: No such file or directory
> 
>kingate@bo:~ > /sbin/mkraid
>cannot determine md version: No such file or directory
> 
>kingate@bo:~ > /sbin/mkraid --really-force /dev/md1
>cannot determine md version: No such file or directory
>
>3) Partiton type
>
> Is it OK to use the partition type "0x8e" for
>LVM/SW-RAID?  How about "0xfd"?
>
you can not create LVM/SW-RAID
you can make LVM over SW-RAID or SW-RAID over LVM

>
>Thanks in advance,
>
>Bo
>
>-----------------raidtab------------
>raiddev /dev/md0
>        raid-level 0
>        nr-raid-disks 2
>        nr-spare-disks 0
>        chunk-size 4
>        persistent-superblock 1
>        device     /dev/hdb1
>        raid-disk 0
>        device     /dev/hdc1
>        raid-disk 1
> 
>raiddev /dev/md1
>        raid-level 1
>        nr-raid-disks 2
>        nr-spare-disks 0
>        chunk-size 4
>        persistent-superblock 1
>        device     /dev/hdb2
>        raid-disk 0
>        device     /dev/hdc2
>        raid-disk 1
>
>raiddev /dev/md2
>        raid-level 1
>        nr-raid-disks 2
>        nr-spare-disks 0
>        chunk-size 4
>        persistent-superblock 1
>        device     /dev/hdb3
>        raid-disk 0
>        device     /dev/hdc3
>        raid-disk 1
>
that is OK
but /dev/hda[1-3] and /dev/hdb[1-3] should be SW-RAID ( partition id)

and then
pvcreate  /dev/md0 /dev/md1 /dev/md2
vgcreate
.........

good luck

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

* Re: [linux-lvm] Help on LVM/SW-RAID build problems
  2001-11-10 17:13 ` svetljo
@ 2001-11-12 22:29   ` BOIK MOON
  2001-11-13  7:09     ` Keith Hopkins
  0 siblings, 1 reply; 4+ messages in thread
From: BOIK MOON @ 2001-11-12 22:29 UTC (permalink / raw)
  To: linux-lvm

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


 Hi,
> >Is it OK to use the partition type "0x8e" for
>>LVM/SW-RAID? How about "0xfd"?
>>
>you can not create LVM/SW-RAID
>you can make LVM over SW-RAID or SW-RAID over LVM
Why am I getting an error on the partition when I use 0x8e as type?
Yes, I did not have any error when I used 0xfd as partition type.
To make SW-RAID over LVM, Should I create the partition using 0x8e(LVM) type?
Thanks for your kind answer
Bo
  svetljo <galia@st-peter.stw.uni-erlangen.de> wrote: Hi
you shouldn't change the softRAID partition id to lvm
you had to create the lvm over the RAID

>1) fdisk error
>
>Disk /dev/hdb: 255 heads, 63 sectors, 2434 cylinders
>Units = cylinders of 16065 * 512 bytes
> 
> Device Boot Start End Blocks Id 
>System
>/dev/hdb1 1 64 514048+ 8e 
>Linux LVM
>/dev/hdb2 65 702 5124735 8e 
>Linux LVM
>/dev/hdb3 703 1340 5124735 8e 
>Linux LVM
> 
>
you have destroyed the RAID

>
>Command (m for help): w
>The partition table has been altered!
>
>
>2) No such file error
> 
>
you have no the raid devices hdb[1-3]

>
>root@bo:~ > raidstop --all
>cannot determine md version: No such file or directory
> 
>kingate@bo:~ > /sbin/mkraid
>cannot determine md version: No such file or directory
> 
>kingate@bo:~ > /sbin/mkraid --really-force /dev/md1
>cannot determine md version: No such file or directory
>
>3) Partiton type
>
> Is it OK to use the partition type "0x8e" for
>LVM/SW-RAID? How about "0xfd"?
>
you can not create LVM/SW-RAID
you can make LVM over SW-RAID or SW-RAID over LVM

>
>Thanks in advance,
>
>Bo
>
>-----------------raidtab------------
>raiddev /dev/md0
> raid-level 0
> nr-raid-disks 2
> nr-spare-disks 0
> chunk-size 4
> persistent-superblock 1
> device /dev/hdb1
> raid-disk 0
> device /dev/hdc1
> raid-disk 1
> 
>raiddev /dev/md1
> raid-level 1
> nr-raid-disks 2
> nr-spare-disks 0
> chunk-size 4
> persistent-superblock 1
> device /dev/hdb2
> raid-disk 0
> device /dev/hdc2
> raid-disk 1
>
>raiddev /dev/md2
> raid-level 1
> nr-raid-disks 2
> nr-spare-disks 0
> chunk-size 4
> persistent-superblock 1
> device /dev/hdb3
> raid-disk 0
> device /dev/hdc3
> raid-disk 1
>
that is OK
but /dev/hda[1-3] and /dev/hdb[1-3] should be SW-RAID ( partition id)

and then
pvcreate /dev/md0 /dev/md1 /dev/md2
vgcreate
.........

good luck



_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html





---------------------------------
Do You Yahoo!?
Find the one for you at Yahoo! Personals.

[-- Attachment #2: Type: text/html, Size: 3410 bytes --]

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

* Re: [linux-lvm] Help on LVM/SW-RAID build problems
  2001-11-12 22:29   ` BOIK MOON
@ 2001-11-13  7:09     ` Keith Hopkins
  0 siblings, 0 replies; 4+ messages in thread
From: Keith Hopkins @ 2001-11-13  7:09 UTC (permalink / raw)
  To: linux-lvm

BOIK MOON wrote:

>  Hi,
> 
>  > >Is it OK to use the partition type "0x8e" for
>  >>LVM/SW-RAID? How about "0xfd"?
>  >>
>  >you can not create LVM/SW-RAID
>  >you can make LVM over SW-RAID or SW-RAID over LVM
> 
> Why am I getting an error on the partition when I use 0x8e as type?


Because you can not RAID and LVM on the same device at the same time.  You CAN use your physical partitions (/dev/hd*# or sd*#) to create a RAID device and THEN use create LVM on top of the RAID device (/dev/md#).


> 
> Yes, I did not have any error when I used 0xfd as partition type.
> 
> To make SW-RAID over LVM, Should I create the partition using 0x8e(LVM) 
> type?


If you mean the same partition you used when creating the RAID, then NO.


> 


as for the "cannot determine md version: No such file or directory"

You don't have "md" (RAID) support in the kernel.  Configure your kernel for md devices (or, if it is not a boot device, make them as modules)

after you do your mkraid, then pvcreate the /dev/md# and you can use it for lvm (no need to set any partition type on md0).

Lost in Tokyo,
   Keith


> Thanks for your kind answer
> 
> Bo
> 
>   svetljo <galia@st-peter.stw.uni-erlangen.de> wrote:
> 
>     Hi
>     you shouldn't change the softRAID partition id to lvm
>     you had to create the lvm over the RAID
> 
>      >1) fdisk error
>      >
>      >Disk /dev/hdb: 255 heads, 63 sectors, 2434 cylinders
>      >Units = cylinders of 16065 * 512 bytes
>      >
>      > Device Boot Start End Blocks Id
>      >System
>      >/dev/hdb1 1 64 514048+ 8e
>      >Linux LVM
>      >/dev/hdb2 65 702 5124735 8e
>      >Linux LVM
>      >/dev/hdb3 703 1340 5124735 8e
>      >Linux LVM
>      >
>      >
>     you have destroyed the RAID
> 
>      >
>      >Command (m for help): w
>      >The partition table has been altered!
>      >
>      >
>      >2) No such file error
>      >
>      >
>     you have no the raid devices hdb[1-3]
> 
>      >
>      >root@bo:~ > raidstop --all
>      >cannot determine md version: No such file or directory
>      >
>      >kingate@bo:~ > /sbin/mkraid
>      >cannot determine md version: No such file or directory
>      >
>      >kingate@bo:~ > /sbin/mkraid --really-force /dev/md1
>      >cannot determine md version: No such file or directory
>      >
>      >3) Partiton type
>      >
>      > Is it OK to use the partition type "0x8e" for
>      >LVM/SW-RAID? How about "0xfd"?
>      >
>     you can not create LVM/SW-RAID
>     you can make LVM over SW-RAID or SW-RAID over LVM
> 
>      >
>      >Thanks in advance,
>      >
>      >Bo
>      >
>      >-----------------raidtab------------
>      >raiddev /dev/md0
>      > raid-level 0
>      > nr-raid-disks 2
>      > nr-spare-disks 0
>      > chunk-size 4
>      > persistent-superblock 1
>      > device /dev/hdb1
>      > raid-disk 0
>      > device /dev/hdc1
>      > raid-disk 1
>      >
>      >raiddev /dev/md1
>      > raid-level 1
>      > nr-raid-disks 2
>      > nr-spare-disks 0
>      > chunk-size 4
>      > persistent-superblock 1
>      > device /dev/hdb2
>      > raid-disk 0
>      > device /dev/hdc2
>      > raid-disk 1
>      >
>      >raiddev /dev/md2
>      > raid-level 1
>      > nr-raid-disks 2
>      > ; nr-spare-disks 0
>      > chunk-size 4
>      > persistent-superblock 1
>      > device /dev/hdb3
>      > raid-disk 0
>      > device /dev/hdc3
>      > raid-disk 1
>      >
>     that is OK
>     but /dev/hda[1-3] and /dev/hdb[1-3] should be SW-RAID ( partition id)
> 
>     and then
>     pvcreate /dev/md0 /dev/md1 /dev/md2
>     vgcreate
>     .........
> 
>     good luck
> 

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

end of thread, other threads:[~2001-11-13  7:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-10 16:42 [linux-lvm] Help on LVM/SW-RAID build problems BOIK MOON
2001-11-10 17:13 ` svetljo
2001-11-12 22:29   ` BOIK MOON
2001-11-13  7:09     ` Keith Hopkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).