Hi, your formula is correct for now. SapDB_device_size = [ device_size_in_bytes / 8192 ] - 1
and we will announce as soon as we change it into the more 'reasonable formula' SapDB_device_size = [ device_size_in_bytes / 8192 ] CU jrg > -----Original Message----- > From: John L. Singleton [mailto:[EMAIL PROTECTED] > Sent: Freitag, 5. M�rz 2004 00:00 > To: '[EMAIL PROTECTED]' > Subject: Formula for Maximum Volume Size on Raw Device > > > Hello again list, > > After a lot of dinking around, I've come up with (I hope) a method to > determine the maximum size of a volume on a raw device. > Could someone perhaps verify this, or perhaps show me where > I've gone wrong? > > My raw device, as reported by blockdev is: > > [EMAIL PROTECTED] rhyce]# /sbin/blockdev --getsize /dev/raw/raw1 > 40017852 (in 512 byte blocks) > > Now: The sector count isn't odd, meaning under Linux, the last sector > should be usable as a raw device. If the number were, say, > 40017852, I > would just subtract 1 first. > > 40017852 * 512 = 20489140224 bytes > > Then: > > 20489140224/8192 = 2501115 (which is the size in maxdb pages) > > And, since we need an extra 1k for header information: > > 2501115 - 1 = 2501114 > > Since 1024 bytes requires 1 additional page = 8192 bytes. > > This formula seems to work. Is there something I've missed? > > > Ciao, > JLS > > -- > MaxDB Discussion Mailing List > For list archives: http://lists.mysql.com/maxdb > To unsubscribe: > http://lists.mysql.com/[EMAIL PROTECTED] > -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]
