Resize partition volume


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Resize partition volume
# 1  
Old 05-01-2019
Resize partition volume

Hello,
I am running ubuntu 14.04.
Have just installed torrent into home directory but /dev/md2 is almost full.
Is it possible to resize md2 to get rid of any problem that may arise in the near future?

Code:
Filesystem      Size  Used Avail Use% Mounted on
udev             17G  4.1k   17G   1% /dev
tmpfs           3.4G  685k  3.4G   1% /run
/dev/md2         21G   20G  211M  99% /
none            4.1k     0  4.1k   0% /sys/fs/cgroup
none            5.3M     0  5.3M   0% /run/lock
none             17G     0   17G   0% /run/shm
none            105M     0  105M   0% /run/user
/dev/sda1       535M  156k  535M   1% /boot/efi
/dev/md3        4.0T  602G  3.2T  17% /home

The company gives a tutorial here showing how to mount extra disk into system. I am unable to use it as partition names are not the same..

PS: I have found a solution which saves my day but it would be better to learn how to resize RAID partition..

Thank you
Boris

Last edited by baris35; 05-01-2019 at 07:25 PM..
# 2  
Old 05-02-2019
First of all, learn to utilize volume groups.
Not matter of the backed devices (md devices, disk devices, fc luns etc), the flexibility offered is substantial.

As for your situation, you can replace all disks in array with bigger ones then grow.
Growing - Linux Raid Wiki

This will require work and has its risks, additional inspection should be done when dealing with root and boot filesystems (/)
For learning, pop a virtual machine, make similar setup and test the scenarios.

What i recommend is examining what is taking so much space on /dev/md2 21G 20G 211M 99% /
Clean up the space and/or make symlinks to /home from stuff which you pile in root filesystem, and it is not related to system, but your actions (torrents, downloads etc.)

Again, having volume group instead of /home over md device would have some advantages as well.

I would like to point out that having root on 99% is not advisable or prudent to have Smilie

Hope that helps
Regards
Peasant.
These 2 Users Gave Thanks to Peasant For This Post:
# 3  
Old 05-02-2019
Thank you Peasant,
Removed unneccessary files and it's around 5% now but that'd not the case.
I will do some tests on a vps as you guided. I'll be back :/

Kind regards
Boris
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Resize Linux partition

Hello., Could any one please share the informaiton about this or please point me the reference : Assume, we have the following partition after linux machine is setup, it will mention like this : bash$ df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda2 10G... (3 Replies)
Discussion started by: alnhk
3 Replies

2. SCO

Resize root partition

I have SCO Openserver 5.0.5 Root partition is 96% full and I would like to make it bigger. How can this be done? 1) Can I use 'dd' to backup 'root' and then backup '/u' to a third hard disk, then divvy the primary hard disk to have a larger 'root' filesystem (i.e. previous root + u) 2) ... (5 Replies)
Discussion started by: grips03
5 Replies

3. HP-UX

Resize volume

Dear All, We have HP Unix 11.31. We have two VG, VG01 and VG02. In VG01 there are three mount point each of 100gb size. There is no data on below mount point /soft/01 /soft/02 /soft/03Is it possible to resize each of these mount point to 50 GB. So 150 GB will free and release from... (2 Replies)
Discussion started by: bhattnirav
2 Replies

4. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies

5. Red Hat

How to RESIZE / root partition in RHEL5 (VM)?

Hi Team, Require your expertise on how to resize / partition. This is VM. Thank you. Reggy # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 15G 13G 556M 96% / /dev/sda1 965M 43M 873M 5% /boot tmpfs 502M 0 ... (5 Replies)
Discussion started by: regmaster
5 Replies

6. SCO

Partition Resize / Creation

Hello, I'm new to SCO and I require some help... I have an OLD HD which is about to die and I want to replace it with a new HD. When I clone the HD with either Acronis or Ghost it wont allow me to resize the UNIX partition and I'm stuck with 80% of the new drive as unused space. I... (7 Replies)
Discussion started by: dochost
7 Replies

7. Solaris

Veritas volume manager resize

Hiii, Can any one sugge me best practices for resizing a veritas voulume with vxfs file system? I tried doing this vxassist -g stg shrinkto stgvol 209715200 VxVM vxassist ERROR V-5-1-7236 Shrinking a FSGEN or RAID5 usage type volume can result in loss of data. It is recommended... (1 Reply)
Discussion started by: anwesh
1 Replies

8. SCO

SCO 5.0.6 how to partition resize in HTFS?

I have a 17GB SCSI disk in an SCO 5.0.6 server and it's running out of space because of a growing database on the disk. Consequently I would like to upgrade the 17GB to a 74GB disk and extend the partition. First off, is partition extension available under HTFS - I know this is an old... (1 Reply)
Discussion started by: carribey
1 Replies

9. Solaris

How to resize mirror volume in veritas volume manager 3.5 on Solaris 9 OE

Hi all, I have a problem with vxvm volume which is mirror with two disks. when i am try to increase file system, it is throwing an ERROR: can not allocate 5083938 blocks, ERROR: can not able to run vxassist on this volume. Please find a sutable solutions. Thanks and Regards B. Nageswar... (0 Replies)
Discussion started by: nageswarb
0 Replies

10. UNIX for Advanced & Expert Users

Resize FREEBSD 5.4 partition

Experts, I am trying to repartition my FreeBSD partition to accomodate 1GB of DOS partition so that I can have the samba share support. I wanted to know the procedure to resize an exsiting FreeBSD partition. Thanks in advance for your help. Regards, Jim (1 Reply)
Discussion started by: jimmynath
1 Replies
Login or Register to Ask a Question