Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19
Hi, I have a question about installing redhat based: Centos 5.1 I wanted to try to discover what the software raid can actually do. What I intended to do is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    10

    Question:Software Raid, Mounting Secondary to /home


    Hi,

    I have a question about installing redhat based: Centos 5.1

    I wanted to try to discover what the software raid can actually do.

    What I intended to do is to combine 2 hard drive to make it look like 1 hard drive

    /dev/sda (disk1 80GB) + /dev/sdb (disk2 80GB) = 160GB

    Seems like confusing as I've never tried installing software raid before, how can it be installed the correct way? anyone mind to guide me to partition a simple

    /boot 100mb
    swap 2gb
    /tmp 500mb
    / fill rest disk

    ------------------------------
    Secondly, if software raid isn't an ideal way of combining hard drives, is it safe to mount /dev/sdb1 into /home/admin/drive2 or something like that?

  2. #2
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209
    you can type fdisk to format partitions as you had specified
    (you need to be root login)
    and
    RAID is about combining two into one disk not in terms of space
    IT is mainly used for mirroring, which means that 80 GB space is available but has two 80GB disks.
    To be clear it saves data on both disks. So, when one disk fails, the other can be used to recreate data.

    For your intention, you can use Logical Volumes.
    which is some advanced partition creation.
    Are you trying to install partition at installation.
    Then there would be no probs to make one LV.

    Finally, I dont get what you try to say in the last question?

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Posts
    10
    Ok, let me rephase my second question:

    let's say I have primary drive /dev/sda and secondary drive /dev/sdb

    I wanted to mount /dev/sdb1 as /home/user/subfolder

    for example $ mount /dev/sdb1 /home/hbhb/public_html/drive2, is that possible?

    then i can upload my files into ftp.hbhb.com/public_html/drive2

    The reason is because I want more space for my server 80GB+80GB instead of doing mirroring

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209
    As i had said before
    you can use LVMs
    try
    http://tldp.org/HOWTO/LVM-HOWTO/commontask.html

  6. #5
    Just Joined!
    Join Date
    Jul 2007
    Posts
    10
    Thanks I understand better by looking at the image on
    http://www.redhat.com/docs/manuals/l...lvm-intro.html

    Anyway, I spent sometime trying to click on CentOS graphical interface installation trying out but doesn't seem to have success yet by luck

    For a new bie like me, how do I configure the LVM so that I can make /dev/sdb mounted together with the primary drive so that the server has 80GB+80GB

    I can't seem to be able to create VolGroup01 after VolGroup00, correct me if i'm wrong

  7. #6
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209
    dude,
    first you need to
    pvcreate
    for both disks. Then
    vgcreate
    Then
    lvcreate

    Btw, whats the error you get while creating them?

  8. #7
    Just Joined!
    Join Date
    Jul 2007
    Posts
    10
    i'm not following up. i hope you don't mind to deal with a real newb into this kind of subject here.

    so to start from the beginning. i'm going to install a new server as follows

    /dev/sda
    /boot 100mb
    /swap 2gb
    /tmp 500mb
    / fill rest disk
    /dev/sdb
    /drive2

    Once the OS is installed, i should run 'pvcreate', correct me if i am wrong.

  9. #8
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209
    ok.
    First, do
    pvcreate /dev/sda
    and
    pvcreate /dev/sdb

    then
    vgcreate <vol-name> /dev/sda /dev/sdb

    if it is sucessful
    do
    lvcreate -L<size> -n<lv-name> <vol-name>

    thats all now you can treat them as a single disk.
    for eg.
    if <vol-name> is vg0 and <lv-name> is lv0( which can be named as you want)
    then you can use the drives as /dev/vg0/lv0.

  10. #9
    Just Joined!
    Join Date
    Jul 2007
    Posts
    10
    [root@test]# pvcreate /dev/sda
    Device /dev/sda not found (or ignored by filtering)

    [root@test]# df
    /dev/mapper/VolGroup00-LogVol00 /
    /dev/sda1 /boot
    tmpfs /dev/shm

  11. #10
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209
    dude can you paste the output of fdisk -l

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •