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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
04-02-2017, 08:33 AM
|
#1
|
LQ Newbie
Registered: Jan 2011
Posts: 9
Rep:
|
Dedicated server with 2 drives as RAID1
Hi
I am sort of newbie to linux, using hit & trial method to learn something new
Anyways I have just aquired dual drive (250GB each) Pre-Configured dedicated server which was installed using the install link provided in panel.
I have installed webmin/virtualmin to easyfy things
I want to use the 2 drives for RAID1
Below is the output of few commands I know
Quote:
[root@server ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg-root 225G 25G 189G 12% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 243M 68M 162M 30% /boot
/dev/mapper/vg-tmp 976M 4.1M 921M 1% /tmp
[root@server ~]# mount
/dev/mapper/vg-root on / type ext4 (rw,noatime,grpquota,discard,usrquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext2 (rw)
/dev/mapper/vg-tmp on /tmp type ext4 (rw,noatime,discard)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
|
|
|
|
04-03-2017, 04:14 AM
|
#2
|
Senior Member
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199
Rep: 
|
Usually, yo have to setup the drives with RAID during installation.
|
|
|
04-03-2017, 03:18 PM
|
#3
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
I might be not reading what you have but if you have lvm you could move stuff around maybe and add the second drive to the array. Pretty sure I recall that from lvm stuff read long ago.
|
|
|
04-04-2017, 03:45 AM
|
#4
|
LQ Newbie
Registered: Jan 2011
Posts: 9
Original Poster
Rep:
|
@Keruskerfuerst
Actually this server is pre-configured and is installed by clicking the link
@jefro
I think it is LVM and there is one virtual group in it named 'vg' which is 232.81GB in size. But I don't know how to move stuff, should I have to create another virtual group oe what else.
Rizwan
|
|
|
04-04-2017, 03:54 AM
|
#5
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
So is there a /dev/sdb? I'd check that. If there is then both disks are being presented to the OS.
madam would probably be the facility that you are after but it is definitely easier to set-up during installation, rather than post installation. Alternative if the physical box supports it, you could set-up the RAID1 on a hardware or embedded RAID. My personal preferences tends to be hardware -> software -> embedded. I'd only use embedded as a last resort, since they tend to be flaky from experience.
|
|
|
04-05-2017, 03:45 AM
|
#6
|
LQ Newbie
Registered: Jan 2011
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by r3sistance
So is there a /dev/sdb? I'd check that. If there is then both disks are being presented to the OS.
madam would probably be the facility that you are after but it is definitely easier to set-up during installation, rather than post installation. Alternative if the physical box supports it, you could set-up the RAID1 on a hardware or embedded RAID. My personal preferences tends to be hardware -> software -> embedded. I'd only use embedded as a last resort, since they tend to be flaky from experience.
|
Well there are 2 Drives there
/dev/sdb 239GB
/dev/sda 243MB /root
Below is the outupt of df -h
[root@server ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg-root 225G 44G 170G 21% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 243M 68M 162M 30% /boot
/dev/mapper/vg-tmp 976M 4.1M 921M 1% /tmp
|
|
|
All times are GMT -5. The time now is 08:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|