Hi!

You should make an unformatted partition whose size is
divisible by 1 MB. If fseek does not understand the partition size,
we can disable the size check from InnoDB code.

Please report if you succeed. If not, I change InnoDB-3.23.40
so that you can disable the file size check.

I haver not tested raw disks on Unix. Other problems may also
arise. For example, what does Linux do if fsync is called on
a raw disk partition? I hope Linux ignores such OS calls.

Regards,

Heikki
http://www.innodb.com

Copied message:
.........................
fdisk /dev/hdd and set up partition 1.Then try using hdd1.

Peter Duffy wrote:
> Hi,
>
> In the InnoDB section of the MySQL manual, it mentions that InnoDB can
> be used with raw disks, rather than data files. I've been trying to get
> this to work under Linux (RedHat 6.2), but so far without success.
>
> I installed a new slave disk on the second IDE bus, brought up the
> system and verified that the disk was available and partitionable at
> /dev/hdd. Then, in /etc/my.cnf, I pointed innodb_data_home_dir and
> innodb_data_file_path at /dev/hdd, with a size calculated from the
> autodetected values as reported in /var/log/messages. I then started
> mysql: it reported that the given size was not the same as the actual
> file size for /dev/hdd, and ended. I delved into the code and ran a few
> experiments: the problem appears to be that the code uses the lseek
> system call to determine the file size, and this reports 0 for the
> /dev/hdd device special file.
>
> I tried using a raw device grafted onto the /dev/hdd device, but same
> result.
>
> Has anyone else tried this under Linux and, if so, have they got it to
> work? (If not, do we have a route towards getting it to work?)
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php--
Gerald L. [EMAIL PROTECTED]


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to