LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-11-2016, 03:59 PM   #1
cellranking
Member
 
Registered: Jan 2016
Location: washington
Posts: 51

Rep: Reputation: Disabled
Displaying Logical Volumes


hi room

I try to increasing Displaying Logical Volumes from 2 TB to 7 TB when df -h following show

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 20G 514M 18G 3% /
/dev/sda8 16G 224K 16G 1% /dev/shm
/dev/sda1 9.5G 93M 9.0G 2% /boot
/dev/sdb1 1.9T 67M 1.8T 1% /disk/data1
/dev/sdb2 1.9T 67M 1.8T 1% /disk/data2
/dev/sda2 29G 45M 28G 1% /home
/dev/sda3 29G 327M 27G 2% /opt
/dev/sda9 4.7G 174M 4.3G 4% /tmp
/dev/sda6 20G 5.0G 14G 28% /usr
/dev/sda10 4.7G 1.3G 3.3G 28% /var
tmpfs 16G 224K 16G 1% /dev/shm
[lnxmatlab]# fdisk -l /dev/sdb

Disk /dev/sdb: 15998.8 GB, 15998753177600 bytes
255 heads, 63 sectors/track, 1945070 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000abb9c

Device Boot Start End Blocks Id System
/dev/sdb1 1 254965 2048000000 83 Linux
/dev/sdb2 254965 509929 2048000000 83 Linux

see i have to in crease from 2 TB to 7 TB more but lvextend -L7000G /dev/sdb1
lvextend -L7000G /dev/sdb1
Path required for Logical Volume "sdb1".
Please provide a volume group name
Run `lvextend --help' for more information.

please help
 
Old 05-11-2016, 04:21 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Your are not using LVM so you do not have any logical volumes.
The disk is partitioned using legacy MBR so the largest partition size is 2TB.

You can reformat the disk using GPT and then create an LVM partition with logical volumes sizes of your choice or create 2 separate 7TB partitions.
 
Old 05-11-2016, 06:10 PM   #3
cellranking
Member
 
Registered: Jan 2016
Location: washington
Posts: 51

Original Poster
Rep: Reputation: Disabled
Do you know how?

thank you
 
Old 05-11-2016, 06:53 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
What distribution / version are you running
 
Old 05-11-2016, 08:12 PM   #5
cellranking
Member
 
Registered: Jan 2016
Location: washington
Posts: 51

Original Poster
Rep: Reputation: Disabled
i am using redhat 6.7
 
Old 05-11-2016, 09:08 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Have you read the RHEL Storage Admin and LVM guides ?.
 
Old 05-11-2016, 09:09 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
You can use the parted command:

http://www.thegeekstuff.com/2012/08/2tb-gtp-parted/
 
Old 05-12-2016, 12:14 PM   #8
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Please use code tags for your output, much easier to read.

Code:
Please use me.
I'm really confused on what you are trying to do, as well as "Hi Room."

On one hand you say your trying to use LVM, however you use fdisk to display /dev/sdb1. If your using large partitions, you shouldn't be using fdisk. Also those partitions are only formatted with file type 83, when if you want to use LVM, it should be filetype 8e for Linux LVM.

If your using LVM, show us output of the following commands:

Code:
pvs
vgs 
lvs
 
  


Reply



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
Logical volumes gone. What's next? Berserker Linux - Software 1 11-01-2013 02:32 PM
df not displaying logical volumes dthaler Linux - Newbie 19 04-24-2012 04:28 AM
[SOLVED] Logical volumes not available on reboot Vanyel Linux - Server 11 09-19-2011 10:23 AM
Mounting Logical Volumes acidblue Fedora 6 01-28-2006 10:02 PM
I did not know about logical volumes gezi Linux - Newbie 5 04-27-2005 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:34 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration