Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello
Well i tried removing raid array on our server and baaaam
i did not need the server hard drive to be in raid anymore
it was raid 1 and two hard disk each with three partition
so we had :
md0 swap
md1 /boot
md2 /
i used following method to remove raid
removed /etc/mdadm.conf then
mdadm --zero-superblock /dev/md0
mdadm --zero-superblock /dev/md1
mdadm --zero-superblock /dev/md2
and rebooted an then the disaster
the server is not booting anymore
i have access to rescue system so tried mounting the partition and chrooted
and tried fixing grub via
grub-install /dev/sda
did not work also in my fstab i still have refrence to md`s as partition name
so i tried renaming them to sda[1-3]and nothing
so what else can be done to revive the server ?
i thought mdadm --zero-superblock is safe to use
though now im totally confused on how really raid , partition table and type and namings are in such a configuration
regards
sorry
well i do not have visual on server
just i have booted server on data center rescue console and mounted my partitions and chrooted
so in fact i cant see at which stage server hangs
current information
This is what I would have tried (after doing a backup; use at your own risk; untested)
Code:
# 2 steps to 'remove' 2nd disk
mdadm --fail /dev/md0 /dev/sdb1
mdadm --remove /dev/md0 /dev/sdb1
# Tell it it's no longer a raid
# (you could probably skip this)
mdadm --zero-superblock /dev/md0
# change partitions types from fd=raid to 83=linux, 82 =swap
fdisk /dev/sdb - set to what ever
# You'll probably need to switch to a rescue disk at this point,
# as you are fooling with your new system disk
fdisk /dev/sda - this is your boot-able system
# test mount each disk + partition to check eg
mount /dev/sda1 /mnt/test
umount /dev/sda1
mount /dev/sdb1 /mnt/test
etc
etc
# backup conf
mv /etc/mdadm.conf{,.old}
# fix up fstab
vim /etc/fstab
# fixup grub.conf
vim boot/grub/grub.conf
hello
thank you i will tried the steps you mentioned
i created back up and moved to another server so i can totally mess with this server now
just about two last steps
Quote:
# fix up fstab
vim /etc/fstab
# fixup grub.conf
vim boot/grub/grub.conf
can you be more specefic on what the fixes should look like ?
regards
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.