Sponsored Content
Full Discussion: Partition advice
Top Forums UNIX for Dummies Questions & Answers Partition advice Post 302831079 by mcclunyboy on Wednesday 10th of July 2013 07:06:12 AM
Old 07-10-2013
Partition advice

Hi,

I have a number of RHEL servers, they are all identical in build and all are encountering disk space issues very frequently. I am hoping you can help me answer a few questions:

1. The servers have 40GB (:O) SWAP Space, I am hoping to reduce this to 10GB at most and then re-use the other 30GB. What is the best way to do this?

2. After doing the above, do I HAVE to create a new partition, or can I extend the existing partitions (I know I can use parted to do this but does it only work for the final partition)?

3. As the servers are virtual I can allocate more disk, I assume this is closely related to question 2- if I can use this to extend existing partitions I will, otherwise I will need to create extra partitions?

I have read quite a few articles around this, mainly from the RHEL knowledge-base and as I have never done this sort of thing before I was hoping for some advice/clarification.

Thanks.
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Looking for some advice

I am looking for some advice on wether to use unix or red hat linux? I have played with most windows OS and Mac OS up to in and including OS X. any and all advice would be appreciated (4 Replies)
Discussion started by: justawind
4 Replies

2. UNIX for Dummies Questions & Answers

understanding logical partition, physical partition

hi, 1) is logical partition the same as physical partition except that one is physical and the other is logical? 2) then it must a one to one ratio? (3 Replies)
Discussion started by: yls177
3 Replies

3. UNIX for Dummies Questions & Answers

I've created a partition with GNU Parted, how do I mount the partition?

I've created a partition with GNU Parted, how do I mount the partition? The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards. Thanks, --Todd (1 Reply)
Discussion started by: jtp51
1 Replies

4. Shell Programming and Scripting

looking for advice...

Hi. First of all, Im an msoft guy, and when it comes to linux/unix, I'm retarded. Here is what I'm trying to do. I want to start I want to automatically connect to a remote server. Then I need it to login(https) -insert the licensce in the box(vi) -based on that licensce, the... (1 Reply)
Discussion started by: bravo24601
1 Replies

5. Solaris

Need advice on soft partition

Hello All, Am trying to expand the soft partition which is in mirror. Am getting following error. Whether is it possible? or i am doing wrongly. Please assist. bash-2.05# metastat d100 d100: Mirror Submirror 0: d102 State: Okay Submirror 1: d105 State: Okay ... (7 Replies)
Discussion started by: gowthamakanthan
7 Replies

6. Shell Programming and Scripting

rsync from partition to partition fastest

Gentleman, Please move if I have chose the incorrect forum section. I am trying to move data that is not backed up from partition 1 to partition 2 on a SAN that has a GFS2 filesystem. Since the data is not backed up I am rsyncing this data and once verified I will delete from the source... (6 Replies)
Discussion started by: jaysunn
6 Replies

7. Shell Programming and Scripting

Need Advice

Guys, Can you tell me what value would additional knowledge of PERL and CGI scripting will add to my skill set of UNIX shell scripting and ORACLE PL/SQL? I understand that PERL is a good tool for text processing. (1 Reply)
Discussion started by: yabhi_22
1 Replies

8. Solaris

Partition overlaps another partition while creating new parition in solaris

hi all while formatting hard disk i am getting following error. Partition 1 ends at 266338338 It must be between 34 and 143374704. label error: EFI Labels do not support overlapping partitions Partition 8 overlaps partition 1. Warning: error writing EFI. Label failed. I have formatted the... (2 Replies)
Discussion started by: nikhil kasar
2 Replies

9. Filesystems, Disks and Memory

Ask concept soft partition vs hard partition

Hi Experts I would like to know different between soft partition concept and hard partition concept on solaris. Here is little explanation between soft partition concept and hard partition concept on solaris. Soft Partition: 1TB total space available in storage in all mapped to the OS to... (2 Replies)
Discussion started by: edydsuranta
2 Replies

10. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies
PARTX(8)						       System Administration							  PARTX(8)

NAME
partx - tell the Linux kernel about the presence and numbering of on-disk partitions SYNOPSIS
partx [-a|-d|-s] [-t TYPE] [-n M:N] [-] disk partx [-a|-d|-s] [-t TYPE] partition [disk] DESCRIPTION
Given a device or disk-image, partx tries to parse the partition table and list its contents. It optionally adds or removes partitions. The disk argument is optional when a partition argument is provided. To force scanning a partition as if it were a whole disk (for example to list nested subpartitions), use the argument "-". For example: partx --show - /dev/sda3 This will see sda3 as a whole-disk rather than a partition. This is not an fdisk program -- adding and removing partitions does not change the disk, it just tells the kernel about the presence and numbering of on-disk partitions. OPTIONS
-a, --add Add the specified partitions, or read the disk and add all partitions. -b, --bytes Print the SIZE column in bytes rather than in human-readable format. -d, --delete Delete the specified partitions or all partitions. -g, --noheadings Do not print a header line. -l, --list List the partitions. Note that all numbers are in 512-byte sectors. This output format is DEPRECATED in favour of --show. Don't use it in newly written scripts. -o, --output list Define the output columns to use for --show and --raw output. If no output arrangement is specified, then a default set is used. Use --help to get list of all supported columns. -r, --raw Use the raw output format. -s, --show List the partitions. All numbers (except SIZE) are in 512-byte sectors. The output columns can be rearranged with the --output option. -t, --type type Specify the partition table type -- aix, bsd, dos, gpt, mac, minix, sgi, solaris_x86, sun, ultrix or unixware. -n, --nr M:N Specify the range of partitions. For backward compatibility also the format <M-N> is supported. The range may contain negative numbers, for example "--nr :-1" means the last partition, and "--nr -2:-1" means the last two partitions. Supported range specifi- cations are: <M> Specifies just one partition (e.g. --nr 3). <M:> Specifies lower limit only (e.g. --nr 2:). <:N> Specifies upper limit only (e.g. --nr :4). <M:N> or <M-N> Specifies lower and upper limits (e.g. --nr 2:4). EXAMPLES
partx --show /dev/sdb3 partx --show --nr 3 /dev/sdb partx --show /dev/sdb3 /dev/sdb All three commands list partition 3 of /dev/sdb. partx --show - /dev/sdb3 Lists all subpartitions on /dev/sdb3 (the device is used as whole-disk). partx -o START -g --nr 3 /dev/sdb Prints the start sector of partition 5 on /dev/sda without header. partx -o SECTORS,SIZE /dev/sda5 /dev/sda Lists the length in sectors and human-readable size of partition 5 on /dev/sda. partx --add --nr 3:5 /dev/sdd Adds all available partitions from 3 to 5 (inclusive) on /dev/sdd. partx -d --nr :-1 /dev/sdd Removes the last partition on /dev/sdd. SEE ALSO
addpart(8), delpart(8), fdisk(8), parted(8), partprobe(8) AUTHORS
Davidlohr Bueso <dave@gnu.org> Karel Zak <kzak@redhat.com> The original version was written by Andries E. Brouwer <aeb@cwi.nl>. AVAILABILITY
The partx command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. util-linux February 2011 PARTX(8)
All times are GMT -4. The time now is 09:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy