Gentoo Archives: gentoo-amd64

From: Bob Sanders <rsanders@×××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Can initrd and/or RAID be disabled at boot?
Date: Wed, 26 Jun 2013 22:53:14
Message-Id: 20130626225308.GB4072@sgi.com
In Reply to: [gentoo-amd64] Can initrd and/or RAID be disabled at boot? by Mark Knecht
1 Mark Knecht, mused, then expounded:
2 > Hi,
3 > This is related to my thread from a few days ago about the
4 > disappointing speed of my RAID6 root partition. The goal here is to
5 > get the machine booting from an SSD so that I can free up my five hard
6 > drives to play with.
7 >
8 > SHORT SUMMATION: I've tried noninitrd and noraid in the kernel line of
9 > grub.conf but I keep booting from old RAID instead of the new SSD.
10 > What am I doing wrong?
11 >
12
13 Can the boot order be changed in the bios?
14
15 Was grub-install run on the SSD and saved to the SSD's MBR?
16
17 If, possible, can the SATA cables be moved such that the SSD is drive 0?
18
19 And, it might be useful to mount by-id or by-uuid -
20
21 rsanders@conejo ~ $ ls /dev/disk/by-id/
22 ata-OCZ_VERTEX-TURBO_408M1550705G08FCFEQB ata-TSSTcorp_CDDVDW_SH-S223L_Q9896GAZ20018200
23 ata-OCZ_VERTEX-TURBO_408M1550705G08FCFEQB-part1 md-uuid-3899baf6:daee0dc9:cb201669:f728008a
24 ata-OCZ_VERTEX-TURBO_408M1550705G08FCFEQB-part2 md-uuid-dfeb347b:7e3b4c57:cb201669:f728008a
25 ata-OCZ_VERTEX-TURBO_408M1550705G08FCFEQB-part3 wwn-0x50000f00080a0008
26 ata-SAMSUNG_HE502IJ_S1MTJ1CQA00080 wwn-0x50000f00080a0008-part1
27 ata-SAMSUNG_HE502IJ_S1MTJ1CQA00080-part1 wwn-0x50000f00080a0008-part2
28 ata-SAMSUNG_HE502IJ_S1MTJ1CQA00080-part2 wwn-0x50000f00080a0018
29 ata-SAMSUNG_HE502IJ_S1MTJ1CQA00081 wwn-0x50000f00080a0018-part1
30 ata-SAMSUNG_HE502IJ_S1MTJ1CQA00081-part1 wwn-0x50000f00080a0018-part2
31 ata-SAMSUNG_HE502IJ_S1MTJ1CQA00081-part2
32 rsanders@conejo ~ $ ls /dev/disk/by-uuid/
33 1011bd2c-14bb-485e-8416-14f82835c4f6 7540a6d2-426d-4272-83f0-34ab7d1ffc83 a5ea4eb8-4797-482f-af80-a60f20a62915
34 2974c334-cffd-41d6-94c9-23a4d24980be a26b8632-dabf-450d-806f-330b71b91aeb
35
36
37 /etc/fstab would look like -
38
39 /dev/disk/by=id/ata-OCZ_VERTEX-TURBO_408M1550705G08FCFEQB-part1 /boot ext2 noauto,noatime 1 2
40 /dev/disk/by-id/ata-OCZ_VERTEX-TURBO_408M1550705G08FCFEQB-part3 / xfs noatime 0 1
41
42 And grub.conf would look something like this SLES example -
43
44 title SUSE Linux Enterprise Server 11 SP2 - 3.0.80-0.5
45 root (hd0,1)
46 kernel /boot/vmlinuz-3.0.80-0.5-default root=/dev/disk/by-id/ata-ST3500514NS_9WJ0KSKX-part2 resume=/dev/disk/by-id/ata-ST3500514NS_9WJ0KSKX-part1 splash=silent crashkernel=256M-:128M showopts vga=0x31d
47 initrd /boot/initrd-3.0.80-0.5-default
48
49
50 > What I've done so far:
51 >
52 > 1) I've removed everything relatively non-essential from the HDD-based
53 > RAID6. It's still a lot of data (40GB) but my Windows VMs are moved to
54 > an external USB drive as is all the video content which is on a second
55 > USB drive so the remaining size is pretty manageable.
56 >
57 > 2) In looking around for ways to get / copied to the SDD I ran across
58 > this Arch Linux page called "Full System Backup with rsync":
59 >
60 > https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync
61 >
62 > Basically it boiled down to just a straight-forward rsync command, but
63 > what I liked about the description what that it can be done on a live
64 > system. The command in the page is
65 >
66 > rsync -aAXv /* /path/to/backup/folder
67 > --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}
68 >
69 > which I have modified to
70 >
71 > rsync -avx /* /path/to/backup/folder
72 > --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}
73 >
74 > because I don't use (AFAICT) any of the ACL stuff and the command
75 > simply wouldn't do anything.
76 >
77 > I ran this command the first time to get 98% of everything copied
78 > while in KDE, but before I moved forward I exited KDE, stopped X and
79 > ran it as root from the console. After the second run it didn't pick
80 > up any new file changes so I suspect it's pretty close to what I'd get
81 > dealing with a Live CD boot. (COMMENTS?)
82 >
83 > 3) I added a new boot options in grub.conf:
84 >
85 > title fastVM 3.8.13-gentoo using LABEL (SSD, initramfs in kernel)
86 > root (hd5,0)
87 > kernel (hd0,0)/boot/bzImage-3.8.13-gentoo root=LABEL=fastVM
88 > video=vesafb vga=0x307title
89 >
90 > fastVM 3.8.13-gentoo using LABEL (SSD, initramfs in kernel)
91 > root (hd5,0)
92 > kernel (hd0,0)/boot/bzImage-3.8.13-gentoo root=/dev/sda1 video=vesafb vga=0x307
93 >
94 > I am relatively confident that (hd5,0) is the SSD. I have 6 drives in
95 > the system - the 5 HDDs and the SSD. The 5 hard drives all have
96 > multiple partitions which is what grub tells me using tab completion
97 > for the line
98 >
99 > root(hdX,
100 >
101 > Additionally the SDD has a single partition to tab completion on
102 > root(hd5 finishes with root(hd5,0). I used /dev/sda as that's how it's
103 > identified when I boot using RAID.
104 >
105 > Now, the kernel has the initrd built into it so if it cannot be
106 > turned off I guess I'll try building a new kernel without it. However
107 > I found a few web pages that also said RAID could be disabled using a
108 > 'noraid' option which I thought should stop the system from finding
109 > the exiting RAID6 but no luck.
110 >
111 > Does anyone here have any ideas? fdisk info follows at the end. Ask
112 > for anything else you want to see.
113 >
114 > If I can get to booting off the SSD then for the next few days I
115 > could build different RAIDs and do some performance testing.
116 >
117 > Thanks,
118 > Mark
119 >
120 >
121 >
122 > c2RAID6 ~ # fdisk -l
123 >
124 > Disk /dev/sda: 128.0 GB, 128035676160 bytes, 250069680 sectors
125 > Units = sectors of 1 * 512 = 512 bytes
126 > Sector size (logical/physical): 512 bytes / 512 bytes
127 > I/O size (minimum/optimal): 512 bytes / 512 bytes
128 > Disk identifier: 0xfd2e963c
129 >
130 > Device Boot Start End Blocks Id System
131 > /dev/sda1 2048 250069679 125033816 83 Linux
132 >
133 > Disk /dev/sdb: 500.1 GB, 500107862016 bytes, 976773168 sectors
134 > Units = sectors of 1 * 512 = 512 bytes
135 > Sector size (logical/physical): 512 bytes / 512 bytes
136 > I/O size (minimum/optimal): 512 bytes / 512 bytes
137 > Disk identifier: 0x8b45be24
138 >
139 > Device Boot Start End Blocks Id System
140 > /dev/sdb1 * 63 112454 56196 83 Linux
141 > /dev/sdb2 112455 8514449 4200997+ 82 Linux swap / Solaris
142 > /dev/sdb3 8594775 976773167 484089196+ fd Linux raid autodetect
143 >
144 > Disk /dev/sdc: 500.1 GB, 500107862016 bytes, 976773168 sectors
145 > Units = sectors of 1 * 512 = 512 bytes
146 > Sector size (logical/physical): 512 bytes / 512 bytes
147 > I/O size (minimum/optimal): 512 bytes / 512 bytes
148 > Disk identifier: 0x703d11ba
149 >
150 > Device Boot Start End Blocks Id System
151 > /dev/sdc1 * 63 112454 56196 83 Linux
152 > /dev/sdc2 112455 8514449 4200997+ 82 Linux swap / Solaris
153 > /dev/sdc3 8594775 976773167 484089196+ fd Linux raid autodetect
154 >
155 > Disk /dev/sde: 500.1 GB, 500107862016 bytes, 976773168 sectors
156 > Units = sectors of 1 * 512 = 512 bytes
157 > Sector size (logical/physical): 512 bytes / 512 bytes
158 > I/O size (minimum/optimal): 512 bytes / 512 bytes
159 > Disk identifier: 0xce92d9ff
160 >
161 > Device Boot Start End Blocks Id System
162 > /dev/sde1 2048 8594774 4296363+ 83 Linux
163 > /dev/sde3 8594775 976773167 484089196+ fd Linux raid autodetect
164 >
165 > Disk /dev/sdf: 500.1 GB, 500107862016 bytes, 976773168 sectors
166 > Units = sectors of 1 * 512 = 512 bytes
167 > Sector size (logical/physical): 512 bytes / 512 bytes
168 > I/O size (minimum/optimal): 512 bytes / 512 bytes
169 > Disk identifier: 0x21141305
170 >
171 > Device Boot Start End Blocks Id System
172 > /dev/sdf1 2048 8594774 4296363+ 83 Linux
173 > /dev/sdf3 8595456 976773167 484088856 fd Linux raid autodetect
174 >
175 > Disk /dev/sdd: 500.1 GB, 500107862016 bytes, 976773168 sectors
176 > Units = sectors of 1 * 512 = 512 bytes
177 > Sector size (logical/physical): 512 bytes / 512 bytes
178 > I/O size (minimum/optimal): 512 bytes / 512 bytes
179 > Disk identifier: 0xfb3ad342
180 >
181 > Device Boot Start End Blocks Id System
182 > /dev/sdd1 * 63 112454 56196 83 Linux
183 > /dev/sdd2 112455 8514449 4200997+ 82 Linux swap / Solaris
184 > /dev/sdd3 8594775 976773167 484089196+ fd Linux raid autodetect
185 >
186 > Disk /dev/md3: 1487.1 GB, 1487118827520 bytes, 2904528960 sectors
187 > Units = sectors of 1 * 512 = 512 bytes
188 > Sector size (logical/physical): 512 bytes / 512 bytes
189 > I/O size (minimum/optimal): 16384 bytes / 49152 bytes
190 >
191 > c2RAID6 ~ #
192 >
193
194 --
195 -

Replies

Subject Author
Re: [gentoo-amd64] Can initrd and/or RAID be disabled at boot? Mark Knecht <markknecht@×××××.com>