LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Partition & filesystem creation question (https://www.linuxquestions.org/questions/linux-newbie-8/partition-and-filesystem-creation-question-445489/)

Chantale 05-16-2006 05:43 PM

Partition & filesystem creation question
 
I'm a n00b with a question.

I have a system running RHEL v4 with 2 hard drives in a hardware Raid 0 config. I did a kickstart/cd installation, installed the necessary rpms from command line, and then found out I need another partition. /var is in a 47G partition. I copied /var to a temp directory on another partition, redid /dev/cciss/c0d0p2 (the physical partition that /var is in), then chose to add 1 extended and 4 logical partitions to c0d0p2. So now I've got c0d0p2p1 extended, and c0d0p2p5, c0d0p2p6, c0d0p2p7, c0d0p2p8 logical partitions. I need to create file systems in these partitions so that I may create mountpoints for them... one of the logicals will contain/mount to /var. The others are needed for an Oracle install, where I have to mount /u01, /u01/redo1, /u01/archive. I'll be mounting more /u01/.. directories on a SAN.. I've already got the file systems created in the partitions there. Am I approaching this correctly? Any hints?

Thanks
Shannon

Agrouf 05-17-2006 10:08 AM

Quote:

Originally Posted by Chantale
Am I approaching this correctly?

I see no problem from where I seat.

Chantale 05-17-2006 10:39 AM

Ok... herein lies the problem... When I try to create a filesystem on any of the new partitions I get an error.
Code:

# mkfs.ext3 /dev/cciss/c0d0p2p5
mke2fs 1.35 (28-Feb-2004)
Could not stat /dev/cciss/c0d0p2p5 --- No such file or directory

The device apparently does not exist; did you specify it correctly?

I may have been a little murky in my previous explanation as to where partitions are situated..
Code:

/dev/cciss/c0d0p1  /boot
/dev/cciss/c0d0p2  /var
/dev/cciss/c0d0p3  /opt
/dev/cciss/c0d0p4  extended
/dev/cciss/c0d0p5  /usr
/dev/cciss/c0d0p6  /
/dev/cciss/c0d0p7  /tmp
/dev/cciss/c0d0p8  swap

c0d0p2 owns some partitions now...

Code:

/dev/cciss/c0d0p2p1  extended
/dev/cciss/c0d0p2p5  /var
/dev/cciss/c0d0p2p6  /u01
/dev/cciss/c0d0p2p7  /u01/redo1
/dev/cciss/c0d0p2p8  /u01/archive

This is hurting my brain. :P

pixellany 05-17-2006 10:54 PM

If I read this numbering correctly, you have p4 in the first list as an extended partition. In the second list, you have more partitions that look like subsets of partition 2. The two list do not appear to be consistent.....

Chantale 05-18-2006 10:15 AM

That may well have been the problem.. I thought it had been changed to an extended partition before I created the new subpartitions. I have worked around the problem, although it involved a complete new reinstall, adding the desired partitions to the kickstart disk. It's smooth sailing now!

Thanks for your insight!


All times are GMT -5. The time now is 07:48 PM.