On Sat, Mar 02, 2013 at 01:18:09PM -0600, Brandon Tanner wrote: > Anyone else having trouble getting bioctl to see more than 2TB when > creating softraid0? > > I've got 2 x 3TB drives, BIOS sees them fine. > > dmesg on bootup: > > sd1 at scsibus0 targ 3 lun 0: <ATA, ST3000DM001-1CH1, CC24> SCSI3 0/direct > fixed naa.5000c5005e0bcda5 > sd1: 2861588MB, 512 bytes/sector, 5860533168 sectors > sd2 at scsibus0 targ 4 lun 0: <ATA, ST3000DM001-1CH1, CC24> SCSI3 0/direct > fixed naa.5000c5005e15ec80 > sd2: 2861588MB, 512 bytes/sector, 5860533168 sectors > > notice the correct # of sectors above. > > disklabel -E sd1 > > > p T > OpenBSD area: 64-5860533168; size: 2.7T; free: 0.0T > # size offset fstype [fsize bsize cpg] > a: 2.7T 64 RAID > c: 2.7T 0 unused > > disklabel -E sd2 > > > p T > OpenBSD area: 64-5860533168; size: 2.7T; free: 0.0T > # size offset fstype [fsize bsize cpg] > a: 2.7T 64 RAID > c: 2.7T 0 unused > > # bioctl -c 1 -l /dev/sd1a,/dev/sd2a softraid0 > softraid0: SR RAID 1 volume attached as sd3 > > sd3 at scsibus2 targ 1 lun 0: <OPENBSD, SR RAID 1, 005> SCSI2 0/direct fixed > sd3: 2097148MB, 512 bytes/sector, 4294961093 sectors > > Yet, bioctl only sees it for 4294961093 sectors :(
Softraid apparently truncates at 32 bits somewhere along the line. You might try instrumenting places where ssd_size is set, and where READ_CAPACITY/READ_CAPACITY_16 are processed. A quick scan did not cause a 32 bit truncation to leap out at me. .... Ken > > # bioctl -h sd3 > Volume Status Size Device > softraid0 0 Online 2.0T sd3 RAID1 > 0 Online 2.0T 0:0.0 noencl <sd1a> > 1 Online 2.0T 0:1.0 noencl <sd2a> > > I have been troubleshooting this issue with the help of Scott McEachern > extensively, and we are both stumped. He suggested I put this on misc to > see if jsing might know anything. I have an Intel Desktop Motherboard model > DP43TF. I can newfs the drives individually and mount them as 2.7TB, it's > only when trying to make a softraid volume that it doesn't see more than > 2TB. > > I am using the Feb 21, 2013 snapshot of 5.3, and my dmesg is at: > http://pastebin.com/jqnpSsnC > > Anyone else experiencing this? > <http://search.gmane.org/?author=Scott+McEachern&sort=date>