Hello Darryl,
I don't know for software RAID-1 under Linux since I have not used
it but on other platforms - before you can delete your RAID-1 devices from
the system - you have to boot from the un-encapsulated devices before
attempting to delete the md* devices.. That usally means that you have to
edit your fstab and replace md* devices with the corresponding /dev/hda*
devices.. (i.e replace "/dev/md0 /..." by "/dev/hda1 /...". Update
lilo.conf as well and re-run lilo as necessary..
Also, since Linux uses LILO and since LILO uses bios disk numbers
to find the boot device, it also means that you -might- have to
reconfigure lilo to look for /dev/hdawhatever before you'll be able to
boot on your /dev/hda* devices.. might work as it is or it might not,
perhaps someone can give you a hand there..
,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,
Vincent S. Cojot, Computer Engineering. STEP project. _.,-*~'`^`'~*-,._.,-*~
Ecole Polytechnique de Montreal, Comite Micro-Informatique. _.,-*~'`^`'~*-,.
Linux Xview/OpenLook resources page _.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'
http://step.polymtl.ca/~coyote _.,-*~'`^`'~*-,._ [EMAIL PROTECTED]
They cannot scare me with their empty spaces
Between stars - on stars where no human race is
I have it in me so much nearer home
To scare myself with my own desert places. - Robert Frost
On Thu, 29 Nov 2001, Darryl Harvey wrote:
> I have a setup that is currently running under raid1.
>
> I want to stop the raid and use it as normal disks again (especially the
> boot device)
>
> Every time I issue "raidstop --all" or "raidstop /dev/md0 /dev/hda1"
> it come back saying either "nothing to do!!, or "device or resource busy"
>
> [root@slab root]# raidstop /dev/md0
> /dev/md0: Device or resource busy
>
> [root@slab root]# raidstop --all
> nothing to do!
> usage: raidstop [--all] [--configfile] [--help] [--version] [-achv] </dev/md?>*
>
>
>
>
> How can I turn off this raid and use the disks as per normal again?
>
>
>
>
> Current partiton table:
> $ fdisk -l
>
> Disk /dev/hdc: 16 heads, 63 sectors, 38792 cylinders
> Units = cylinders of 1008 * 512 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hdc1 * 1 31 15592+ fd Linux raid autodetect
> /dev/hdc2 32 38792 19535544 5 Extended
> /dev/hdc5 32 18317 9216112+ fd Linux raid autodetect
> /dev/hdc6 18318 28633 5199232+ fd Linux raid autodetect
> /dev/hdc7 28634 34729 3072352+ fd Linux raid autodetect
> /dev/hdc8 34730 36761 1024096+ fd Linux raid autodetect
> /dev/hdc9 36762 38792 1023592+ 82 Linux swap
>
> Disk /dev/hda: 255 heads, 63 sectors, 2434 cylinders
> Units = cylinders of 16065 * 512 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 2 16033+ fd Linux raid autodetect
> /dev/hda2 3 2434 19535040 5 Extended
> /dev/hda5 3 1150 9221278+ fd Linux raid autodetect
> /dev/hda6 1151 1788 5124703+ fd Linux raid autodetect
> /dev/hda7 1789 2171 3076416 fd Linux raid autodetect
> /dev/hda8 2172 2299 1028128+ fd Linux raid autodetect
> /dev/hda9 2300 2434 1084356 83 Linux
>
>
>
> The /etc/raidtab file;
>
> $ cat /etc/raidtab
> raiddev /dev/md0
> raid-level 1
> nr-raid-disks 2
> chunk-size 64k
> persistent-superblock 1
> #nr-spare-disks 0
> device /dev/hdc1
> raid-disk 0
> device /dev/hda1
> raid-disk 1
> raiddev /dev/md1
> raid-level 1
> nr-raid-disks 2
> chunk-size 64k
> persistent-superblock 1
> #nr-spare-disks 0
> device /dev/hdc7
> raid-disk 0
> device /dev/hda7
> raid-disk 1
> raiddev /dev/md2
> raid-level 1
> nr-raid-disks 2
> chunk-size 64k
> persistent-superblock 1
> #nr-spare-disks 0
> device /dev/hdc6
> raid-disk 0
> device /dev/hda6
> raid-disk 1
> raiddev /dev/md3
> raid-level 1
> nr-raid-disks 2
> chunk-size 64k
> persistent-superblock 1
> #nr-spare-disks 0
> device /dev/hdc5
> raid-disk 0
> device /dev/hda5
> raid-disk 1
> raiddev /dev/md4
> raid-level 1
> nr-raid-disks 2
> chunk-size 64k
> persistent-superblock 1
> #nr-spare-disks 0
> device /dev/hdc8
> raid-disk 0
> device /dev/hda8
> raid-disk 1
>
>
> And the current /etc/fstab file;
> $ cat /etc/fstab
> /dev/md1 / ext2 defaults 1 1
> /dev/md0 /boot ext2 defaults 1 2
> /dev/md3 /home ext2 defaults 1 2
> /dev/fd0 /mnt/floppy auto noauto,owner 0 0
> LABEL=/tmp /tmp ext2 defaults 1 2
> /dev/md2 /usr ext2 defaults 1 2
> /dev/md4 /var ext2 defaults 1 2
> none /proc proc defaults 0 0
> none /dev/shm tmpfs defaults 0 0
> none /dev/pts devpts gid=5,mode=620 0 0
> /dev/hdc9 swap swap defaults 0 0
> /dev/cdrom /mnt/cdrom iso9660
> noauto,owner,kudzu,ro 0 0
>
>
>
> And the ?proc/mdstat file;
>
> [root@slab root]# cat /proc/mdstat
> Personalities : [raid1]
> read_ahead 1024 sectors
> md4 : active raid1 hda8[1] hdc8[0]
> 1024000 blocks [2/2] [UU]
>
> md1 : active raid1 hda7[1] hdc7[0]
> 3072256 blocks [2/2] [UU]
>
> md2 : active raid1 hda6[1] hdc6[0]
> 5124608 blocks [2/2] [UU]
>
> md3 : active raid1 hda5[1] hdc5[0]
> 9216000 blocks [2/2] [UU]
>
> md0 : active raid1 hda1[1] hdc1[0]
> 15488 blocks [2/2] [UU]
>
> unused devices: <none>
>
>
>
>
> All the raid docs tell me how to create the arrays, but none tell me how to
> remove it.
> I did try to alter the partition table, but that failed.
>
> Note: these are all linux raid autodetect partitions, with persistant
> superblocks, Even the boot partition... (yes I am booting off raid, which
> is what I really want to stop)
>
> Any help appreciated.
>
> Darryl
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,
Vincent S. Cojot, Computer Engineering. STEP project. _.,-*~'`^`'~*-,._.,-*~
Ecole Polytechnique de Montreal, Comite Micro-Informatique. _.,-*~'`^`'~*-,.
Linux Xview/OpenLook resources page _.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'
http://step.polymtl.ca/~coyote _.,-*~'`^`'~*-,._ [EMAIL PROTECTED]
They cannot scare me with their empty spaces
Between stars - on stars where no human race is
I have it in me so much nearer home
To scare myself with my own desert places. - Robert Frost
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list