Sponsored Content
Full Discussion: raw device in Linux
Top Forums UNIX for Advanced & Expert Users raw device in Linux Post 302237850 by bfay on Thursday 18th of September 2008 01:55:35 PM
Old 09-18-2008
raw device in Linux

Hello group,

Is it possible to use partition on a disk as a raw device? I have a LUN on a SAN which I would like to partition and use those partitions as raw device.

If it is feasable, how do I bind them to a device?

For example, say sdd has 3 partitions on it, sdd1, sdd2 and sdd3. Can I bind them in the following manner:

raw /dev/raw/raw1 /dev/sdd1
raw /dev/raw/raw2 /dev/sdd2
raw /dev/raw/raw3 /dev/sdd3


Thanks in advance,
Bernard
 

9 More Discussions You Might Find Interesting

1. AIX

Logical volume to raw device

Hy I have several logical volumes that are turned into raw devices used by Informix DB. I would like to add some more. In /dev directory i see logical volumes as block files: lv_name1, lv_name2 ... and i see raw devices defined as character files: rlv_name1, rlv_name2 ... As i see,... (5 Replies)
Discussion started by: veccinho
5 Replies

2. Solaris

Increasing Raw device Sun Cluster 3.0

Hi All , I would like to know the procedure for increasing shared volume space in sun cluster . Currently the configuration is like these . Main stripe oradb1/d91 2 1 /dev/did/rdsk/d35s0 1 /dev/did/rdsk/d36s0 =Total 49 Gb oradb1/d94 -p oradb1/d91 -o 88080480 -b 14680064 ==Total 7 GB... (4 Replies)
Discussion started by: sahil_shine
4 Replies

3. AIX

LVM & Raw device i/o comparison

Please consider this a question about basics&best practices. On AIX 5.3 system, three raw physical volumes are defined from storage. While doing a read with command dd from the raw device, the speed rate is 250Mb/s. Then, it gets complex when I define these three pv's to an lv of type raw. Doing... (4 Replies)
Discussion started by: royalliege
4 Replies

4. Solaris

Making Raw Device

Hi, I am using Sun Solaris 10 (Sparc 64 bit), I have a meta device /dev/dsk/emcpower26a mounting on /u01. I want to make this metadeice as raw device. Need solaris command to remove file system and make it as raw device ?. Is there any solaris command to check raw devices ?. Thanks (1 Reply)
Discussion started by: zeeshan047
1 Replies

5. Solaris

zones: Use a zpool or mount as a raw device?

Hi, I need to create 4 zones. I have an array with a RAID5 volume. I have exported 4 LUNS from the array. Now my host see the 4 LUNS as raw devices. I am partitioning each LUN using format then mounting each slice on the global zone. Then I am using each slice as a file system for my non... (3 Replies)
Discussion started by: general_lee
3 Replies

6. Red Hat

linux 8e vs raw disk

Hi All, Hope someone can help me with this. I have noticed that on some of the servers i am currently administering there is a difference in the setup of some of the LVM disks. Some of the disks have been created by SN disk allocated, disk partitioned using type 8e over the entire disk,... (2 Replies)
Discussion started by: Tommyk
2 Replies

7. Solaris

How to find used space on RAW device?

Hi, I'm trying to find out how to see used space on RAW device. I tried with prtvtoc -f RAWdevice but for 3 different device I'm getting the same FREE_SIZE which look a bit impossible. root@zg8cscfb1> prtvtoc -f /dev/md/redodg/rdsk/d300 FREE_START=0 FREE_SIZE=20352 FREE_COUNT=1 FREE_PART=... (2 Replies)
Discussion started by: MarioT
2 Replies

8. UNIX for Dummies Questions & Answers

How to start a raw device?

HI, I want to start Oracle on UNIX machine, now the , it is failing to startup because it cannot identify a raw device. Actually machine was rebooted and now we need to mount the devices, but i just want to know the command/way to mount or rather start/init a raw device. Please let me know. (2 Replies)
Discussion started by: Onkar Banerjee
2 Replies

9. Red Hat

Raw device/multipath details

Hi, How to find the raw device/multipath details of the LUN used by the diskgroups of the database. file system type -- ASM Oracle -- 11.2.0.3.0 OS -- Linux This is RAC database. Regards, Maddy (2 Replies)
Discussion started by: Maddy123
2 Replies
CFDISK(8)							 GNU fdisk Manual							 CFDISK(8)

NAME
GNU fdisk, lfdisk, gfdisk - manipulate partition tables on a hard drive SYNOPSIS
fdisk [options] [device] DESCRIPTION
fdisk is a disk partition manipulation program, which allows you to create, destroy, resize, move and copy partitions on a hard drive using a menu-driven interface. It is useful for organising the disk space on a new drive, reorganising an old drive, creating space for new oper- ating systems, and copying data to new hard disks. For a list of the supported partition types, see the --list-partition-types option below. It comes in two variants, gfdisk and lfdisk. Lfdisk aims to resemble Linux fdisk 2.12, while gfdisk supports more advanced disk operations, like resizing the filesystem, moving and copying partitions. When starting fdisk, the default is to run gfdisk. OPTIONS
-h, --help displays a help message. -v, --version displays the program's version. -L, --linux-fdisk turns on Linux fdisk compatibility mode. This is the same as running lfdisk. -G, --gnu-fdisk turns off Linux fdisk compatibility mode. -i, --interactive where necessary, prompts for user intervention. -p, --script never prompts for user intervention. -l, --list lists the partition table on the specified device and exits. If there is no device specified, lists the partition tables on all detected devices. -r, --raw-list displays a hex dump of the partition table of the disk, similar to the way Linux fdisk displays the raw data in the partition table. -u, --sector-units use sectors, instead of cylinders for a default unit. -s, --size=DEVICE prints the size of the partition on DEVICE is printed on the standard output. -t, --list-partition-types displays a list of supported partition types and features. The following options are available only to lfdisk. -b, --sector-size=SIZE Specify the sector size of the disk. Valid values are 512, 1024 and 2048. Should be used only on older kernels, which don't guess the correct sector size. -C, --cylinders=CYLINDERS Specify the number of cylinders of the disk. Currently does nothing, it is left for Linux fdisk compatibility. -H, --heads=HEADS Specify the number of heads of the disk. Reasonable values are 255 or 16. -S, --sectors=SECTORS Specify the number of sectors per track. A reasonable value is 63. BUGS
Before editing a BSD disklabel, the partition with the disklabel should already exist on the disk and be detected by the OS. If you have created a BSD-type partition, you need to write the changes to the disk. If fdisk fails to notify the OS about the changes in partition ta- ble, you need to restart your computer. As fdisk tries to guess the device holding the BSD disklabel, it might fail to edit it at all, even if the OS has detected it. In this case you are adviced to simply open the device with fdisk directly. It is possible that it doesn't work on some operating systems. Getting the size of a partition with -s might fail, if fdisk fails to guess the disk device, for the same reasons as with the previous bug. SEE ALSO
mkfs(8), cfdisk(8), parted(8) The fdisk program is fully documented in the info(1) format GNU fdisk User Manual manual. fdisk 18 August, 2006 CFDISK(8)
All times are GMT -4. The time now is 12:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy