RAID1 size issue with PDC20265
Heinz Mauelshagen
mauelshagen at redhat.com
Mon Mar 14 14:01:58 UTC 2005
On Sat, Mar 12, 2005 at 09:49:21AM -0500, Alex Ryabtsev wrote:
> Hi Heinz,
>
> while I was on research of possible fix of my problem, I saw someone
> else has it too, but I barely will be able find it again. And one more,
> let me clarify the issue:
> tight now, I am using rc5 (I tried to switch to rc6, but as I mentioned
> - it is changing set name (from pdc_fiaaeaab to pdc_bahdfcgbc) and
> instead of five 1,2,3,5,6 (I have extended partition as well) it creates
> only first three.
Alex,
can you send your partiton table output
(ie, fdisk -l /dev/mapper/pdc_bahdfcgbc)
and your metadata in a tarball (ie, "dmraid -rD;
tar jcvf pdc-raid1-Alex_Ryabtsevin.tar.bz2 *dat *size *offset") ?
Use 1.0.0.rc6 to run "dmraid -rD" so that we get the *size files as well
(rc5f didn't support creating those).
>
> But, as I said - both versions can't see more than 100G there. And here,
> as a reference output from dmraid -rD (version rc6):
> /dev/hde: pdc, "pdc_bahdfcgbc", mirror, ok, 195360896 sectors, data@ 0
> /dev/hdg: pdc, "pdc_bahdfcgbc", mirror, ok, 195360896 sectors, data@ 0
Patch vs. rc6 to adress the size issue:
--- 1.0.0.rc6/lib/format/ataraid/pdc.c 2005-03-01 15:29:05.000000000 +0100
+++ current/lib/format/ataraid/pdc.c 2005-03-14 14:55:12.000000000 +0100
@@ -354,11 +353,13 @@
switch (pdc->raid.type) {
case PDC_T_RAID0:
+ return pdc->raid.total_secs / pdc->raid.total_disks;
+
case PDC_T_RAID1:
- return pdc->raid.total_secs / pdc->raid.total_disks;
+ return pdc->raid.total_secs;
case PDC_T_SPAN:
- return rd->di->sectors - meta_sector;
+ return rd->di->sectors - meta_sector;
}
return 0;
Regards,
Heinz
>
> Regards,
> Alex
>
> On Fri, 2005-03-11 at 15:46 +0100, Heinz Mauelshagen wrote:
> > On Fri, Mar 11, 2005 at 02:19:50AM -0500, Alex Ryabtsev wrote:
> > > Hi Peter,
> > >
> > > it is not exactly controller (add-in card) - it is integrated chipset of
> > > ASUS A7V motherboard with patched _BIOS_ to being able to boot from RAID
> > > and use it under other supported systems (Windows perhaps) and have
> > > redundancy for system boot as well too. I am not using patched dmraid (I
> > > just pointed on that post in case if my problem has same roots).
> > >
> > > And as I said, it is working for me fine, but I am loosing here 100G of
> > > redundant disk space, which is a bit disappointing ;-).
> >
> > Alex,
> >
> > you're the first to report the pdc size error...
> >
> > I followed the metadata format handler code back to the first version,
> > and the size error reported seems to be in there since ever :(
> >
> > Fix will be in rc7.
> >
> > Heinz
> >
> > >
> > > Regards,
> > > Alex
> > >
> > > On Fri, 2005-03-11 at 02:05 -0500, Peter Bense wrote:
> > > > Alex,
> > > >
> > > > I have a fair bit of experience installing these controllers in Gentoo.
> > > > Your problem description is pretty vague, however.
> > > >
> > > > Out of curiousity, why are you using dmraid? What is it that is
> > > > 'patched'? Please elaborate.
> > > >
> > > > I just build a new kernel in Gentoo with PDC support in my installs. (I
> > > > have 3 systems that I've configured with Promise cards in Gentoo...)
> > > >
> > > > ./peter
> > > >
> > > > Peter T. Bense - Teradata Certified Professional
> > > > (ptbense at gwm.sc.edu) - 803-777-9476
> > > > Database Administrator/Webmaster
> > > > Prevention Research Center
> > > > University of South Carolina
> > > > >>> alxsey at hotmail.com 03/11/05 12:22 AM >>>
> > > > Hi,
> > > >
> > > > being new to this list and to dmraid, I could not be so sure is my
> > > > problem is what Paul Moore describes here
> > > > (https://www.redhat.com/archives/ataraid-list/2005-February/msg00004.html
> > > > - Subject: Re: Some strange behavior with Promise Fasttrak).
> > > >
> > > > I am using dmraid (rc5) within Gentoo (using dmraid initrd) on Promise
> > > > integrated PDC20265 controller with patched for RAID support BIOS. It
> > > > works pretty well (although I had no chance to check raid1 , which I am
> > > > using, functionality). There is only problem that from my two 200G hard
> > > > drives I have acceseble 100G only (remember, this is RAID1, so I have to
> > > > have 200G). dmraid rc6 looks like does not helps here too much, but for
> > > > me even makes things worse - it is changing mapped set name and as far
> > > > as I can tell, fdisk show me same 100G, and I have only 3 devices
> > > > in /dev/mapper instead of 5 I'm having with rc5.
> > > >
> > > > Is there any advice for my case or I am too unclear here?
> > > >
> > > > Regards,
> > > > Alex
> > > >
> > >
> > > _______________________________________________
> > > Ataraid-list mailing list
> > > Ataraid-list at redhat.com
> > > https://www.redhat.com/mailman/listinfo/ataraid-list
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen at RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
More information about the Ataraid-list
mailing list