Gentoo Archives: gentoo-amd64

From: Mark Knecht <markknecht@×××××.com>
To: Gentoo AMD64 <gentoo-amd64@l.g.o>
Subject: [gentoo-amd64] Can initrd and/or RAID be disabled at boot?
Date: Tue, 25 Jun 2013 22:51:23
Message-Id: CAK2H+efZ=XkUv3YTgptrcdP07mGRvLwf4y8UYJhL9K-9bNJ68w@mail.gmail.com
1 Hi,
2 This is related to my thread from a few days ago about the
3 disappointing speed of my RAID6 root partition. The goal here is to
4 get the machine booting from an SSD so that I can free up my five hard
5 drives to play with.
6
7 SHORT SUMMATION: I've tried noninitrd and noraid in the kernel line of
8 grub.conf but I keep booting from old RAID instead of the new SSD.
9 What am I doing wrong?
10
11 What I've done so far:
12
13 1) I've removed everything relatively non-essential from the HDD-based
14 RAID6. It's still a lot of data (40GB) but my Windows VMs are moved to
15 an external USB drive as is all the video content which is on a second
16 USB drive so the remaining size is pretty manageable.
17
18 2) In looking around for ways to get / copied to the SDD I ran across
19 this Arch Linux page called "Full System Backup with rsync":
20
21 https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync
22
23 Basically it boiled down to just a straight-forward rsync command, but
24 what I liked about the description what that it can be done on a live
25 system. The command in the page is
26
27 rsync -aAXv /* /path/to/backup/folder
28 --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}
29
30 which I have modified to
31
32 rsync -avx /* /path/to/backup/folder
33 --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}
34
35 because I don't use (AFAICT) any of the ACL stuff and the command
36 simply wouldn't do anything.
37
38 I ran this command the first time to get 98% of everything copied
39 while in KDE, but before I moved forward I exited KDE, stopped X and
40 ran it as root from the console. After the second run it didn't pick
41 up any new file changes so I suspect it's pretty close to what I'd get
42 dealing with a Live CD boot. (COMMENTS?)
43
44 3) I added a new boot options in grub.conf:
45
46 title fastVM 3.8.13-gentoo using LABEL (SSD, initramfs in kernel)
47 root (hd5,0)
48 kernel (hd0,0)/boot/bzImage-3.8.13-gentoo root=LABEL=fastVM
49 video=vesafb vga=0x307title
50
51 fastVM 3.8.13-gentoo using LABEL (SSD, initramfs in kernel)
52 root (hd5,0)
53 kernel (hd0,0)/boot/bzImage-3.8.13-gentoo root=/dev/sda1 video=vesafb vga=0x307
54
55 I am relatively confident that (hd5,0) is the SSD. I have 6 drives in
56 the system - the 5 HDDs and the SSD. The 5 hard drives all have
57 multiple partitions which is what grub tells me using tab completion
58 for the line
59
60 root(hdX,
61
62 Additionally the SDD has a single partition to tab completion on
63 root(hd5 finishes with root(hd5,0). I used /dev/sda as that's how it's
64 identified when I boot using RAID.
65
66 Now, the kernel has the initrd built into it so if it cannot be
67 turned off I guess I'll try building a new kernel without it. However
68 I found a few web pages that also said RAID could be disabled using a
69 'noraid' option which I thought should stop the system from finding
70 the exiting RAID6 but no luck.
71
72 Does anyone here have any ideas? fdisk info follows at the end. Ask
73 for anything else you want to see.
74
75 If I can get to booting off the SSD then for the next few days I
76 could build different RAIDs and do some performance testing.
77
78 Thanks,
79 Mark
80
81
82
83 c2RAID6 ~ # fdisk -l
84
85 Disk /dev/sda: 128.0 GB, 128035676160 bytes, 250069680 sectors
86 Units = sectors of 1 * 512 = 512 bytes
87 Sector size (logical/physical): 512 bytes / 512 bytes
88 I/O size (minimum/optimal): 512 bytes / 512 bytes
89 Disk identifier: 0xfd2e963c
90
91 Device Boot Start End Blocks Id System
92 /dev/sda1 2048 250069679 125033816 83 Linux
93
94 Disk /dev/sdb: 500.1 GB, 500107862016 bytes, 976773168 sectors
95 Units = sectors of 1 * 512 = 512 bytes
96 Sector size (logical/physical): 512 bytes / 512 bytes
97 I/O size (minimum/optimal): 512 bytes / 512 bytes
98 Disk identifier: 0x8b45be24
99
100 Device Boot Start End Blocks Id System
101 /dev/sdb1 * 63 112454 56196 83 Linux
102 /dev/sdb2 112455 8514449 4200997+ 82 Linux swap / Solaris
103 /dev/sdb3 8594775 976773167 484089196+ fd Linux raid autodetect
104
105 Disk /dev/sdc: 500.1 GB, 500107862016 bytes, 976773168 sectors
106 Units = sectors of 1 * 512 = 512 bytes
107 Sector size (logical/physical): 512 bytes / 512 bytes
108 I/O size (minimum/optimal): 512 bytes / 512 bytes
109 Disk identifier: 0x703d11ba
110
111 Device Boot Start End Blocks Id System
112 /dev/sdc1 * 63 112454 56196 83 Linux
113 /dev/sdc2 112455 8514449 4200997+ 82 Linux swap / Solaris
114 /dev/sdc3 8594775 976773167 484089196+ fd Linux raid autodetect
115
116 Disk /dev/sde: 500.1 GB, 500107862016 bytes, 976773168 sectors
117 Units = sectors of 1 * 512 = 512 bytes
118 Sector size (logical/physical): 512 bytes / 512 bytes
119 I/O size (minimum/optimal): 512 bytes / 512 bytes
120 Disk identifier: 0xce92d9ff
121
122 Device Boot Start End Blocks Id System
123 /dev/sde1 2048 8594774 4296363+ 83 Linux
124 /dev/sde3 8594775 976773167 484089196+ fd Linux raid autodetect
125
126 Disk /dev/sdf: 500.1 GB, 500107862016 bytes, 976773168 sectors
127 Units = sectors of 1 * 512 = 512 bytes
128 Sector size (logical/physical): 512 bytes / 512 bytes
129 I/O size (minimum/optimal): 512 bytes / 512 bytes
130 Disk identifier: 0x21141305
131
132 Device Boot Start End Blocks Id System
133 /dev/sdf1 2048 8594774 4296363+ 83 Linux
134 /dev/sdf3 8595456 976773167 484088856 fd Linux raid autodetect
135
136 Disk /dev/sdd: 500.1 GB, 500107862016 bytes, 976773168 sectors
137 Units = sectors of 1 * 512 = 512 bytes
138 Sector size (logical/physical): 512 bytes / 512 bytes
139 I/O size (minimum/optimal): 512 bytes / 512 bytes
140 Disk identifier: 0xfb3ad342
141
142 Device Boot Start End Blocks Id System
143 /dev/sdd1 * 63 112454 56196 83 Linux
144 /dev/sdd2 112455 8514449 4200997+ 82 Linux swap / Solaris
145 /dev/sdd3 8594775 976773167 484089196+ fd Linux raid autodetect
146
147 Disk /dev/md3: 1487.1 GB, 1487118827520 bytes, 2904528960 sectors
148 Units = sectors of 1 * 512 = 512 bytes
149 Sector size (logical/physical): 512 bytes / 512 bytes
150 I/O size (minimum/optimal): 16384 bytes / 49152 bytes
151
152 c2RAID6 ~ #

Replies

Subject Author
Re: [gentoo-amd64] Can initrd and/or RAID be disabled at boot? Bob Sanders <rsanders@×××.com>
[gentoo-amd64] Re: Can initrd and/or RAID be disabled at boot? Duncan <1i5t5.duncan@×××.net>
Re: [gentoo-amd64] Can initrd and/or RAID be disabled at boot? Paul Hartman <paul.hartman+gentoo@×××××.com>