Save 
Join IIUG
 for   
 

Informix News
9 Apr 12 - Mastering Data Management - Upping the Informix Ante: Advanced Data Tools... Read
22 Mar 12 - developerWorks - Optimizing Informix database access... Read
14 Mar 12 - BernieSpang.com - International Informix User Group set to meet in San Diego... Read
1 Mar 12 - IBM Data Management - IIUG Heads West for 2012 - Get ready for sun and sand in San Diego... Read
1 Mar 12 - IBM Data Management - Running Informix on Solid-State Drives.Speed Up Database Access... Read
26 Feb 12 - BernieSpan.com - Better results, lower cost for a broad set of new IBM clients and partners... Read
24 Feb 12 - developerWorks - Informix Warehouse Accelerator: Continuous Acceleration during Data Refresh... Read
6 Feb 12 - PRLOG - Informix port delivers unlimited database scalability for popular SaaS application ... Read
2 Feb 12 - developerWorks - Loading data with the IBM Informix TimeSeries Plug-in for Data Studio... Read
1 Feb 12 - developerWorks - 100 Tech Tips, #47: Log-in to Fix Central... Read
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter


[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

Linux-Informix Forum

Re: Raw devices how-to

Posted By: SEAN DURITY
Date: Friday, 20 September 2002, at 11:59 a.m.

In Response To: Raw devices how-to (Sean R. Durity)

The document below was prepared by Damion Reeves, who did not want to post his e-mail address, because he is quite busy. Thanks Damion for a thorough document. I am upgrading a test server to 9.30 and will try to use raw devices.

Creating and Configuring RAW devices with RedHat Linux 7.3 and IDS 9.2x

RedHat Linux and RAW device compatibility:

RAW devices are supported on RedHat Linux 6.0 - 7.3 (the kernel version I used was 2.4.18).

Informix Dynamic Server and RAW device compatibility:

The Informix Dynamic Server Release Notes for IIF.2000 and 9.21.UC3-1 (found in $INFORMIXDIR/release/en_us/0333/) confirms RAW devices are supported.

Note: Unfortunately RedHat Linux 7.3 does not yet support Kernel Asynchronous I/O (KAIO), so support for RAW devices with KAIO is not supported.

Configuration Steps:

During the RedHat installation process you must leave some un-allocated disk space. This is done using Disk Druid or fdisk during the RedHat installation process.

This un-allocated space cannot be mounted, and will be used as RAW chunks later.

After the RedHat installation process, as the superuser (root user) use fdisk to partition the RAW disk as follows:

fdisk /dev/hda

Note: hda represents the IDE hard drive where the un-allocated space was left. This could be hd for a secondary IDE drive, or sd for a SCSI drive.

When executing fdisk /dev/hda a display similar to the following should be shown:

Command (m for help): p

Disk /dev/hda: heads, sectors, cylinder

Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 33 265041 83 Linux
/dev/hda2 34 555 4192965 83 Linux
/dev/hda3 556 1077 4192965 83 Linux
/dev/hda4 1078 1599 4192933 83 Linux

Now create a new partition by chosing the "n" option.

You should be prompted for the starting cylinder and the ending cylinder. Enter the ending cylinder option, or the size of the RAW partition in Mb (eg for a 2048Mb partition use +2048M).

Display the partition table again by chosing the ?p? option. This should show something similar to the following (with the newly added RAW partition shown):

Device Boot Start End Blocks Id System
/dev/hda1 * 1 33 265041 83 Linux
/dev/hda2 34 555 4192965 83 Linux
/dev/hda3 556 1077 4192965 83 Linux
/dev/hda4 1078 1599 4192933 83 Linux
/dev/hda8 2253 3647 2104483 83 Linux

Now exit and write the new partition table by choosing "w".

At this point MAKE SURE YOU REBOOT the system to ensure the new partition table is made active.

Once the system has been rebooted you need to create the raw devices at the Linux level.

Firstly, make sure your IDS/SCIS devices exist:

ls -l /dev/hda[x-y] or
ls -l /dev/hdb[x-y] or
ls -l /dev/sda[x-y} or
ls -l /dev/sdb[x-y]

Where x, y are integers representing your device names for IDS or SCSI hard disks.

eg ls -l /dev/hda[1-8] for the first IDE drive in your system should show output similar to the following:

brw-rw---- 1 root disk 3, 69 May 5 1998 /dev/hda1
brw-rw---- 1 root disk 3, 69 May 5 1998 /dev/hda2
brw-rw---- 1 root disk 3, 69 May 5 1998 /dev/hda3
brw-rw---- 1 root disk 3, 69 May 5 1998 /dev/hda4
brw-rw---- 1 root disk 3, 69 May 5 1998 /dev/hda8

You now need to create the RAW devices using the following command, but take note of which devices have already been assigned to formatted (ext3) filesystems.

raw /dev/raw/raw1 /dev/hda[x] or
raw /dev/raw/raw1 /dev/hdb[x] or
raw /dev/raw/raw1 /dev/sda[x] or
raw /dev/raw/raw1 /dev/sdb[x]

In my example I used:

raw /dev/raw/raw1 /dev/hda8

You will need to change the owner, group and permissions of the newly created RAW device to informix:informix if the RAW device is to be used as a dbspace/chunk within the Informix instance:

cd /dev/
chown informix:informix /dev/hda
chmod 666 /dev/h

cd /dev/raw
chown informix:informix /dev/raw/raw
chmod 666 /dev/raw/raw

In my example I used:

cd /dev/
chown informix:informix /dev/hda8
chmod 666 /dev/hda8

cd /dev/raw
chown informix:informix /dev/raw/raw1
chmod 666 /dev/raw/raw1

Now verify the devices are defined as RAW using:

raw -qa

This should show output similar to the following;

/dev/raw/raw : bound to major , minor

In my example the output showed:

/dev/raw/raw1: bound to major 3, minor 8

Now check the ownership and permission details of the RAW devices using:

ls -lrt /dev/raw/raw

In my example the command "raw -qa" shows a binding for the /dev/raw/raw1 device to the number major 3 and minor number 8 (/dev/hda8) device:

crw-rw-rw- 1 informix informix 162, 1 Oct 4 1999 /dev/raw/raw1

Now edit the /etc/sysconfig/rawdevices file and add an entry for each RAW device.

In my example I added:

/dev/raw/raw1 /dev/hda8

Re-boot the system again and then type "raw -qa" and you should see the RAW devices, and their major and minor numbers displayed.

Now to allow Informix Dynamic Server to use the RAW devices you simply need to create a link to point to the RAW device using:

ln -s /dev/raw/raw

In my example I used:

ln -s /dev/raw/raw1 /var/informix_raw_chunks/rootdbs

When setup of the RAW devices has been completed it is a simple case of using the Informix ?onmonitor? utility (or the vi text editor) to modify the configuration settings within the $INFORMIXDIR/etc/onconfig. file, then initialise your database instance for the first time.

After this step add/create any new/additional Informix dbspaces/chunks you require.

Messages In This Thread

  • Raw devices how-to
    Sean R. Durity -- Wednesday, 18 September 2002, at 3:26 p.m.
    • Re: Raw devices how-to
      SEAN DURITY -- Friday, 20 September 2002, at 11:59 a.m.

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

Linux-Informix Forum is maintained by Administrator with WebBBS 5.12.