LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-02-2009, 05:18 AM   #16
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928

Of course you can have character devices. But that has
nothing to do with partitioning. You partition using
fdisk, then use the tool 'raw' to create a device node
that points of the partitions you want to access as
a raw device.



Cheers,
Tink
 
Old 06-03-2009, 03:22 AM   #17
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
Following the instruction of here: http://forums11.itrc.hp.com/service/...hreadId=712867 and here: http://www.walkernews.net/2007/07/02...-in-3-minutes/

I have successfully a few partitions of 8GB but it seems that they are in bloc mode not character mode.

[root@herculetest /]# vgdisplay
--- Volume group ---
VG Name vg0
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 11
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 10
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 799.98 GB
PE Size 16.00 MB
Total PE 51199
Alloc PE / Size 5060 / 79.06 GB
Free PE / Size 46139 / 720.92 GB
VG UUID eMdMWX-Wumi-rdoO-4zXT-GQcA-HklV-47aXeX

--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 136.00 GB
PE Size 32.00 MB
Total PE 4352
Alloc PE / Size 4352 / 136.00 GB
Free PE / Size 0 / 0
VG UUID kDWc0Q-9HEw-Rgwg-Bonf-z6Yt-FRQ1-1LK0tq





[root@herculetest /]# lvdisplay
--- Logical volume ---
LV Name /dev/vg0/space01
VG Name vg0
LV UUID Wnzajt-jeMY-nXFW-Y5B1-FAV5-xcp1-MwAmPl
LV Write Access read/write
LV Status available
# open 0
LV Size 7.91 GB
Current LE 506
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:2

--- Logical volume ---
LV Name /dev/vg0/space02
VG Name vg0
LV UUID SRVQeK-v3Hv-kcDL-jVsd-nM0T-WH7r-NevHB9
LV Write Access read/write
LV Status available
# open 0
LV Size 7.91 GB
Current LE 506
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:3

--- Logical volume ---
LV Name /dev/vg0/space03
VG Name vg0
LV UUID Nvd2SS-0wRo-bPal-7ZL9-Fs2F-7Vhj-Aig0j8
LV Write Access read/write
LV Status available
# open 0
LV Size 7.91 GB
Current LE 506
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:4

--- Logical volume ---
LV Name /dev/vg0/space04
VG Name vg0
LV UUID t75WPe-31l7-OOmd-648m-rHl0-fFTP-Q2zY4T
LV Write Access read/write
LV Status available
# open 0
LV Size 7.91 GB
Current LE 506
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:5

--- Logical volume ---
LV Name /dev/vg0/space05
VG Name vg0
LV UUID KCymqR-KvpE-fLHA-f2xK-2bgv-OZBo-n6YTjN
LV Write Access read/write
LV Status available
# open 0
LV Size 7.91 GB
Current LE 506
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:6

--- Logical volume ---
LV Name /dev/vg0/space06
VG Name vg0
LV UUID PDSkzM-aFBu-BhFO-Yn8w-1RcW-5d3k-JkfYP0
LV Write Access read/write
LV Status available
# open 0
LV Size 7.91 GB
Current LE 506
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:7

--- Logical volume ---
LV Name /dev/vg0/space07
VG Name vg0
LV UUID vpWPOZ-NaUw-di6A-zXEx-PQth-XLd2-yvKqB3
LV Write Access read/write
LV Status available
# open 0
LV Size 7.91 GB
Current LE 506
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:8

--- Logical volume ---
LV Name /dev/vg0/space08
VG Name vg0
LV UUID EZY53m-TA9w-Xl2x-KJu2-8jrS-72Nr-21JfkW
LV Write Access read/write
LV Status available
# open 0
LV Size 7.91 GB
Current LE 506
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:9

--- Logical volume ---
LV Name /dev/vg0/space09
VG Name vg0
LV UUID i2MlZe-56eO-4AP9-GzEy-udBS-QFQX-VzjdzJ
LV Write Access read/write
LV Status available
# open 0
LV Size 7.91 GB
Current LE 506
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:10

--- Logical volume ---
LV Name /dev/vg0/space10
VG Name vg0
LV UUID xxgGmW-CcQy-nSSz-KV1X-a9eX-xYep-EYtn4D
LV Write Access read/write
LV Status available
# open 0
LV Size 7.91 GB
Current LE 506
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:11

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID 6rktp1-AvE2-G2ty-qsTl-ql7t-8QX3-VXht1t
LV Write Access read/write
LV Status available
# open 1
LV Size 134.06 GB
Current LE 4290
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID mVVDVc-3NKS-DaP0-AZ7f-eyoA-ADuQ-FdierN
LV Write Access read/write
LV Status available
# open 1
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1



[root@herculetest /]#



[root@herculetest /]# cd dev/vg0/
[root@herculetest vg0]# ls -l
total 0
lrwxrwxrwx 1 root root 23 Jun 3 10:06 space01 -> /dev/mapper/vg0-space01
lrwxrwxrwx 1 root root 23 Jun 3 10:06 space02 -> /dev/mapper/vg0-space02
lrwxrwxrwx 1 root root 23 Jun 3 10:06 space03 -> /dev/mapper/vg0-space03
lrwxrwxrwx 1 root root 23 Jun 3 10:06 space04 -> /dev/mapper/vg0-space04
lrwxrwxrwx 1 root root 23 Jun 3 10:06 space05 -> /dev/mapper/vg0-space05
lrwxrwxrwx 1 root root 23 Jun 3 10:06 space06 -> /dev/mapper/vg0-space06
lrwxrwxrwx 1 root root 23 Jun 3 10:06 space07 -> /dev/mapper/vg0-space07
lrwxrwxrwx 1 root root 23 Jun 3 10:06 space08 -> /dev/mapper/vg0-space08
lrwxrwxrwx 1 root root 23 Jun 3 10:06 space09 -> /dev/mapper/vg0-space09
lrwxrwxrwx 1 root root 23 Jun 3 10:06 space10 -> /dev/mapper/vg0-space10
[root@herculetest vg0]#


[root@herculetest vg0]# cd /dev/mapper/
[root@herculetest mapper]# ls -l
total 0
crw------- 1 root root 10, 63 Jun 2 10:55 control
brw-rw---- 1 root disk 253, 2 Jun 3 10:06 vg0-space01
brw-rw---- 1 root disk 253, 3 Jun 3 10:06 vg0-space02
brw-rw---- 1 root disk 253, 4 Jun 3 10:06 vg0-space03
brw-rw---- 1 root disk 253, 5 Jun 3 10:06 vg0-space04
brw-rw---- 1 root disk 253, 6 Jun 3 10:06 vg0-space05
brw-rw---- 1 root disk 253, 7 Jun 3 10:06 vg0-space06
brw-rw---- 1 root disk 253, 8 Jun 3 10:06 vg0-space07
brw-rw---- 1 root disk 253, 9 Jun 3 10:06 vg0-space08
brw-rw---- 1 root disk 253, 10 Jun 3 10:06 vg0-space09
brw-rw---- 1 root disk 253, 11 Jun 3 10:06 vg0-space10
brw-rw---- 1 root disk 253, 0 Jun 2 10:55 VolGroup00-LogVol00
brw-rw---- 1 root disk 253, 1 Jun 2 10:55 VolGroup00-LogVol01
[root@herculetest mapper]#


And here's how it goes:

