LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2011, 06:43 AM   #1
GNakul
Member
 
Registered: Oct 2011
Location: Bangalore,India
Posts: 59

Rep: Reputation: Disabled
protect_root_disk


Hi all,

I am trying to set up RAID1 on the running system. That is i want to protect the root disk using RAID1.


This is the following status before doing anything.
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.8G 2.6G 1.1G 72% /
/dev/sda3 19G 1.7G 16G 10% /home
/dev/sda1 46M 17M 27M 38% /boot

[root@localhost ~]# fdisk -l

Disk /dev/sda: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6 48163+ 83 Linux
/dev/sda2 7 515 4088542+ 83 Linux
/dev/sda3 516 3009 20033055 83 Linux
/dev/sda4 3010 3263 2040255 5 Extended
/dev/sda5 3010 3263 2040223+ 82 Linux swap / Solaris

I did the following setup.
1. yum install mdadm
2. modprobe linear
modprobe multipath
modprobe raid0
modprobe raid1
modprobe raid5
modprobe raid6
modprobe raid10
3.sfdisk -d /dev/sda | sfdisk /dev/sdb
4.fdisk /dev/sdb
Selected fd[RAID Auto detect] to all the partitions.
5. mdadm --create /dev/md0 --level=1 --raid-disks=2 missing /dev/sdb1
mdadm --create /dev/md1 --level=1 --raid-disks=2 missing /dev/sdb2
mdadm --create /dev/md2 --level=1 --raid-disks=2 missing /dev/sdb3
mdadm --create /dev/md3 --level=1 --raid-disks=2 missing /dev/sdb5
6. mkfs.ext3 /dev/md0
mkswap /dev/md1
mkfs.ext3 /dev/md2
mkfs.ext3 /dev/md3
7.mdadm --examine --scan > /etc/mdadm.conf
8. mkdir /mnt/md0
mkdir /mnt/md2
mkdir /mnt/md3
9.mount /dev/md0 /mnt/md0
mount /dev/md2 /mnt/md2
mount /dev/md3 /mnt/md3
10.vi /etc/fstab
Entered the details
11.Modified vi /boot/grub/menu.lst
kernel /vmlinuz-2.6.18 ro root=/dev/md2
12.mv /boot/initrd-`uname -r`.img /boot/initrd-`uname -r`.img_orig
mkinitrd /boot/initrd-`uname -r`.img `uname -r`
13.cp -dpRx / /mnt/md2


Here i am not succeeding it says

cp: preserving permissions for /mnt/md2/xen/var/run/cups/certs/0′: Operation not supported
cp: preserving ACL for /mnt/md2/xen/var/run/cups/certs/0′: Operation not supported

Please help. If i neglect and continue, after reboot it is a PANIC.
Thanks in advance for your help.
 
Old 12-23-2011, 07:00 AM   #2
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
Quote:
Here i am not succeeding it says

cp: preserving permissions for /mnt/md2/xen/var/run/cups/certs/0′: Operation not supported
cp: preserving ACL for /mnt/md2/xen/var/run/cups/certs/0′: Operation not supported
you said you mounted with:
Quote:
9.mount /dev/md0 /mnt/md0
mount /dev/md2 /mnt/md2
mount /dev/md3 /mnt/md3
I don't know what Linux distro you are using, but for a RHEL based distro, "acl" is not part of the default mount options for ext3. So, you should do:
Code:
mount /dev/md0 /mnt/md0 -o default,acl
mount /dev/md2 /mnt/md2 -o default,acl
mount /dev/md3 /mnt/md3 -o default,acl
 
Old 12-24-2011, 02:27 AM   #3
GNakul
Member
 
Registered: Oct 2011
Location: Bangalore,India
Posts: 59

Original Poster
Rep: Reputation: Disabled
I am using CentOS 5 [kernel 2.6.18]. I ll try it out. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration