Sponsored Content
Full Discussion: How to partition your disk?
Operating Systems Linux Red Hat How to partition your disk? Post 302774579 by bakunin on Saturday 2nd of March 2013 12:36:35 PM
Old 03-02-2013
First off: whatever your translation engine is, please switch to another one. I have a hard time second-guessing what you might mean.

Before you begin: PLAN, PLAN, PLAN, then plan again. Write down which application you are going to install, how much space you need for the binaries, how much for the data itself, etc..

Always keep in mind that it is easy to increase the size of a filesystem but hard to make it smaller. Therefore, start out with as little space as possible and increase this to the size necessary.

What you need:

1. Boot partition Linux cannot boot from a logical volume, so you need a boot partition to boot from. It should be formatted as "ext3" filesystem and can be very small: 512MB is absolutely enough.

2. The rest of the disk goes to one volume group. If i am correct the RedHat installation process will guide you through the creation of the volume group, so just follow the dialog.

3. Within the volume group all the other filesystems will be created as logical volumes. You will need:

3A. a swap area: make it the same size as your installed memory. More is not better, just a waste.

3B. a "/" filesystem (ext3 or ext4) for the system itself. 5GB are more than enough, you can make it bigger later if this is necessary.

3C. a "/tmp" filesystem (ext3 or ext4) for temporary files. Start with 1GB and increase as necessary.

3D. a "/opt" filesystem (ext3 or ext4) for the application (binaries). Start with what you have found out the application needs, NOT MORE. Increase if it is too small, but only then.

3E. You mentioned DB2, so you probably need some space for the database itself. Talk to the application people where to mount they want it mounted and how much space you have to provide for this. I suggest you leave that out during installation and create it later, as you don't need it to install the system.

3F. It might be a good idea to have a small filesystem for "/home", so that users can put some scripts in their home directories without taxing the "/" filesystem. You might also consider "/root" to be its own filesystem, because you might need some space for logs, administrative scripts, etc.. Start with 5GB in both cases and increase as necessary.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

partition Magic disk

How do I get a partition magic disk or a disk to create a non-DOS partition? :*: c0ldzer0 :*: (4 Replies)
Discussion started by: c0ldzer0
4 Replies

2. UNIX for Dummies Questions & Answers

Disk Partition

Hi All, While my LINUX SERVER installed we didnt' used all the space for partitions. with what tool I can create a new partition or mount point to use the free space. I tried the command fdisk and diskdruid. They are not working. Thanks in advance With Best regards, Varma. (2 Replies)
Discussion started by: jarkvarma
2 Replies

3. Solaris

New disk - how to partition?

Have a solaris x86 running solaris 9. Root disk - logical - mirrored. I added 2 more disks today - and I have mirrored them using array configuration utility. I did a reconfiguration boot - and now I can see the logical disk using format: I then partitioned this the way I wanted (I hope)... (4 Replies)
Discussion started by: frustrated1
4 Replies

4. Solaris

Disk Partition

I have 3 disks to partition in following file system. c1t1d0 = 72gb /prod1 /prod2 /prod3 /prod4 /prod5 I am first time using "format" command to do this. How can i name with specified size. -Adeel (1 Reply)
Discussion started by: deal732
1 Replies

5. UNIX for Advanced & Expert Users

partition disk issue

hi guys, I've got a strange issue, may be one of you has experienced this. SunOS 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V440 everything is mirrored. My issue is that I have a umpty directory but seems to have data on. Let me show you # df -h /data Filesystem size used... (10 Replies)
Discussion started by: moustik
10 Replies

6. Filesystems, Disks and Memory

Partition disk

Hi, Can I partition disk in use or would I damage the file store on it? Regards Mehrdad (1 Reply)
Discussion started by: mehrdad68
1 Replies

7. Solaris

Move partition to new disk

Hi, The disks of my servers are getting full and I need to move the /export/home partition on to a new set of disks. I already have 2 mirrored disks and have added 2 more and mirrored them after creating the filesystem on them. Do I just need to edit the /etc/vfstab and point the /export/home... (1 Reply)
Discussion started by: run_time_error
1 Replies

8. UNIX for Advanced & Expert Users

Shrink my partition to new disk

I want to backup my partitions by shrinking it my issue is like I want to create a new disk copy from only the used blocks I my current image. How would I redirect the output of resize2fs to new disk and dd the current partition so that I can boot my new image without issues and also without... (3 Replies)
Discussion started by: amol28kulkarni
3 Replies

9. Red Hat

Disk Partition : Skip 1 MB

I want to skip the first cylinder (first 1 MB infact) while I partition my disk using fdisk as it is required that the disk partition to be used (for Oracle RAC Installation) must skip the first 1Mb to avoid overwriting the disk VTOC. The way I am using is: Command (m for help): n Command... (2 Replies)
Discussion started by: jpsingh
2 Replies

10. Solaris

Disk partition slice0

Hi Guys, when performing a disk partition, can any file system other than root be giving to slice 0 or must slice0 hold only root? I am confused about this. Any clarification will be greatly appreciated. Thanks Guys (4 Replies)
Discussion started by: cjashu
4 Replies
MBRLABEL(8)						    BSD System Manager's Manual 					       MBRLABEL(8)

NAME
mbrlabel -- update disk label from MBR label(s) SYNOPSIS
mbrlabel [-fqrw] [-s sector] device DESCRIPTION
mbrlabel is used to update a NetBSD disk label from the Master Boot Record (MBR) label(s) found on disks that were previously used on DOS/Windows systems (or other MBR using systems). mbrlabel scans the MBR contained in the very first block of the disk (or the block specified through the -s flag), then walks through every extended partition found and generates additional partition entries for the disk from the MBRs found in those extended partitions. Each MBR partition which does not have an equivalent partition in the disk label (equivalent in having the same size and offset) is added to the first free partition slot in the disk label. A free partition slot is defined as one with an fstype of 'unused' and a size of zero ('0'). If there are not enough free slots in the disk label, a warning will be issued. The raw partition (typically partition c, but d on i386 and some other platforms) is left alone during this process. By default, the proposed changed disk label will be displayed and no disk label update will occur. Available options: -f Force an update, even if there has been no change. -q Performs operations in a quiet fashion. -r In conjunction with -w, also update the on-disk label. -s sector Specifies the logical sector number that has to be read from the disk in order to find the MBR. Useful if the disk has remapping drivers on it and the MBR is located in a non-standard place. Defaults to 0. -w Update the in-core label if it has been changed. See also -r. SEE ALSO
disklabel(8), dkctl(8), fdisk(8), mbr(8) HISTORY
The mbrlabel command appeared in NetBSD 1.4. BSD
April 5, 2010 BSD
All times are GMT -4. The time now is 10:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy