LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I create a Linux Parition? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-create-a-linux-parition-688377/)

Treikayan 12-04-2008 03:21 PM

How do I create a Linux Parition?
 
Hello,

I would like to know how to do two things

1) How would I add another IDE Hard Disk to my system and extend the filesystem on it?

2) I would like to create a 10G partition on the new drive

Please let me know what information you would need to know for this.

Thank you.

weibullguy 12-04-2008 03:28 PM

The first item on a long list from the Google search for 'create partition linux' that you could have done yourself --> http://tldp.org/HOWTO/Partition/

TB0ne 12-04-2008 03:31 PM

Quote:

Originally Posted by Treikayan (Post 3364724)
Hello,

I would like to know how to do two things

1) How would I add another IDE Hard Disk to my system and extend the filesystem on it?

2) I would like to create a 10G partition on the new drive

Please let me know what information you would need to know for this.

Thank you.

Well, saying what version/distro of linux you're running would be a good start, along with some details about your hardware, and what your current configuration is.

You say "extend the filesystem on it". That's vague...do you want to create a new filesystem, add the new disk to an existing logical volume group to get more space, or (as you say in point 2), create a 10G partition. You don't say anything about the 10g, but I assume it's to do with Oracle, which brings up more questions. Using ASM on it? How big of a database/how much IO?

Treikayan 12-04-2008 03:55 PM

Distribution: CentoOS 5.1 i386
Hardware: HP Pavilion, IDE Hard Drive (40GB). The drive I want to add is the same.

I would like to use both drives as if they are one, so that would be all 80GB (1st and 2nd drive together). The 10GB is nothing special, I just wanted to learn (and know) how to do it in case down the road I decided to do it.

What do you mean by configurations?

teknik 12-04-2008 04:05 PM

you can't just "use both drives as if they are one", unless your using raid, which you'll need sata drives for, not ide.

what you CAN do is mount your new hard drive to a mount point inside your existing file system.

for example, /home/your_user/newdrive

Treikayan 12-04-2008 04:19 PM

Ok, I apoligize, but scratch the initial question. The only reason I asked the first question was so I could test it first on a test box!

Now, I do have a server that is setup in a RAID-5 setup (5 drives). They are SATA Hard drives (sda).

Hardware: Intel Server SE7500Wv2

I would like to have a 50G partition added to the default Volume Group.

TB0ne 12-04-2008 04:31 PM

Quote:

Originally Posted by teknik (Post 3364774)
you can't just "use both drives as if they are one", unless your using raid, which you'll need sata drives for, not ide.

what you CAN do is mount your new hard drive to a mount point inside your existing file system.

for example, /home/your_user/newdrive

Yes, you can....creating a logical volume group can easily do this. Adding a 5GB slice from drive A, to the 60GB from drive B, and 80GB from drive C, can create one 145GB 'drive'. It looks like one drive, but data is written to all of them. Drawback is, you lose one drive...you lose them all.

TB0ne 12-04-2008 04:33 PM

Quote:

Originally Posted by Treikayan (Post 3364794)
Ok, I apoligize, but scratch the initial question. The only reason I asked the first question was so I could test it first on a test box!

Now, I do have a server that is setup in a RAID-5 setup (5 drives). They are SATA Hard drives (sda).

Hardware: Intel Server SE7500Wv2

I would like to have a 50G partition added to the default Volume Group.

Not that difficult to do that at all, if you've already got a volume group built and defined. This:

http://www.howtoforge.com/linux_lvm

Will help you. You can easily add a second IDE drive, and play with LV's until you're comfortable, then do it in production (never a bad idea...)

i92guboj 12-04-2008 04:35 PM

Quote:

Originally Posted by TB0ne (Post 3364804)
Yes, you can....creating a logical volume group can easily do this. Adding a 5GB slice from drive A, to the 60GB from drive B, and 80GB from drive C, can create one 145GB 'drive'. It looks like one drive, but data is written to all of them. Drawback is, you lose one drive...you lose them all.

Yes, you can, and that's not the only way.

It all comes down to the file system you use. LVM is a valid alternative, but ZFS can also do this without problems. UnionFS is another example.


All times are GMT -5. The time now is 08:12 PM.