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]
