LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 02-19-2013, 01:39 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Rep: Reputation: 53
How to extending /dev/mapper/fedora-data to take up spar/unused space


Hi all,

Fedora 18 desktop 64bit, newly installed

The capacity of the HD is 2TB

$ df -h
Code:
Filesystem                 Size  Used Avail Use% Mounted on
devtmpfs                    16G     0   16G   0% /dev
tmpfs                       16G  4.7M   16G   1% /dev/shm
tmpfs                       16G  9.4M   16G   1% /run
tmpfs                       16G     0   16G   0% /sys/fs/cgroup
/dev/mapper/fedora-root00   97G  4.3G   87G   5% /
tmpfs                       16G   20K   16G   1% /tmp
/dev/sda1                  236M  138M   86M  62% /boot
/dev/mapper/fedora-data    1.5T  470G  900G  35% /data
$ sudo fdisk -l
Code:
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00064d3a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          499712  3279364095  1639432192   8e  Linux LVM

Disk /dev/sdb: 120.0 GB, 120034123776 bytes, 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cde8a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048      499711      248832   83  Linux
/dev/sdb2          501758   234440703   116969473    5  Extended
/dev/sdb5          501760   234440703   116969472   8e  Linux LVM

Disk /dev/mapper/fedora-swap: 1048 MB, 1048576000 bytes, 2048000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-root00: 104.9 GB, 104857600000 bytes, 204800000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/localhost-root: 85.5 GB, 85513469952 bytes, 167018496 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/localhost-swap_1: 34.3 GB, 34259075072 bytes, 66912256 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-data: 1572.9 GB, 1572864000000 bytes, 3072000000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
I shall use this PC for virtualization running Oracle VirtualBox.

There are some spare space on the HD not used/installed. Pls advise;

1)
How to expand /dev/mapper/fedora-data taking up the rest unused space instead of reinstalling the complete system?

OR

2)
Another thought:-
At the present moment I don't need such a big space on /dev/mapper/fedora-data. What/How shall I use the spare/uninstalled space, now or in future?

TIA

B.R.
satimis
 
Old 02-19-2013, 07:23 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,971

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
There are several options.
You can resize the LVM partition to use the unallocated space and then resize the logical volumes as desired.
You can create a regular partition.
You can create another LVM partition with logical volumes and add the space to any of the existing LVs

Fedora has a GUI LVM tool and you can modify LVs on the fly without rebooting.
 
Old 02-19-2013, 09:24 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by michaelk View Post
There are several options.
You can resize the LVM partition to use the unallocated space and then resize the logical volumes as desired.
You can create a regular partition.
You can create another LVM partition with logical volumes and add the space to any of the existing LVs

Fedora has a GUI LVM tool and you can modify LVs on the fly without rebooting.
Hi,

Tks for your advice.

My original setup on the HD was making it dualboot leaving some space for testing clouds. Because some of them need bare metal to run. Now I'm prepared abandoning such an arrangement. Because I found several spare old HDs, 180G, 500G and 600G. I can use them testing cloud.

Frankly speaking 1.5T space on /dev/mapper/fedora-data is more than sufficient for my use including in the foreseeable future.

Leave the unalloted space there?

To resize /dev/mapper/fedora-data won't take me lot of work nor any risk. Because this is a new box without data on it. In the worst case if something goes wrong on resizing I just reinstall Fedora. But if there are VMs running on it, there will be lot of work to do in resizing /dev/mapper/fedora-data.

Oh, Yes. The Fedora installer has a wonderful tool resizing LVs on the fly. I almost forgot it. Several months back I ran it resizing HD making the latter dualboot. Ubuntu 12.04 was running on the HD occupying the entire HD capacity. I ran Fedora installer resizing the HD to install Fedora on the space obtained. Wonderful, it was very easy without failure. I did it at least 3~4 times.

B.R.
satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No hard disk space where I have 150gb unused in /dev/sda5 Angoni6 Linux - Newbie 23 07-05-2012 03:07 AM
The file system /dev/mapper/mail-root, mounted on /, has no space left farooklk Linux - Server 10 08-11-2011 12:16 PM
How to free up space in /dev/mapper/ddf1_****** rajnikant.sharma Linux - General 1 08-03-2010 09:21 AM
vgcreate command is changing /dev/mapper as PV Name in pvdisplay to /dev/dm-xx path neeravsingh Linux - Enterprise 6 03-23-2010 03:05 AM
LFS live-cd: /dev/mapper/lfs-cd ran out of space bucovaina78 Linux From Scratch 0 10-12-2009 11:00 AM


All times are GMT -5. The time now is 02:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration