Gentoo Archives: gentoo-server

From: Jared Klett <jklett@×××××××××.net>
To: gentoo-server@l.g.o
Subject: [gentoo-server] SOLVED (3.3 TB reiserfs volume not mounting at boot, and is unusable afterwards)
Date: Thu, 24 Aug 2006 20:41:52
Message-Id: C8B397BA-E9E6-4EB0-B790-93AC79D85DBF@project55.net
In Reply to: [gentoo-server] 3.3 TB reiserfs volume not mounting at boot, and is unusable afterwards by Jared Klett
1 Rich's response got me to thinking - I had seen a reference back
2 when I was building a similar server. after some creative googling, I
3 found it:
4
5 http://www.coraid.com/support/linux/contrib/chernow/gpt.html
6
7 the key note is at the bottom of the page:
8
9 "Without this on, strange things happen. For instance, rebooting the
10 machine caused the file system to no longer be mountable or the GPT
11 table got corrupted."
12
13 aha! exactly my problem! I rebooted the machine and watched the
14 console carefully, and noted this:
15
16 * System.map not found unable to check symbols
17
18 hmmmm. after some more googling, I found this discussion:
19
20 http://tinyurl.com/o57hm
21
22 so I found the solution to making this message go away to be to copy
23 System.map to /., which is mounted when the message pops up during
24 the boot process, whereas /boot and /usr are not. then we edit the
25 block at the end of /sbin/modules-update to be:
26
27 if [ -d "`depdir`" -a -f /proc/modules ]
28 then
29 if [ -f /System.map ]; then
30 depmod -a -F /System.map ${KV}
31 else
32 ewarn "System.map not found - unable to check symbols"
33 fi
34 fi
35
36 and viola, the boot process is happy once more.
37
38 as an added bonus, this resolves the issue with the filesystem being
39 usable after a reboot, and mounting at boot time. woohoo!
40
41 thanks to all that replied. it always helps to bounce ideas off
42 others to get the juices flowing.
43
44 cheers,
45
46 - Jared
47
48
49 On Aug 24, 2006, at 12:18 PM, Jared Klett wrote:
50
51 > hello Gentoo server folks,
52 >
53 > I have a 2U server with a 3ware 9500-12MI controller. there are
54 > two 80 GB drives in RAID-1 which servers as the boot device, and
55 > ten 400 GB drives in RAID-5 which I want to have mounted as a
56 > single volume at /data.
57 >
58 > if I start fresh and create the filesystem after the system has
59 > booted, and mount it, all is well. however, when I reboot the
60 > system, the filesystem won't be mounted and I'll get an error.
61 >
62 > to start, I used GNU parted to partition the device, which is at /
63 > dev/sdb. here's a transcript of the session:
64 >
65 > Using /dev/sdb
66 > (parted) mklabel
67 > New disk label type? gpt
68 > (parted) print
69 > Disk geometry for /dev/sdb: 0kB - 3600GB
70 > Disk label type: gpt
71 > Number Start End Size File system Name
72 > Flags
73 > (parted) mkpart
74 > Partition type? [primary]?
75 > File system type? [ext2]? reiserfs
76 > Start? 0.0
77 > End? 3600G
78 > (parted) print
79 > Disk geometry for /dev/sdb: 0kB - 3600GB
80 > Disk label type: gpt
81 > Number Start End Size File system Name
82 > Flags
83 > 1 17kB 3600GB 3600GB
84 > (parted) quit
85 >
86 > I then do a plain:
87 >
88 > root ~ # mkreiserfs /dev/sdb1
89 > mkreiserfs 3.6.19 (2003 www.namesys.com)
90 > Guessing about desired format.. Kernel 2.6.17-gentoo-r4 is running.
91 > Format 3.6 with standard journal
92 > Count of blocks on the device: 878881520
93 > Number of blocks consumed by mkreiserfs formatting process: 35033
94 > Blocksize: 4096
95 > Hash function used to sort names: "r5"
96 > Journal Size 8193 blocks (first block 18)
97 > Journal Max transaction length 1024
98 > inode generation number: 0
99 > UUID: 80864192-b2b1-4f20-ab16-a1242e5cfa1b
100 > ATTENTION: YOU SHOULD REBOOT AFTER FDISK!
101 > ALL DATA WILL BE LOST ON '/dev/sdb1'!
102 > Continue (y/n):y
103 > Initializing journal - 0%....20%....40%....60%....80%....100%
104 > Syncing..ok
105 >
106 > root ~ # mount /dev/sdb1 /data
107 > root ~ # df -h
108 > [ ... snip ... ]
109 > /dev/sdb1 3.3T 33M 3.3T 1% /data
110 >
111 > and all is well.
112 >
113 > however, when I update /etc/fstab and reboot the machine, the
114 > kernel loads and mounts the reiserfs filesystems on the boot
115 > volume, but then I get:
116 >
117 > reiserfs_open: the reiserfs superblock cannot be found /dev/sdb1.
118 > Failed to open the filesystem.
119 >
120 > here's a screenshot of the console:
121 >
122 > http://www.project55.net/noloveatboot.png
123 >
124 > I hit Control-D and allow the system to finish booting. then I
125 > attempted this:
126 >
127 > root ~ # mount /dev/sdb1 /data
128 > mount: you must specify the filesystem type
129 > root ~ # mount -t reiserfs /dev/sdb1 /data
130 > mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
131 > missing codepage or other error
132 > In some cases useful info is found in syslog - try
133 > dmesg | tail or so
134 > root ~ # dmesg | tail
135 > [ ... snip ...]
136 > FAT: bogus number of reserved sectors
137 > VFS: Can't find a valid FAT filesystem on dev sdb1.
138 > ReiserFS: sdb1: warning: sh-2021: reiserfs_fill_super: can not find
139 > reiserfs on sdb1
140 >
141 > this message makes me a bit suspicious. I've tried creating the
142 > reiserfs filesystem from inside parted using mkfs, but I just get
143 > this, in spite of having reiserfsprogs emerged before I emerged
144 > parted:
145 >
146 > No Implementation: Support for creating reiserfs file systems is
147 > not implemented yet.
148 >
149 > I'm running kernel version 2.6.17-gentoo-r4, with the following
150 > enabled:
151 >
152 > Block layer --->
153 > [*] Support for Large Block Devices
154 > Partition Types --->
155 > [*] Advanced partition selection
156 > ...
157 > [*] EFI GUID Partition support
158 >
159 > just for complete information overload, here is the status of the
160 > RAID unit as reported by the 3ware controller:
161 >
162 > Status: OK
163 > Capacity: 3.27 TB
164 > Type: RAID 5
165 > Stripe: 256kB
166 >
167 > any insights would be most welcome!
168 >
169 > cheers,
170 >
171 > - Jared
172 >
173 > --
174 > Move 'sig'. For great justice.
175 >
176 > --
177 > gentoo-server@g.o mailing list
178 >
179
180 --
181 It is very dark. You are likely to be eaten by a grue.
182
183 --
184 gentoo-server@g.o mailing list

Replies