Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dell m4600 raid 0 setup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
moaxcp
n00b
n00b


Joined: 17 Dec 2014
Posts: 52
Location: Ashburn, VA USA

PostPosted: Sat Dec 20, 2014 6:53 pm    Post subject: Dell m4600 raid 0 setup Reply with quote

Hello, This is my first post so I hope it goes well. I'm trying to install gentoo on a dell precision m4600. This computer has 2 drives setup as raid0 and I would like to set it up with EFI boot, LVM on LUKS similar to this guide but without a usb stick: http://wiki.gentoo.org/wiki/EFI_Gentoo_End_to_End_Install/Preparing_the_LUKS-LVM_Filesystem_and_Boot_USB_Key. When I open gparted in System Rescue CD it lists /dev/mapper/isw_gjehhbdif_Volume0. This seems to be the raid volume but why is there /dev/sda, /dev/sdb?

Next, I created a partition of 256 mb for /boot. this shows as /dev/mapper/isw_gjehhbdif_Volume01 in gparted but it has Volume0p1 in fdisk -l. When I attempt to create a fat32 file system in gparted I get /dev/mapper/isw_gjehhbdif_Volume01: No such file or directory. When I use mkfs.vfat -F 32 /dev/mapper/isw_gjehhbdif_Volume0p1 I get the same message. My question to everyone is: What am I doing wrong here?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Sat Dec 20, 2014 8:10 pm    Post subject: Reply with quote

moaxcp,

Welcome to Gentoo.

I don't know what hardware you have in your Dell Precision m4600. The output of lspci would be useful.

That your raid volume appears as /dev/mapper/... hints that its a fakeraid of some sort.
Thats born out by the fact that you can still see the underlying sda and sdb.
Hardware raid would show a single sda and the components of the raid set would be invisible.

Fakeraid is a verybadthing, I'll leave you to google it to find out why.

Having looked at the Precision M4600 Spec Sheet As its a laptop it will be fakeraid.
Unless you want Windows and Linux to share the same raid set, fakeraid is to be avoided.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
moaxcp
n00b
n00b


Joined: 17 Dec 2014
Posts: 52
Location: Ashburn, VA USA

PostPosted: Sat Dec 20, 2014 8:57 pm    Post subject: Reply with quote

NeddySeagoon,

Thanks for the advice. Being a fakeraid makes a lot of sense. I'm going to have to change my plan then. Would it be possible to setup my home directory as an encrypted volume that spans both disks?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Sat Dec 20, 2014 9:27 pm    Post subject: Reply with quote

moaxcp,

Post the output of
Code:
fdisk -l
so we can see the sizes of your hard drives.

Provided you do not want in install Windows, you can use mdadm (kernel) raid. That allows you to mix and match raid levels on the same spindle set.
LVM can also stripe data without the help of raid. So yes, you can do all the things you wanted to without fakeraid
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
moaxcp
n00b
n00b


Joined: 17 Dec 2014
Posts: 52
Location: Ashburn, VA USA

PostPosted: Sun Dec 21, 2014 1:22 am    Post subject: Reply with quote

I do not plan on having windows at all.

Here you go!

fdisk -l

Code:
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/sdb: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/isw_bhddgiigjj_Volume0: 477 GiB, 512116391936 bytes, 1000227328 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 131072 bytes / 262144 bytes

Disk /dev/sdc: 961 MiB, 1007681536 bytes, 1968128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000c713e

Device    Boot Start       End Blocks  Id System
/dev/sdc1 *        1   1968127 984063+  c W95 FAT32 (LBA)


lspci

Code:
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b4)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b4)
00:1c.7 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 8 (rev b4)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM67 Express Chipset Family LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GF106GLM [Quadro 2000M] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF106 High Definition Audio Controller (rev a1)
03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)
0a:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
0b:00.0 FireWire (IEEE 1394): O2 Micro, Inc. OZ600 1394a-2000 Controller (rev 05)
0b:00.1 SD Host controller: O2 Micro, Inc. OZ600RJ1/OZ900RJ1 SD/MMC Card Reader Controller (rev 05)
0b:00.2 Mass storage controller: O2 Micro, Inc. OZ600 MS/xD Controller (rev 05)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Sun Dec 21, 2014 6:46 pm    Post subject: Reply with quote

moaxcp,

Code:
00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)


Code:
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Disk /dev/sdb: 238.5 GiB, 256060514304 bytes, 500118192 sectors


You presently have your SATA controller is its fakeraid mode, with two identical drives.
Fakeraid raids whole drives, kernel raid (mdadm) donates either partitions or whole dgives to raid sets.

Thus its normal to have boot as raid1, since with encryped everything else, you need something that the BIOS can read to get booted and unlock the encryped space.
I don't do encryped space ,so I'w not sure which order that layers should be used. I'm not sure if you can hibernate in an encrypted swap either.

Ignoring the encryyption for now.
Swicth your BIOS back to SATA mode, destroying your fake raid.
Partition your hard drives identically (both GPT and MSDOS work)
Make boot raid1
The kernel can manage two swaps, it will be used like raid0, if you chose to have swap outside LVM.
Make the two "everything else" partitions a raid set. Your call if you use raid0 or raid1. I assume you kow the risks with raid0.

This linkseems to cover it all except the raid.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
moaxcp
n00b
n00b


Joined: 17 Dec 2014
Posts: 52
Location: Ashburn, VA USA

PostPosted: Mon Dec 22, 2014 3:40 am    Post subject: Reply with quote

Ok I ran into some issue but I was able to fix them. I had to first delete the fake raid because it still showed up in System Rescue CD when I switched back to SATA mode. It also took me a few tries to get the raid setup.

I create a /dev/md0 with raid1 as the boot partition and a /dev/md1 for the os.

I was going to put the swap inside /dev/md1 if that is ok.

The guide I'm using show the swap inside the encrypted lvm partition. http://wiki.gentoo.org/wiki/EFI_Gentoo_End_to_End_Install/Preparing_the_LUKS-LVM_Filesystem_and_Boot_USB_Key#Creating_the_LVM_Structure_.28PV-.3EVG.3C-LVs.29_on_Top_of_LUKS

So far I have been able to create the efi partition and vfat file system on /dev/md0.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Mon Dec 22, 2014 5:58 pm    Post subject: Reply with quote

moaxcp,

swap inside LVM works, or I woldn't be here now.
The encryption is neither here not there.

I'm not sure that hibernate to encrypted swap will work as you need to unlock the encrypted space to restore the machine state.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
moaxcp
n00b
n00b


Joined: 17 Dec 2014
Posts: 52
Location: Ashburn, VA USA

PostPosted: Tue Dec 23, 2014 2:19 am    Post subject: Reply with quote

I think now that I have the raid setup I can follow this guide the rest of the way. http://wiki.gentoo.org/wiki/EFI_Gentoo_End_to_End_Install
The only difference is I'm not going to use a usb stick.
There is some documentation on how the swap works inside the encrypted lvm swap. It looks like real_resume is used as a kernel option along with others. On resume it asks for the passphrase. I'm going to try this for now. It will probably take me a week to get through it at the rate I am going. Thanks for the help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum