* [linux-lvm] pvcreate problem
@ 2002-12-05 17:27 Alexander Lazarevich
2002-12-06 8:56 ` Alexander Lazarevich
2002-12-06 8:59 ` Heinz J . Mauelshagen
0 siblings, 2 replies; 15+ messages in thread
From: Alexander Lazarevich @ 2002-12-05 17:27 UTC (permalink / raw)
To: Linux LVM Sistina
i just installed a fresh RH linux 7.3, with LVM 1, or whatever comes in
the RH distribution.
ihe first thing i'm trying to do is pvcreate on my big RAID 5 array, which
is /dev/sdb:
[root@discord root]# pvcreate /dev/sdb
pvcreate -- ERROR: can't initialize physical volume "/dev/sdb" of volume
group "homevg" without -ff
but there is no volume group homevg:
[root@discord root]# vgdisplay homevg
vgdisplay -- volume group "homevg" not found
i am able to fdisk a partition onto /dev/sdb, and then do a pvcreate on
that partition, but i want to do a pvcreate on the whole free volume, no
partitions! i may have made a typo before, by trying to do a pvcreate
/dev/sdb, i instead did a vgcreate /dev/sdb. and them i might have tried
some other crap cause it was freeking out. i rebooted so i can see the
history, unless lvm keeps some kind of log file? i couldnt find one.
i rebooted, etc. id prefer not to have to reinstall everything. how do i
fix this problem?
any ideas?
thanks in advance!
alex
--- ---
Alex Lazarevich | Systems | Imaging Technology Group
alazarev@itg.uiuc.edu | (217)244-1565 | www.itg.uiuc.edu
--- ---
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-lvm] pvcreate problem
2002-12-05 17:27 [linux-lvm] pvcreate problem Alexander Lazarevich
@ 2002-12-06 8:56 ` Alexander Lazarevich
2002-12-06 8:59 ` Heinz J . Mauelshagen
1 sibling, 0 replies; 15+ messages in thread
From: Alexander Lazarevich @ 2002-12-06 8:56 UTC (permalink / raw)
To: Linux LVM Sistina
I fixed the problem. I initialized the RAID 5 array, which must have
erased whatever was causing the problem. Because now my pvcreate works
just fine.
Thanks!
alex
On Thu, 5 Dec 2002, Alexander Lazarevich wrote:
> i just installed a fresh RH linux 7.3, with LVM 1, or whatever comes in
> the RH distribution.
>
> ihe first thing i'm trying to do is pvcreate on my big RAID 5 array, which
> is /dev/sdb:
>
> [root@discord root]# pvcreate /dev/sdb
> pvcreate -- ERROR: can't initialize physical volume "/dev/sdb" of volume
> group "homevg" without -ff
>
> but there is no volume group homevg:
>
> [root@discord root]# vgdisplay homevg
> vgdisplay -- volume group "homevg" not found
>
> i am able to fdisk a partition onto /dev/sdb, and then do a pvcreate on
> that partition, but i want to do a pvcreate on the whole free volume, no
> partitions! i may have made a typo before, by trying to do a pvcreate
> /dev/sdb, i instead did a vgcreate /dev/sdb. and them i might have tried
> some other crap cause it was freeking out. i rebooted so i can see the
> history, unless lvm keeps some kind of log file? i couldnt find one.
>
> i rebooted, etc. id prefer not to have to reinstall everything. how do i
> fix this problem?
>
> any ideas?
>
> thanks in advance!
>
> alex
> --- ---
> Alex Lazarevich | Systems | Imaging Technology Group
> alazarev@itg.uiuc.edu | (217)244-1565 | www.itg.uiuc.edu
> --- ---
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-lvm] pvcreate problem
2002-12-05 17:27 [linux-lvm] pvcreate problem Alexander Lazarevich
2002-12-06 8:56 ` Alexander Lazarevich
@ 2002-12-06 8:59 ` Heinz J . Mauelshagen
2002-12-06 9:26 ` Alexander Lazarevich
1 sibling, 1 reply; 15+ messages in thread
From: Heinz J . Mauelshagen @ 2002-12-06 8:59 UTC (permalink / raw)
To: linux-lvm
On Thu, Dec 05, 2002 at 05:27:01PM -0600, Alexander Lazarevich wrote:
> i just installed a fresh RH linux 7.3, with LVM 1, or whatever comes in
> the RH distribution.
>
> ihe first thing i'm trying to do is pvcreate on my big RAID 5 array, which
> is /dev/sdb:
>
> [root@discord root]# pvcreate /dev/sdb
> pvcreate -- ERROR: can't initialize physical volume "/dev/sdb" of volume
> group "homevg" without -ff
>
> but there is no volume group homevg:
>
> [root@discord root]# vgdisplay homevg
> vgdisplay -- volume group "homevg" not found
>
> i am able to fdisk a partition onto /dev/sdb, and then do a pvcreate on
> that partition, but i want to do a pvcreate on the whole free volume, no
> partitions! i may have made a typo before, by trying to do a pvcreate
> /dev/sdb, i instead did a vgcreate /dev/sdb. and them i might have tried
> some other crap cause it was freeking out. i rebooted so i can see the
> history, unless lvm keeps some kind of log file? i couldnt find one.
No log file ITR.
In general having at least one partition per device is a good idea, because
sources like /proc/partitions or tools like fdisk find that there's something
on the device. You loose _very_ little capacity that way.
If you still want to use /dev/sdv directly "pvcreate -ff /dev/sdb;vgcreate ..."
should do it after you remove any partition table from /dev/sdb again.
Eventually you need a "dd if=/dev/zero of=/dev/sdb bs=512 count=1" _after_
you removed the partition table.
>
> i rebooted, etc. id prefer not to have to reinstall everything. how do i
> fix this problem?
>
> any ideas?
>
> thanks in advance!
>
> alex
> --- ---
> Alex Lazarevich | Systems | Imaging Technology Group
> alazarev@itg.uiuc.edu | (217)244-1565 | www.itg.uiuc.edu
> --- ---
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [linux-lvm] pvcreate problem
2002-12-06 8:59 ` Heinz J . Mauelshagen
@ 2002-12-06 9:26 ` Alexander Lazarevich
2002-12-09 5:13 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 15+ messages in thread
From: Alexander Lazarevich @ 2002-12-06 9:26 UTC (permalink / raw)
To: linux-lvm
hmm, thanks heinz. ive got it setup now with all the lvm volumes on
/dev/sdb. fdisk sees no partitions. based off what you said, im wondering
if i should remove all the lvm volumes, do an fdisk of /dev//sdb and
create a single partition on the whole disk, and then redo the lvm stuff.
should i really do that? or is it not that big a deal? any performance
difference? or is it just that fidks and other tools won't see any
partitions on the device?
thanks for the advice!
alex
--- ---
Alex Lazarevich | Systems | Imaging Technology Group
alazarev@itg.uiuc.edu | (217)244-1565 | www.itg.uiuc.edu
--- ---
On Fri, 6 Dec 2002, Heinz J . Mauelshagen wrote:
> On Thu, Dec 05, 2002 at 05:27:01PM -0600, Alexander Lazarevich wrote:
> > i just installed a fresh RH linux 7.3, with LVM 1, or whatever comes in
> > the RH distribution.
> >
> > ihe first thing i'm trying to do is pvcreate on my big RAID 5 array, which
> > is /dev/sdb:
> >
> > [root@discord root]# pvcreate /dev/sdb
> > pvcreate -- ERROR: can't initialize physical volume "/dev/sdb" of volume
> > group "homevg" without -ff
> >
> > but there is no volume group homevg:
> >
> > [root@discord root]# vgdisplay homevg
> > vgdisplay -- volume group "homevg" not found
> >
> > i am able to fdisk a partition onto /dev/sdb, and then do a pvcreate on
> > that partition, but i want to do a pvcreate on the whole free volume, no
> > partitions! i may have made a typo before, by trying to do a pvcreate
> > /dev/sdb, i instead did a vgcreate /dev/sdb. and them i might have tried
> > some other crap cause it was freeking out. i rebooted so i can see the
> > history, unless lvm keeps some kind of log file? i couldnt find one.
>
> No log file ITR.
> In general having at least one partition per device is a good idea, because
> sources like /proc/partitions or tools like fdisk find that there's something
> on the device. You loose _very_ little capacity that way.
>
> If you still want to use /dev/sdv directly "pvcreate -ff /dev/sdb;vgcreate ..."
> should do it after you remove any partition table from /dev/sdb again.
> Eventually you need a "dd if=/dev/zero of=/dev/sdb bs=512 count=1" _after_
> you removed the partition table.
>
> >
> > i rebooted, etc. id prefer not to have to reinstall everything. how do i
> > fix this problem?
> >
> > any ideas?
> >
> > thanks in advance!
> >
> > alex
> > --- ---
> > Alex Lazarevich | Systems | Imaging Technology Group
> > alazarev@itg.uiuc.edu | (217)244-1565 | www.itg.uiuc.edu
> > --- ---
> >
> >
> >
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm@sistina.com
> > http://lists.sistina.com/mailman/listinfo/linux-lvm
> > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
> --
>
> Regards,
> Heinz -- The LVM Guy --
>
> *** Software bugs are stupid.
> Nevertheless it needs not so stupid people to solve them ***
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> Heinz Mauelshagen Sistina Software Inc.
> Senior Consultant/Developer Am Sonnenhang 11
> 56242 Marienrachdorf
> Germany
> Mauelshagen@Sistina.com +49 2626 141200
> FAX 924446
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-lvm] pvcreate problem
2002-12-06 9:26 ` Alexander Lazarevich
@ 2002-12-09 5:13 ` Heinz J . Mauelshagen
0 siblings, 0 replies; 15+ messages in thread
From: Heinz J . Mauelshagen @ 2002-12-09 5:13 UTC (permalink / raw)
To: linux-lvm
On Fri, Dec 06, 2002 at 09:26:24AM -0600, Alexander Lazarevich wrote:
> hmm, thanks heinz. ive got it setup now with all the lvm volumes on
> /dev/sdb. fdisk sees no partitions. based off what you said, im wondering
> if i should remove all the lvm volumes, do an fdisk of /dev//sdb and
> create a single partition on the whole disk, and then redo the lvm stuff.
>
> should i really do that? or is it not that big a deal? any performance
> difference? or is it just that fidks and other tools won't see any
> partitions on the device?
It is just the danger to overlook that the disk is in use because tools
and proc entries don't show.
So if you keep track and remember that you use the whole device you can
just keep it the way it is.
>
> thanks for the advice!
You're welcome :)
Regards,
Heinz -- The LVM Guy --
>
> alex
> --- ---
> Alex Lazarevich | Systems | Imaging Technology Group
> alazarev@itg.uiuc.edu | (217)244-1565 | www.itg.uiuc.edu
> --- ---
>
>
> On Fri, 6 Dec 2002, Heinz J . Mauelshagen wrote:
>
> > On Thu, Dec 05, 2002 at 05:27:01PM -0600, Alexander Lazarevich wrote:
> > > i just installed a fresh RH linux 7.3, with LVM 1, or whatever comes in
> > > the RH distribution.
> > >
> > > ihe first thing i'm trying to do is pvcreate on my big RAID 5 array, which
> > > is /dev/sdb:
> > >
> > > [root@discord root]# pvcreate /dev/sdb
> > > pvcreate -- ERROR: can't initialize physical volume "/dev/sdb" of volume
> > > group "homevg" without -ff
> > >
> > > but there is no volume group homevg:
> > >
> > > [root@discord root]# vgdisplay homevg
> > > vgdisplay -- volume group "homevg" not found
> > >
> > > i am able to fdisk a partition onto /dev/sdb, and then do a pvcreate on
> > > that partition, but i want to do a pvcreate on the whole free volume, no
> > > partitions! i may have made a typo before, by trying to do a pvcreate
> > > /dev/sdb, i instead did a vgcreate /dev/sdb. and them i might have tried
> > > some other crap cause it was freeking out. i rebooted so i can see the
> > > history, unless lvm keeps some kind of log file? i couldnt find one.
> >
> > No log file ITR.
> > In general having at least one partition per device is a good idea, because
> > sources like /proc/partitions or tools like fdisk find that there's something
> > on the device. You loose _very_ little capacity that way.
> >
> > If you still want to use /dev/sdv directly "pvcreate -ff /dev/sdb;vgcreate ..."
> > should do it after you remove any partition table from /dev/sdb again.
> > Eventually you need a "dd if=/dev/zero of=/dev/sdb bs=512 count=1" _after_
> > you removed the partition table.
> >
> > >
> > > i rebooted, etc. id prefer not to have to reinstall everything. how do i
> > > fix this problem?
> > >
> > > any ideas?
> > >
> > > thanks in advance!
> > >
> > > alex
> > > --- ---
> > > Alex Lazarevich | Systems | Imaging Technology Group
> > > alazarev@itg.uiuc.edu | (217)244-1565 | www.itg.uiuc.edu
> > > --- ---
> > >
> > >
> > >
> > > _______________________________________________
> > > linux-lvm mailing list
> > > linux-lvm@sistina.com
> > > http://lists.sistina.com/mailman/listinfo/linux-lvm
> > > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> >
> > --
> >
> > Regards,
> > Heinz -- The LVM Guy --
> >
> > *** Software bugs are stupid.
> > Nevertheless it needs not so stupid people to solve them ***
> >
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >
> > Heinz Mauelshagen Sistina Software Inc.
> > Senior Consultant/Developer Am Sonnenhang 11
> > 56242 Marienrachdorf
> > Germany
> > Mauelshagen@Sistina.com +49 2626 141200
> > FAX 924446
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm@sistina.com
> > http://lists.sistina.com/mailman/listinfo/linux-lvm
> > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> >
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 15+ messages in thread
* [linux-lvm] pvcreate problem
@ 2008-02-13 8:13 Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
2008-02-13 8:37 ` Mark Huth
0 siblings, 1 reply; 15+ messages in thread
From: Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න @ 2008-02-13 8:13 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 1990 bytes --]
Hi all,
Forgive me if this is the wrong list to ask this question.
I'm quite new to LVM(-and to this list) and one of my friends brought this
question up to me..
There is an error coming up when they try to "pvcreate"
Below is the "fdisk -l" output.
[root@lwlsvr bin]# fdisk -l
Disk /dev/cciss/c0d0: 145.6 GB, 145667358720 bytes
255 heads, 32 sectors/track, 34866 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 25 101984 83 Linux
/dev/cciss/c0d0p2 26 7554 30718320 83 Linux
/dev/cciss/c0d0p3 7555 8068 2097120 82 Linux swap
/dev/cciss/c0d0p4 8069 34866 109335840 5 Extended
/dev/cciss/c0d0p5 8069 10578 10240784 83 Linux
/dev/cciss/c0d0p6 10579 10587 36704 83 Linux
/dev/cciss/c0d0p7 10588 10596 36704 83 Linux
/dev/cciss/c0d0p8 10597 10725 526304 83 Linux
/dev/cciss/c0d0p9 10726 10988 1073024 83 Linux
/dev/cciss/c0d0p10 10989 11251 1073024 83 Linux
/dev/cciss/c0d0p11 11252 11776 2141984 83 Linux
/dev/cciss/c0d0p12 11777 12301 2141984 83 Linux
/dev/cciss/c0d0p13 12302 12826 2141984 83 Linux
/dev/cciss/c0d0p14 12827 13351 2141984 83 Linux
/dev/cciss/c0d0p15 13352 13876 2141984 83 Linux
/dev/cciss/c0d0p16 13877 34866 85639184 8e Linux LVM
When a pvcreate is attempted on "/dev/cciss/c0d0p16" it produces the below
output.
[root@lwlsvr informix]# pvcreate /dev/cciss/c0d0p16
pvcreate -- can't open physical volume "/dev/cciss/c0d0p16" to get its size
pvcreate [-d|--debug] [-f[f]|--force [--force]] [-h|--help]
[-s|--size PhysicalVolumeSize[kKmMgGtT]] [-y|--yes] [-v|--verbose]
[--version] PhysicalVolume [PhysicalVolume...]
Highly appreciate any help...
Thanks.
--
Yajith Ajantha
[-- Attachment #2: Type: text/html, Size: 3116 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [linux-lvm] pvcreate problem
2008-02-13 8:13 Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
@ 2008-02-13 8:37 ` Mark Huth
2008-02-13 9:04 ` Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
0 siblings, 1 reply; 15+ messages in thread
From: Mark Huth @ 2008-02-13 8:37 UTC (permalink / raw)
To: LVM general discussion and development
Yajith Ajantha Dayarathna | ????? ????? ??????? wrote:
> Hi all,
> Forgive me if this is the wrong list to ask this question.
> I'm quite new to LVM(-and to this list) and one of my friends brought
> this question up to me..
>
> There is an error coming up when they try to "pvcreate"
>
> Below is the "fdisk -l" output.
>
> [root@lwlsvr bin]# fdisk -l
>
>
> Disk /dev/cciss/c0d0: 145.6 GB, 145667358720 bytes
> 255 heads, 32 sectors/track, 34866 cylinders
> Units = cylinders of 8160 * 512 = 4177920 bytes
>
> Device Boot Start End Blocks Id System
> /dev/cciss/c0d0p1 * 1 25 101984 83 Linux
> /dev/cciss/c0d0p2 26 7554 30718320 83 Linux
> /dev/cciss/c0d0p3 7555 8068 2097120 82 Linux swap
> /dev/cciss/c0d0p4 8069 34866 109335840 5 Extended
> /dev/cciss/c0d0p5 8069 10578 10240784 83 Linux
> /dev/cciss/c0d0p6 10579 10587 36704 83 Linux
> /dev/cciss/c0d0p7 10588 10596 36704 83 Linux
> /dev/cciss/c0d0p8 10597 10725 526304 83 Linux
> /dev/cciss/c0d0p9 10726 10988 1073024 83 Linux
> /dev/cciss/c0d0p10 10989 11251 1073024 83 Linux
> /dev/cciss/c0d0p11 11252 11776 2141984 83 Linux
> /dev/cciss/c0d0p12 11777 12301 2141984 83 Linux
> /dev/cciss/c0d0p13 12302 12826 2141984 83 Linux
> /dev/cciss/c0d0p14 12827 13351 2141984 83 Linux
> /dev/cciss/c0d0p15 13352 13876 2141984 83 Linux
> /dev/cciss/c0d0p16 13877 34866 85639184 8e Linux LVM
>
> When a pvcreate is attempted on "/dev/cciss/c0d0p16" it produces the
> below output.
>
> [root@lwlsvr informix]# pvcreate /dev/cciss/c0d0p16
> pvcreate -- can't open physical volume "/dev/cciss/c0d0p16" to get its
> size
>
AFAIK, the major/minor numbering scheme for block devices limits you to
15 partitions per device.
Mark
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-lvm] pvcreate problem
2008-02-13 8:37 ` Mark Huth
@ 2008-02-13 9:04 ` Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
2008-02-13 9:06 ` Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
0 siblings, 1 reply; 15+ messages in thread
From: Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න @ 2008-02-13 9:04 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 2278 bytes --]
On Feb 13, 2008 2:07 PM, Mark Huth <mhuth@redhat.com> wrote:
> Yajith Ajantha Dayarathna | ????? ????? ??????? wrote:
> > Hi all,
> > Forgive me if this is the wrong list to ask this question.
> > I'm quite new to LVM(-and to this list) and one of my friends brought
> > this question up to me..
> >
> > There is an error coming up when they try to "pvcreate"
> >
> > Below is the "fdisk -l" output.
> >
> > [root@lwlsvr bin]# fdisk -l
> >
> >
> > Disk /dev/cciss/c0d0: 145.6 GB, 145667358720 bytes
> > 255 heads, 32 sectors/track, 34866 cylinders
> > Units = cylinders of 8160 * 512 = 4177920 bytes
> >
> > Device Boot Start End Blocks Id System
> > /dev/cciss/c0d0p1 * 1 25 101984 83 Linux
> > /dev/cciss/c0d0p2 26 7554 30718320 83 Linux
> > /dev/cciss/c0d0p3 7555 8068 2097120 82 Linux swap
> > /dev/cciss/c0d0p4 8069 34866 109335840 5 Extended
> > /dev/cciss/c0d0p5 8069 10578 10240784 83 Linux
> > /dev/cciss/c0d0p6 10579 10587 36704 83 Linux
> > /dev/cciss/c0d0p7 10588 10596 36704 83 Linux
> > /dev/cciss/c0d0p8 10597 10725 526304 83 Linux
> > /dev/cciss/c0d0p9 10726 10988 1073024 83 Linux
> > /dev/cciss/c0d0p10 10989 11251 1073024 83 Linux
> > /dev/cciss/c0d0p11 11252 11776 2141984 83 Linux
> > /dev/cciss/c0d0p12 11777 12301 2141984 83 Linux
> > /dev/cciss/c0d0p13 12302 12826 2141984 83 Linux
> > /dev/cciss/c0d0p14 12827 13351 2141984 83 Linux
> > /dev/cciss/c0d0p15 13352 13876 2141984 83 Linux
> > /dev/cciss/c0d0p16 13877 34866 85639184 8e Linux LVM
> >
> > When a pvcreate is attempted on "/dev/cciss/c0d0p16" it produces the
> > below output.
> >
> > [root@lwlsvr informix]# pvcreate /dev/cciss/c0d0p16
> > pvcreate -- can't open physical volume "/dev/cciss/c0d0p16" to get its
> > size
> >
> AFAIK, the major/minor numbering scheme for block devices limits you to
> 15 partitions per device.
>
> Mark
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
thanks for the quick reply..
is it possible to create more than 15 partitions from fdisk, while
major/minor numbering scheme limitation is there ?
could you point me to someplace i can read more about on this?
thanks again
--
Yajith Ajantha
[-- Attachment #2: Type: text/html, Size: 2997 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-lvm] pvcreate problem
2008-02-13 9:04 ` Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
@ 2008-02-13 9:06 ` Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
2008-02-13 9:58 ` Bryn M. Reeves
0 siblings, 1 reply; 15+ messages in thread
From: Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න @ 2008-02-13 9:06 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 2719 bytes --]
On Feb 13, 2008 2:34 PM, Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න <
yajith@gmail.com> wrote:
> On Feb 13, 2008 2:07 PM, Mark Huth <mhuth@redhat.com> wrote:
>
> > Yajith Ajantha Dayarathna | ????? ????? ??????? wrote:
> > > Hi all,
> > > Forgive me if this is the wrong list to ask this question.
> > > I'm quite new to LVM(-and to this list) and one of my friends brought
> > > this question up to me..
> > >
> > > There is an error coming up when they try to "pvcreate"
> > >
> > > Below is the "fdisk -l" output.
> > >
> > > [root@lwlsvr bin]# fdisk -l
> > >
> > >
> > > Disk /dev/cciss/c0d0: 145.6 GB, 145667358720 bytes
> > > 255 heads, 32 sectors/track, 34866 cylinders
> > > Units = cylinders of 8160 * 512 = 4177920 bytes
> > >
> > > Device Boot Start End Blocks Id System
> > > /dev/cciss/c0d0p1 * 1 25 101984 83 Linux
> > > /dev/cciss/c0d0p2 26 7554 30718320 83 Linux
> > > /dev/cciss/c0d0p3 7555 8068 2097120 82 Linux swap
> > > /dev/cciss/c0d0p4 8069 34866 109335840 5 Extended
> > > /dev/cciss/c0d0p5 8069 10578 10240784 83 Linux
> > > /dev/cciss/c0d0p6 10579 10587 36704 83 Linux
> > > /dev/cciss/c0d0p7 10588 10596 36704 83 Linux
> > > /dev/cciss/c0d0p8 10597 10725 526304 83 Linux
> > > /dev/cciss/c0d0p9 10726 10988 1073024 83 Linux
> > > /dev/cciss/c0d0p10 10989 11251 1073024 83 Linux
> > > /dev/cciss/c0d0p11 11252 11776 2141984 83 Linux
> > > /dev/cciss/c0d0p12 11777 12301 2141984 83 Linux
> > > /dev/cciss/c0d0p13 12302 12826 2141984 83 Linux
> > > /dev/cciss/c0d0p14 12827 13351 2141984 83 Linux
> > > /dev/cciss/c0d0p15 13352 13876 2141984 83 Linux
> > > /dev/cciss/c0d0p16 13877 34866 85639184 8e Linux LVM
> > >
> > > When a pvcreate is attempted on "/dev/cciss/c0d0p16" it produces the
> > > below output.
> > >
> > > [root@lwlsvr informix]# pvcreate /dev/cciss/c0d0p16
> > > pvcreate -- can't open physical volume "/dev/cciss/c0d0p16" to get its
> > > size
> > >
> > AFAIK, the major/minor numbering scheme for block devices limits you to
> > 15 partitions per device.
> >
> > Mark
> >
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm@redhat.com
> > https://www.redhat.com/mailman/listinfo/linux-lvm
> > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> >
>
> thanks for the quick reply..
> is it possible to create more than 15 partitions from fdisk, while
> major/minor numbering scheme limitation is there ?
> could you point me to someplace i can read more about on this?
>
> thanks again
> --
> Yajith Ajantha
even though the fdisk output contains "/dev/cciss/c0d0p16" there is no such
device created under /dev/cciss/.
Is it because of the above mentioned limitation ?
--
Yajith Ajantha
[-- Attachment #2: Type: text/html, Size: 3683 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-lvm] pvcreate problem
2008-02-13 9:06 ` Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
@ 2008-02-13 9:58 ` Bryn M. Reeves
2008-02-13 10:13 ` Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
0 siblings, 1 reply; 15+ messages in thread
From: Bryn M. Reeves @ 2008-02-13 9:58 UTC (permalink / raw)
To: LVM general discussion and development
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Yajith Ajantha Dayarathna | ????? ????? ??????? wrote:
> even though the fdisk output contains "/dev/cciss/c0d0p16" there is no
> such device created under /dev/cciss/.
> Is it because of the above mentioned limitation ?
That's correct - under Linux, IDE hard disks (/dev/hd*) can have up to
63 partitions but SCSI and RAID controllers like the CCISS are limited
to 15 partitions (16 if you count the whole-device) due to the way minor
numbers are allocated to /dev/sd* nodes.
You could cheat and map the additional partitions using kpartx - run
"kpartx -a /dev/cciss/c0d0" and this should create a device-mapper
device for each partition under /dev/mapper/c0d0p*. You can remove them
again with "kpartx -d /dev/cciss/c0d0".
That said, it might be better to reconsider your partitioning scheme and
see if you really need that number of partition table entries.
Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHsr9B6YSQoMYUY94RAmWfAJ4uXdCCtqX8nKiER8yXqNoHFHaVkQCeOOdM
R3aCmQuHBVUxP/9bbGvrrqg=
=EUlc
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-lvm] pvcreate problem
2008-02-13 9:58 ` Bryn M. Reeves
@ 2008-02-13 10:13 ` Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
2008-02-13 10:35 ` Bryn M. Reeves
0 siblings, 1 reply; 15+ messages in thread
From: Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න @ 2008-02-13 10:13 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 1808 bytes --]
On Feb 13, 2008 3:28 PM, Bryn M. Reeves <breeves@redhat.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Yajith Ajantha Dayarathna | ????? ????? ??????? wrote:
> > even though the fdisk output contains "/dev/cciss/c0d0p16" there is no
> > such device created under /dev/cciss/.
> > Is it because of the above mentioned limitation ?
>
> That's correct - under Linux, IDE hard disks (/dev/hd*) can have up to
> 63 partitions but SCSI and RAID controllers like the CCISS are limited
> to 15 partitions (16 if you count the whole-device) due to the way minor
> numbers are allocated to /dev/sd* nodes.
>
> You could cheat and map the additional partitions using kpartx - run
> "kpartx -a /dev/cciss/c0d0" and this should create a device-mapper
> device for each partition under /dev/mapper/c0d0p*. You can remove them
> again with "kpartx -d /dev/cciss/c0d0".
>
> That said, it might be better to reconsider your partitioning scheme and
> see if you really need that number of partition table entries.
>
> Regards,
> Bryn.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
> iD8DBQFHsr9B6YSQoMYUY94RAmWfAJ4uXdCCtqX8nKiER8yXqNoHFHaVkQCeOOdM
> R3aCmQuHBVUxP/9bbGvrrqg=
> =EUlc
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
i will try the mapper device.
yes, the partitioning scheme is quite inflexible.
Does LVM use the same technique to get around this limitation ? I have seen
devices getting created under /dev/mapper.
Always thought its a part of LVM.
thanks a lot for all your support...
--
Yajith Ajantha
[-- Attachment #2: Type: text/html, Size: 2469 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-lvm] pvcreate problem
2008-02-13 10:13 ` Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
@ 2008-02-13 10:35 ` Bryn M. Reeves
0 siblings, 0 replies; 15+ messages in thread
From: Bryn M. Reeves @ 2008-02-13 10:35 UTC (permalink / raw)
To: LVM general discussion and development
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Yajith Ajantha Dayarathna | ????? ????? ??????? wrote:
> i will try the mapper device.
> yes, the partitioning scheme is quite inflexible.
> Does LVM use the same technique to get around this limitation ? I have
> seen devices getting created under /dev/mapper.
> Always thought its a part of LVM.
Yes, device-mapper is the kernel component that LVM2 uses to create
logical volumes so it can also support pretty much arbitrary numbers of
logical volumes (although LVs aren't normally partitioned unless you use
a tool like kpartx).
Device-mapper's also used by applications like multipath-tools, dmraid
and kpartx itself.
Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHssf66YSQoMYUY94RApWlAKDQzLnk3Z/WRBk0dWVBfpI+rUmgUQCglSWj
4txeSYQCaODkwWlyO8oP9Rw=
=QPO0
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 15+ messages in thread
* [linux-lvm] pvcreate problem
@ 2002-01-02 2:13 Colin Coe
2002-01-02 2:46 ` Luca Berra
2002-01-02 11:59 ` Kirby C. Bohling
0 siblings, 2 replies; 15+ messages in thread
From: Colin Coe @ 2002-01-02 2:13 UTC (permalink / raw)
To: 'linux-lvm@sistina.com'
Hi all, when I try and 'pvcreate /dev/md0' I get the error: "pvcreate --
device '/dev/md0' has a partition table". I have tried using the -f and
--force options without success.
/dev/md0 used to have an XFS partition on it.
Any ideas?
CC
**************************************************************************
Bunnings Legal Disclaimer:
1) This document is confidential and may contain legally privileged
information. If you are not the intended recipient you must not
read, copy, distribute or act in reliance on it.
If you have received this document in error, please telephone
us immediately on (08) 9365-1555.
2) All e-mails sent to and sent from Bunnings Building Supplies are
scanned for content. Any material deemed to contain inappropriate
subject matter will be reported to the e-mail administrator of
all parties concerned.
**************************************************************************
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-lvm] pvcreate problem
2002-01-02 2:13 Colin Coe
@ 2002-01-02 2:46 ` Luca Berra
2002-01-02 11:59 ` Kirby C. Bohling
1 sibling, 0 replies; 15+ messages in thread
From: Luca Berra @ 2002-01-02 2:46 UTC (permalink / raw)
To: 'linux-lvm@sistina.com'
On Wed, Jan 02, 2002 at 04:09:44PM +0800, Colin Coe wrote:
>
> Hi all, when I try and 'pvcreate /dev/md0' I get the error: "pvcreate --
> device '/dev/md0' has a partition table". I have tried using the -f and
> --force options without success.
>
> /dev/md0 used to have an XFS partition on it.
>
> Any ideas?
I believe you are running an older version of the tools
either upgrade your tools to the latest version or
scan the list archives for a patch for this.
L.
P.S. latest version is 1.0.1
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [linux-lvm] pvcreate problem
2002-01-02 2:13 Colin Coe
2002-01-02 2:46 ` Luca Berra
@ 2002-01-02 11:59 ` Kirby C. Bohling
1 sibling, 0 replies; 15+ messages in thread
From: Kirby C. Bohling @ 2002-01-02 11:59 UTC (permalink / raw)
To: linux-lvm
dd if=/dev/zero of=/dev/md0 bs=10k count=1000, should zero out the first
10 of the device. With one set of the tools I have, you have to do -ff
according to the error message.
Kirby
Colin Coe wrote:
> Hi all, when I try and 'pvcreate /dev/md0' I get the error: "pvcreate --
> device '/dev/md0' has a partition table". I have tried using the -f and
> --force options without success.
>
> /dev/md0 used to have an XFS partition on it.
>
> Any ideas?
>
> CC
>
> **************************************************************************
> Bunnings Legal Disclaimer:
>
> 1) This document is confidential and may contain legally privileged
> information. If you are not the intended recipient you must not
> read, copy, distribute or act in reliance on it.
> If you have received this document in error, please telephone
> us immediately on (08) 9365-1555.
>
> 2) All e-mails sent to and sent from Bunnings Building Supplies are
> scanned for content. Any material deemed to contain inappropriate
> subject matter will be reported to the e-mail administrator of
> all parties concerned.
>
> **************************************************************************
>
> _______________________________________________
> 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
>
--
Real Programmers view electronic multimedia files with a hex editor.
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2008-02-13 10:37 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-05 17:27 [linux-lvm] pvcreate problem Alexander Lazarevich
2002-12-06 8:56 ` Alexander Lazarevich
2002-12-06 8:59 ` Heinz J . Mauelshagen
2002-12-06 9:26 ` Alexander Lazarevich
2002-12-09 5:13 ` Heinz J . Mauelshagen
-- strict thread matches above, loose matches on Subject: below --
2008-02-13 8:13 Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
2008-02-13 8:37 ` Mark Huth
2008-02-13 9:04 ` Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
2008-02-13 9:06 ` Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
2008-02-13 9:58 ` Bryn M. Reeves
2008-02-13 10:13 ` Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
2008-02-13 10:35 ` Bryn M. Reeves
2002-01-02 2:13 Colin Coe
2002-01-02 2:46 ` Luca Berra
2002-01-02 11:59 ` Kirby C. Bohling
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).