TIP: Click on subject to list as thread! ANSI
echo: unix
to: All
from: Angus McLeod
date: 2007-07-20 20:10:00
subject: Slackware 12

Ok, it's up and running.  Some issues involved with the switch from the 
2.4 series kernel to the 2.6 series that Slack 12 uses.

I finally decided on an 8 gig partition for the OS, which leaves bags of 
room.  I did a FULL install, which is unusual for me and I'm already 
seeing packages I will uninstall, but anyway.  Oh, and FULL obviously does 
not include EMACS because I am not RMS.

The drives are sliced as follows:

   sd[ab]1        Primary  Linux swap             254.99
   sd[ab]2  Boot  Primary  Linux raid autodetect  8192.38
   sd[ab]5        Logical  Linux raid autodetect  120804.69
   sd[ab]6        Logical  Linux ReiserFS         120804.69

so sda2/sdb2 form RAID1 slice /dev/md/0 with the OS on it.  Getting it on 
was fun, but fairly straightforward, after reading this:

	http://slacksite.com/slackware/raid.html

except the system came with the new 'mdadm' tool instead of the now 
depreciated 'raidtools' used in the HOWTO. I couldn't figure out the 
'mdadm' equivilent to a 'failed-disk' entry in /etc/raidtab so I installed 
the 'raidtools' package and used what I'm familiar with.  *Then* I figured 
out how I could probably have done it with 'mdadm'...

Anyway, I installed on sdb2 and got the OS running.  Then I set the 
partition type of dsa2 to "Linux raid autodetect", and built a RAID1 
mirror on sd[ab]2 *BUT* with sdb2 configured as a failed-disk.  Then I 
brought the mirror online as md0, changed /etc/lilo.conf to use md0 (for 
boot and root) instead of sdb2 and to add the raid-extra-boot line, copied 
all of sdb2 to md0, and lilo'd with the root as md0 (had some fun there). 
Then I crossed my fingers and rebooted from sda.  Up she came, booting off 
sda and rooting the md0 mirror.  Warning:  No, you don't want to copy 
/proc and /sys but *YES* you want to create empty /proc and /sys 
mount-points.  ;-)

Obviously /proc/md0 showed the mirror degraded [U_] so I then went ahead 
and changed the partition type on sdb2 to "Linux raid autodetect", and 
used 'raidhotadd' to put sdb2 into the mirror.  /proc/mdstat immediately 
showed reconstruction going on, and I waited for that to be complete 
before altering the /etc/raidtab to show /sdb2 as no longer a 
'failed-disk'.  A reboot was in order to show that the system would come 
right up after a power-failure without any prompting, but first I wanted 
to set up LVM.  On RAID1 mirrors, of course.

I had previously set the type of sd[ab]5 to "Linux raid autodetect" so I 
used mkraid to create the md1 mirror with these two.  Then I used 
'vgcreate' to build a Volume Group called "sataraid" with md1 in it to 
give me 112.50 gig of space.  I then used 'lvcreate' to make me a 64 gig 
Logical Volume called 'music', formatted it with reiserfs.  Then I copied 
all my OGG files from sdb6 to the new /dev/sataraid/music partition, which 
I mounted under /music.

What were my OGG files doing on sdb6?  Well, unfortunately, the 
cheap-assed M/B only has support for two SATA drives.  I was forced to 
install sdb, copy the OGG files (and a bunch of other stuff) from the old 
SATA drive, take out and discard the old SATA drive, and then install the 
second new SATA drive as sda.

The current state is:

   sd[ab]1 : two 256 meg swap partitions
   sd[ab]2 : two mirrored 8 gig partitions, holding OS
   sd[ab]5 : two mirrored 112 gig partitions in Volume Group 'sataraid'
   sda6    : single 112 gig partition, empty
   sdb6    : single 112 gig partition still hosds 24 gig legacy data

The plan is to transfer the legacy data from sdb6 to LVs created out of 
'sataraid', then build another mirror as md2 using sd[ab]6 and add this 
mirror as another Physical Volume to the 'sataraid' VG.

But it's time for a beverage...


---
 þ Synchronet þ Linus is a regular at The ANJO BBS.  No, Linus Brathwaite!
--- SBBSecho 2.12-Win32
* Origin: Joe's Computer & BBS -= joesbbs.synchro.net =- (1:275/412)
SEEN-BY: 10/1 3 14/250 34/999 90/1 120/228 123/500 140/1 222/2 226/0 236/150
SEEN-BY: 249/303 250/306 261/20 38 100 1404 1406 1418 266/1413 280/1027
SEEN-BY: 320/119 393/68 396/45 633/104 260 267 690/682 734 712/848 800/432
SEEN-BY: 801/161 189 2222/700 2320/100 105 200 2905/0
@PATH: 275/412 400 100 140/1 261/38 633/260 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.