LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 04:59 PM   #1
cellranking
Member
 
Registered: Jan 2016
Location: washington
Posts: 41

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, 05:21 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,262

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
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, 07:10 PM   #3
cellranking
Member
 
Registered: Jan 2016
Location: washington
Posts: 41

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

thank you
 
Old 05-11-2016, 07:53 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,262

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

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

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

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

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

Rep: Reputation: 131Reputation: 131
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


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


All times are GMT -5. The time now is 03:20 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration