Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th July 2010, 17:30
icecold icecold is offline
Junior Member
 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How To Set Up Software RAID1 On A Running System... (CentOS 5

Hi,

I have read the tutorial and before actually doing this, I have a question how to handle the extended parition. My partitioning is as follow:

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       29396   236018947+  83  Linux
/dev/sda3           29397       29657     2096482+  83  Linux
/dev/sda4           29658       30401     5976180    5  Extended
/dev/sda5           29658       30401     5976148+  82  Linux swap / Solaris
I was thinking to copy the partion table and create md for sda1, sda2, sda3, sda5? And leave sda4 Extended as well as on /sdb4?

Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 31st July 2010, 15:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,732 Times in 2,569 Posts
Default

Can you post your /etc/fstab and the output of
Code:
mount
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 31st July 2010, 18:18
icecold icecold is offline
Junior Member
 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default It's working

Hi,

In the meantime I managed to get it all working, besides some minor issues. After the migration to RAID1, the rights on the /tmp has changed to 755 which caused some problems. Changing this back to 777 solved those issues.

Here's the output of some of the config files (for those interested):

/etc/fstab:
Code:
/dev/md1                /                       ext3    defaults        1 1
/dev/md2                /tmp                    ext3    defaults        1 2
/dev/md0                /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/md3                swap                    swap    defaults        0 0
mount:
Code:
/dev/md1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/md2 on /tmp type ext3 (rw)
/dev/md0 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
fdisk -l:
Code:
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   fd  Linux raid autodetect
/dev/sda2              14       29396   236018947+  fd  Linux raid autodetect
/dev/sda3           29397       29657     2096482+  fd  Linux raid autodetect
/dev/sda4           29658       30401     5976180    5  Extended
/dev/sda5           29658       30401     5976148+  fd  Linux raid autodetect

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      104391   fd  Linux raid autodetect
/dev/sdb2              14       29396   236018947+  fd  Linux raid autodetect
/dev/sdb3           29397       29657     2096482+  fd  Linux raid autodetect
/dev/sdb4           29658       30401     5976180    5  Extended
/dev/sdb5           29658       30401     5976148+  fd  Linux raid autodetect

Disk /dev/md1: 241.6 GB, 241683333120 bytes
2 heads, 4 sectors/track, 59004720 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md3: 6119 MB, 6119489536 bytes
2 heads, 4 sectors/track, 1494016 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md3 doesn't contain a valid partition table

Disk /dev/md2: 2146 MB, 2146697216 bytes
2 heads, 4 sectors/track, 524096 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/md0: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table
cat /proc/mdstat:
Code:
Personalities : [raid1]
md0 : active raid1 sdb1[1] sda1[0]
      104320 blocks [2/2] [UU]

md2 : active raid1 sdb3[1] sda3[0]
      2096384 blocks [2/2] [UU]

md3 : active raid1 sdb5[1] sda5[0]
      5976064 blocks [2/2] [UU]

md1 : active raid1 sdb2[1] sda2[0]
      236018880 blocks [2/2] [UU]

unused devices: <none>
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems connecting my HTC Desire outgoing mail client to Postfix and ISP Config 2 j.smith1981 Server Operation 6 12th July 2010 19:07
problem with How To Set Up Software RAID1 On A Running System cckid HOWTO-Related Questions 7 29th September 2009 23:24
Problem with Starting FreeNX. Followed Guide. Centos. Dont think GNOME is running. crewxp Server Operation 5 21st February 2008 03:07
renice - - set nice values of running processes sysconfig Suggest HOWTO 1 6th November 2006 07:52
newbie ububtu 6.0.6 error PHP binary line 816 davidsky73 Installation/Configuration 8 17th September 2006 11:51


All times are GMT +2. The time now is 15:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.