crw------- 1 root root 10, 63 Jun 2 10:55 control
brw-rw---- 1 root disk 253, 2 Jun 3 10:06 vg0-space01
brw-rw---- 1 root disk 253, 3 Jun 3 10:06 vg0-space02
brw-rw---- 1 root disk 253, 4 Jun 3 10:06 vg0-space03
brw-rw---- 1 root disk 253, 5 Jun 3 10:06 vg0-space04
brw-rw---- 1 root disk 253, 6 Jun 3 10:06 vg0-space05
brw-rw---- 1 root disk 253, 7 Jun 3 10:06 vg0-space06
brw-rw---- 1 root disk 253, 8 Jun 3 10:06 vg0-space07
brw-rw---- 1 root disk 253, 9 Jun 3 10:06 vg0-space08
brw-rw---- 1 root disk 253, 10 Jun 3 10:06 vg0-space09
brw-rw---- 1 root disk 253, 11 Jun 3 10:06 vg0-space10
brw-rw---- 1 root disk 253, 12 Jun 3 10:28 vg0-space11
crw-rw---- 1 root root 4, 64 Jun 3 11:01 vg0-space12
crw-rw---- 1 root root 4, 64 Jun 3 11:01 vg0-space13
brw-rw---- 1 root disk 253, 0 Jun 2 10:55 VolGroup00-LogVol00
brw-rw---- 1 root disk 253, 1 Jun 2 10:55 VolGroup00-LogVol01
[root@herculetest mapper]# mknod -m 0660 /dev/mapper/vg0-space14 c 4 64
[root@herculetest mapper]# lvcreate -L 8096M -n space14 vg0
A non-block device file at '/dev/mapper/vg0-space14' is already present
/dev/vg0/space14: not found: device not cleared
Logical volume "space14" created
[root@herculetest mapper]#
[root@herculetest mapper]# ls -l
total 0
crw------- 1 root root 10, 63 Jun 2 10:55 control
brw-rw---- 1 root disk 253, 2 Jun 3 10:06 vg0-space01
brw-rw---- 1 root disk 253, 3 Jun 3 10:06 vg0-space02
brw-rw---- 1 root disk 253, 4 Jun 3 10:06 vg0-space03
brw-rw---- 1 root disk 253, 5 Jun 3 10:06 vg0-space04
brw-rw---- 1 root disk 253, 6 Jun 3 10:06 vg0-space05
brw-rw---- 1 root disk 253, 7 Jun 3 10:06 vg0-space06
brw-rw---- 1 root disk 253, 8 Jun 3 10:06 vg0-space07
brw-rw---- 1 root disk 253, 9 Jun 3 10:06 vg0-space08
brw-rw---- 1 root disk 253, 10 Jun 3 10:06 vg0-space09
brw-rw---- 1 root disk 253, 11 Jun 3 10:06 vg0-space10
brw-rw---- 1 root disk 253, 12 Jun 3 10:28 vg0-space11
crw-rw---- 1 root root 4, 64 Jun 3 11:01 vg0-space12
crw-rw---- 1 root root 4, 64 Jun 3 11:01 vg0-space13
crw-rw---- 1 root root 4, 64 Jun 3 11:15 vg0-space14
brw-rw---- 1 root disk 253, 0 Jun 2 10:55 VolGroup00-LogVol00
brw-rw---- 1 root disk 253, 1 Jun 2 10:55 VolGroup00-LogVol01
[root@herculetest mapper]#

I have created a logical volume of 8GB in character mode but I don't know if it's correct created. I see it's in character mode if I create it this way. But if I first create the 8GB partition and then do the mknod -m 0660 /dev/mapper/vg0-spacexx c 4 64 command it tells me that already exist.

[root@herculetest mapper]# lvcreate -L 8096M -n space15 vg0
Logical volume "space15" created
[root@herculetest mapper]# mknod -m 0660 /dev/mapper/vg0-space15 c 4 64
mknod: `/dev/mapper/vg0-space15': File exists
[root@herculetest mapper]#

so therefor i first do mknod -m 0660 /dev/mapper/vg0-space15 c 4 64 and then lvcreate -L 8096M -n space15 vg0

AM I doing right ? And what about the c 4 64 numbers ? I know they are minor and major number, but the minor/major number of what ? If the partition (logical volume) is 8GB what major/minor number should I use ?

Any advice would be great. I prefer profy advice too
 
Old 06-03-2009, 04:02 AM   #18
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
)) I think my head was gonna explode, ) I don't know why I did all that. I thought I needed to do them that way. Anyway, it seems that I only need to create the partitions using fdisk and then to bind them to raw devices in dev/raw/myrawcharacterdevices

Did I understand well ?
 
Old 06-03-2009, 04:22 AM   #19
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
Hmmm, I understand that I do need to use LVM so I can extend the partitions in case I want to do that.
Second, I need to use symbolic links to access the partitions, this way if the disk has error I can handle the symbolic links better rather than the disk itself. (Informix says it's recommended to use symbolic links).

Last edited by ytd; 06-03-2009 at 04:26 AM.
 
Old 06-03-2009, 03:22 PM   #20
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I don't know about symlinks, but the raw device bit is essential.
 
Old 06-09-2009, 06:54 AM   #21
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
Uhmm, I have created the spaces in dev but after reboot the machine they are gone. I have:



[root@herculetest ~]# cd /dev/vg0/
[root@herculetest vg0]# ls
space01 space11 space22 space32 space42 space52 space62 space72 space82
space02 space12 space23 space33 space43 space53 space63 space73 space83
space03 space14 space24 space34 space44 space54 space64 space74 space84
space04 space15 space25 space35 space45 space55 space65 space75 space85
space05 space16 space26 space36 space46 space56 space66 space76 space86
space06 space17 space27 space37 space47 space57 space67 space77 space87
space07 space18 space28 space38 space48 space58 space68 space78 space88
space08 space19 space29 space39 space49 space59 space69 space79 space89
space09 space20 space30 space40 space50 space60 space70 space80 space90
space10 space21 space31 space41 space51 space61 space71 space81 space99
[root@herculetest vg0]#

80 vg of 8GB and 10 of 16GB

Then I use: raw -q /dev/raw/raw01/ /dev/vg0/space01
raw -q /dev/raw/raw02/ /dev/vg0/space02
raw -q /dev/raw/raw0x/ /dev/vg0/space0x etc...

Then I create the symbolic lynks from raw to dev. Problem is that after I reboot the machine the devices in /dev/raw/rawx are gone. Someone told me I need to create them with raw -q / raw -qa in order to "freeze" them but id dosen't work.

Any hints ?
Thanks
 
Old 06-10-2009, 01:58 AM   #22
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
Ok, i've found my problem here: http://www.held.org.il/blog/?p=32

I'm gonna do some tests and if it won't work, I will come back here.
 
Old 06-10-2009, 04:06 AM   #23
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
[root@herculetest ~]#
[root@herculetest ~]# fdisk -l

Disk /dev/sda: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 17769 142625070 8e Linux LVM

Disk /dev/sdb: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdc: 858.9 GB, 858993459200 bytes
255 heads, 63 sectors/track, 104433 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 104433 838858041 8e Linux LVM
[root@herculetest ~]#




[root@herculetest ~]#
[root@herculetest ~]#
[root@herculetest ~]# cd /dev/vg0/
[root@herculetest vg0]# ls -l
total 0
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space01 -> /dev/mapper/vg0-space01
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space02 -> /dev/mapper/vg0-space02
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space03 -> /dev/mapper/vg0-space03
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space04 -> /dev/mapper/vg0-space04
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space05 -> /dev/mapper/vg0-space05
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space06 -> /dev/mapper/vg0-space06
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space07 -> /dev/mapper/vg0-space07
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space08 -> /dev/mapper/vg0-space08
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space09 -> /dev/mapper/vg0-space09
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space10 -> /dev/mapper/vg0-space10
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space11 -> /dev/mapper/vg0-space11
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space12 -> /dev/mapper/vg0-space12
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space13 -> /dev/mapper/vg0-space13
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space14 -> /dev/mapper/vg0-space14
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space15 -> /dev/mapper/vg0-space15
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space16 -> /dev/mapper/vg0-space16
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space17 -> /dev/mapper/vg0-space17
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space18 -> /dev/mapper/vg0-space18
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space19 -> /dev/mapper/vg0-space19
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space20 -> /dev/mapper/vg0-space20
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space21 -> /dev/mapper/vg0-space21
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space22 -> /dev/mapper/vg0-space22
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space23 -> /dev/mapper/vg0-space23
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space24 -> /dev/mapper/vg0-space24
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space25 -> /dev/mapper/vg0-space25
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space26 -> /dev/mapper/vg0-space26
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space27 -> /dev/mapper/vg0-space27
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space28 -> /dev/mapper/vg0-space28
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space29 -> /dev/mapper/vg0-space29
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space30 -> /dev/mapper/vg0-space30
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space31 -> /dev/mapper/vg0-space31
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space32 -> /dev/mapper/vg0-space32
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space33 -> /dev/mapper/vg0-space33
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space34 -> /dev/mapper/vg0-space34
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space35 -> /dev/mapper/vg0-space35
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space36 -> /dev/mapper/vg0-space36
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space37 -> /dev/mapper/vg0-space37
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space38 -> /dev/mapper/vg0-space38
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space39 -> /dev/mapper/vg0-space39
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space40 -> /dev/mapper/vg0-space40
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space41 -> /dev/mapper/vg0-space41
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space42 -> /dev/mapper/vg0-space42
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space43 -> /dev/mapper/vg0-space43
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space44 -> /dev/mapper/vg0-space44
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space45 -> /dev/mapper/vg0-space45
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space46 -> /dev/mapper/vg0-space46
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space47 -> /dev/mapper/vg0-space47
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space48 -> /dev/mapper/vg0-space48
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space49 -> /dev/mapper/vg0-space49
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space50 -> /dev/mapper/vg0-space50
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space51 -> /dev/mapper/vg0-space51
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space52 -> /dev/mapper/vg0-space52
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space53 -> /dev/mapper/vg0-space53
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space54 -> /dev/mapper/vg0-space54
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space55 -> /dev/mapper/vg0-space55
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space56 -> /dev/mapper/vg0-space56
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space57 -> /dev/mapper/vg0-space57
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space58 -> /dev/mapper/vg0-space58
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space59 -> /dev/mapper/vg0-space59
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space60 -> /dev/mapper/vg0-space60
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space61 -> /dev/mapper/vg0-space61
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space62 -> /dev/mapper/vg0-space62
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space63 -> /dev/mapper/vg0-space63
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space64 -> /dev/mapper/vg0-space64
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space65 -> /dev/mapper/vg0-space65
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space66 -> /dev/mapper/vg0-space66
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space67 -> /dev/mapper/vg0-space67
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space68 -> /dev/mapper/vg0-space68
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space69 -> /dev/mapper/vg0-space69
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space70 -> /dev/mapper/vg0-space70
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space71 -> /dev/mapper/vg0-space71
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space72 -> /dev/mapper/vg0-space72
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space73 -> /dev/mapper/vg0-space73
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space74 -> /dev/mapper/vg0-space74
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space75 -> /dev/mapper/vg0-space75
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space76 -> /dev/mapper/vg0-space76
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space77 -> /dev/mapper/vg0-space77
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space78 -> /dev/mapper/vg0-space78
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space79 -> /dev/mapper/vg0-space79
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space80 -> /dev/mapper/vg0-space80
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space81 -> /dev/mapper/vg0-space81
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space82 -> /dev/mapper/vg0-space82
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space83 -> /dev/mapper/vg0-space83
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space84 -> /dev/mapper/vg0-space84
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space85 -> /dev/mapper/vg0-space85
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space86 -> /dev/mapper/vg0-space86
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space87 -> /dev/mapper/vg0-space87
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space88 -> /dev/mapper/vg0-space88
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space89 -> /dev/mapper/vg0-space89
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space90 -> /dev/mapper/vg0-space90
lrwxrwxrwx 1 root root 23 Jun 10 11:39 space99 -> /dev/mapper/vg0-space99


I have one question. Reading this article: http://www.held.org.il/blog/?p=32 I don't know what I really should do.

In /etc/udev/rules.d/60-raw.rules

should I write:

Example 1

ACTION=="add",KERNEL=="sdc1",RUN+="/bin/raw /dev/raw/raw01 %N"
ACTION=="add",KERNEL=="sdc1",RUN+="/bin/raw /dev/raw/raw02 %N"
ACTION=="add",KERNEL=="sdc1",RUN+="/bin/raw /dev/raw/raw0x %N"

or

Example 2

ACTION=="add",KERNEL=="space01",RUN+="/bin/raw /dev/raw/raw01 %N"
ACTION=="add",KERNEL=="space02",RUN+="/bin/raw /dev/raw/raw02 %N"
ACTION=="add",KERNEL=="space0x",RUN+="/bin/raw /dev/raw/raw0x %N"

I asked this question because if I write with space0x instead of sdc1 like in example 2, after I reboot the machine I don't longer see them in /dev/raw (it's nothing, it's all gone - after reboot)

If i write like in example 1 after reboot they are still there, which is good but I don't know if it's right to do it like that.


sdc1 is the 850GB volume in which I have created the spaces (80 of 8GB and 10 of 16GB)

Last edited by ytd; 06-10-2009 at 04:09 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC6 - Starts In Character Mode (Fc4 Worked fine) SteveT Fedora - Installation 4 02-12-2007 01:54 AM
how to change test sizze or character size in run level 3 in text mode? betrussell23 Linux - Newbie 1 10-13-2006 04:23 AM
Can you set a screen timeout in character mode taborekle Linux - Security 4 04-28-2006 01:28 PM
How can I change display mode from character mode to graph mode wuzhong Linux - Hardware 1 08-08-2004 09:36 AM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration