Need to add a disk space to my cluster that is on SAN (/dev/dm-*)
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need to add a disk space to my cluster that is on SAN (/dev/dm-*)
Hello everyone, I just got those two linux redhat systems under my control and I am more of a Solaris guy and not linux amin so I have question on how to do this. I have few dysks setup, local and on SAN, I needed to add additional 200gb partition to a system that is on SAN and I am not sure how to do it so that I would not mess this up. Here is what I have:
==================
this is the disk that I added (I am most certain that is the one)
3600508b4001053690000400004030000
[size=200 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [prio=50][active]
\_ 1:0:0:5 sdg 8:96 [active][ready]
when I run fdisk -l I get the following output:
[root@hog8 etc]# fdisk -l
Disk /dev/sda: 72.9 GB, 72999763968 bytes
255 heads, 63 sectors/track, 8875 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 8875 71184015 8e Linux LVM
Disk /dev/sdc: 215.8 GB, 215822106624 bytes
255 heads, 63 sectors/track, 26238 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sdd: 216.8 GB, 216895848448 bytes
255 heads, 63 sectors/track, 26369 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdd doesn't contain a valid partition table
Disk /dev/sde: 4294 MB, 4294967296 bytes
133 heads, 62 sectors/track, 1017 cylinders
Units = cylinders of 8246 * 512 = 4221952 bytes
Disk /dev/sde doesn't contain a valid partition table
Disk /dev/sdf: 21.4 GB, 21474836480 bytes
64 heads, 32 sectors/track, 20480 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk /dev/sdf doesn't contain a valid partition table
Disk /dev/sdg: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdg doesn't contain a valid partition table
[root@hog8 etc]#
is /dev/sdg the disk that I added? how can I be sure that is the disk? If that is the disk how can I make it to look like /dev/dm-9 ?
when I look at /dev directory I already do see:
[root@hog8 etc]# ls -la /dev/dm*
brw-r----- 1 root root 253, 0 Dec 29 09:56 /dev/dm-0
brw-r----- 1 root root 253, 1 Dec 29 09:56 /dev/dm-1
brw-r----- 1 root root 253, 10 Dec 29 15:04 /dev/dm-10
brw-r----- 1 root root 253, 2 Dec 29 09:56 /dev/dm-2
brw-r----- 1 root root 253, 3 Dec 29 09:56 /dev/dm-3
brw-r----- 1 root root 253, 4 Dec 29 09:56 /dev/dm-4
brw-r----- 1 root root 253, 5 Dec 29 14:57 /dev/dm-5
brw-r----- 1 root root 253, 6 Dec 29 14:57 /dev/dm-6
brw-r----- 1 root root 253, 7 Dec 29 14:57 /dev/dm-7
brw-r----- 1 root root 253, 8 Dec 29 14:57 /dev/dm-8
brw-r----- 1 root root 253, 9 Dec 29 14:57 /dev/dm-9
does it mean its already created automatically?
My goal as I said is to create a partition and be able to mount it as /ora05 that is the 200GB partition from SAN.
when I do ls -la on /dev
[root@hog8 dev]# ls -la | more
total 192
drwxr-xr-x 11 root root 5240 Jan 2 14:49 .
drwxr-xr-x 34 root root 4096 Dec 29 14:57 ..
crw------- 1 root root 36, 8 Dec 29 09:56 arpd
lrwxrwxrwx 1 root root 3 Dec 29 09:56 cdrom -> hda
lrwxrwxrwx 1 root root 4 Dec 29 09:57 cdrom1 -> scd0
crw------- 1 root root 5, 1 Dec 29 14:57 console
lrwxrwxrwx 1 root root 11 Dec 29 09:56 core -> /proc/kcore
drwxr-xr-x 6 root root 120 Dec 29 09:56 cpu
lrwxrwxrwx 1 root root 9 Dec 29 09:56 cpu0 -> cpu/0/cpu
lrwxrwxrwx 1 root root 9 Dec 29 09:56 cpu1 -> cpu/1/cpu
lrwxrwxrwx 1 root root 9 Dec 29 09:56 cpu2 -> cpu/2/cpu
lrwxrwxrwx 1 root root 9 Dec 29 09:56 cpu3 -> cpu/3/cpu
crw------- 1 root root 10, 63 Dec 29 09:56 device-mapper
brw-r----- 1 root root 253, 0 Dec 29 09:56 dm-0
brw-r----- 1 root root 253, 1 Dec 29 09:56 dm-1
brw-r----- 1 root root 253, 10 Dec 29 15:04 dm-10
brw-r----- 1 root root 253, 2 Dec 29 09:56 dm-2
brw-r----- 1 root root 253, 3 Dec 29 09:56 dm-3
brw-r----- 1 root root 253, 4 Dec 29 09:56 dm-4
brw-r----- 1 root root 253, 5 Dec 29 14:57 dm-5
brw-r----- 1 root root 253, 6 Dec 29 14:57 dm-6
brw-r----- 1 root root 253, 7 Dec 29 14:57 dm-7
brw-r----- 1 root root 253, 8 Dec 29 14:57 dm-8
brw-r----- 1 root root 253, 9 Dec 29 14:57 dm-9
does it mean that dm-9 is the disk that I am looking for?
it seems like dmsetup ls does show this disk as:
3600508b4001053690000400004030000 (253, 9)
and multipath -ll does show it as:
3600508b4001053690000400004030000
[size=200 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [prio=50][active]
\_ 1:0:0:5 sdg 8:96 [active][ready]
so in my opinion new 200gb disk that I allocated on SAN is /dev/dm-9 and to create ocfs2 file system I can simply run:
mkfs.ocfs2 -b 4K -C 128K -N 8 -L /ora05 /dev/dm-9
Does it seem right? Any input on this is greatly appreciated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.