LVM Question

Allen, Jack Jack.Allen at McKesson.com
Wed Sep 21 18:35:44 UTC 2005



-----Original Message-----
From: Smith, Albert [mailto:Albert.Smith at genexservices.com] 
Sent: Wednesday, September 21, 2005 11:04 AM
To: General Red Hat Linux discussion list
Subject: RE: LVM Question


> -----Original Message-----
> From: redhat-list-bounces at redhat.com 
> [mailto:redhat-list-bounces at redhat.com] On Behalf Of Allen, Jack
> Sent: Tuesday, September 20, 2005 6:18 PM
> To: 'Redhat-list at redhat.com'
> Subject: LVM Question
> 
>         I have a system connected to a SAN via Fibre Channel 
> interface.
> The system sees 3 disk sdb, sdc and sdd. I put them in a 
> volume group and then allocated some logical volumes. If I 
> use the logical volume to read and write to directly for my 
> application, if there is an error on a write, I assume the 
> write system call will return an error. Or does the write 
> give a good return value after putting the data in some 
> system buffer to be written later? Then is the write of the 
> system buffer fails later, my program would not know.
> 
> Thanks:
> Jack Allen 
> 
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 
> 

It sounds like you want to write directly to the raw lvol and not to a
cooked filesystem. Is this correct?. If that's the case I would make
sure you have async. I/O (AIO) enabled and installed this is usually
managed by the kernel. If there is a write failure to the raw lvol a
message should be dumped to the console and to your messages file also.


Albert Smith
Sr. Unix Systems Administrator
HPCSA, RHCT  
Genex Services
440 E. Swedesford Rd.
Wayne, PA 19087
albert.smith at genexservices.com
(610) 964-5154

================
Correct I want to read and write directly to the logical volume, there will
be NO file system. I need the application to block on the write until the
data is truly on the disk. Therefore I don't see how async I/O will help. I
had opened the logical volume, which is a block device as /dev/vg00/data.vol
using the O_SYNC option. The application was running and not reporting any
errors, but the messages file had lots of SCSI errors. When the data was
checked some things had not got written to the disk, the SCSI errors. But
again the return value form the write system call indicated there were no
problems.

Thanks:
	Jack Allen




More information about the redhat-list mailing list