LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-12-2014, 01:41 PM   #1
Zapnologica
LQ Newbie
 
Registered: Feb 2014
Posts: 1

Rep: Reputation: Disabled
Help With LVM in Ubuntu


Good day all, I am new to this forum so I say hello.

I need some help with a little boo boo I made. I just installed a nice new fresh copy of Ubuntu Server, Installed Webmin and then started playing around trying to mount a 3tb drive to the system. Now I chose to install my setup and a LVM drive as I though it would give me allot of flexibility. But I seem to have messed it up now.

Basically I exended the root drive to all my free disk space. Here is my situation:

Code:
dylan@server:~$ sudo pvdisplay -m
[sudo] password for dylan:
  --- Physical volume ---
  PV Name               /dev/sda5
  VG Name               server-vg
  PV Size               232,65 GiB / not usable 1,81 MiB
  Allocatable           yes (but full)
  PE Size               4,00 MiB
  Total PE              59557
  Free PE               0
  Allocated PE          59557
  PV UUID               n43xj5-aexN-W9n7-SuE0-RIFe-p2dt-W9G1n9

  --- Physical Segments ---
  Physical extent 0 to 59076:
    Logical volume      /dev/server-vg/root
    Logical extents     0 to 59076
  Physical extent 59077 to 59555:
    Logical volume      /dev/server-vg/swap_1
    Logical extents     0 to 478
  Physical extent 59556 to 59556:
    Logical volume      /dev/server-vg/root
    Logical extents     59077 to 59077

  --- Physical volume ---
  PV Name               /dev/sdb2
  VG Name               server-vg
  PV Size               2,73 TiB / not usable 3,00 MiB
  Allocatable           NO
  PE Size               4,00 MiB
  Total PE              715364
  Free PE               0
  Allocated PE          715364
  PV UUID               90NDL3-LZCU-H7FH-Z1Dw-S7AW-tOxe-3Uv612

  --- Physical Segments ---
  Physical extent 0 to 715363:
    Logical volume      /dev/server-vg/root
    Logical extents     59078 to 774441

  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               server-vg
  PV Size               127,81 MiB / not usable 3,81 MiB
  Allocatable           NO
  PE Size               4,00 MiB
  Total PE              31
  Free PE               0
  Allocated PE          31
  PV UUID               rMOQPq-1Smm-MkfI-9PGi-cME0-7KWD-feTzLX

  --- Physical Segments ---
  Physical extent 0 to 30:
    Logical volume      /dev/server-vg/root
    Logical extents     774442 to 774472
Here is my Logical Volumes:

Code:
dylan@server:~$ lvdisplay -m
  WARNING: Running as a non-root user. Functionality may be unavailable.
  No volume groups found
dylan@server:~$ sudo lvdisplay -m
  --- Logical volume ---
  LV Name                /dev/server-vg/root
  VG Name                server-vg
  LV UUID                W4tvZX-FohJ-Ufqc-2LcE-rsFd-ay8Q-KFMbzG
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2,95 TiB
  Current LE             774473
  Segments               4
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0

  --- Segments ---
  Logical extent 0 to 59076:
    Type                linear
    Physical volume     /dev/sda5
    Physical extents    0 to 59076

  Logical extent 59077 to 59077:
    Type                linear
    Physical volume     /dev/sda5
    Physical extents    59556 to 59556

  Logical extent 59078 to 774441:
    Type                linear
    Physical volume     /dev/sdb2
    Physical extents    0 to 715363

  Logical extent 774442 to 774472:
    Type                linear
    Physical volume     /dev/sdb1
    Physical extents    0 to 30


  --- Logical volume ---
  LV Name                /dev/server-vg/swap_1
  VG Name                server-vg
  LV UUID                fdgcQU-ARVD-jp8h-tPFw-a3Bm-fi75-xeWbyD
  LV Write Access        read/write
  LV Status              available
  # open                 2
  LV Size                1,87 GiB
  Current LE             479
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:1

  --- Segments ---
  Logical extent 0 to 478:
    Type                linear
    Physical volume     /dev/sda5
    Physical extents    59077 to 59555
Now what I actully want to do is remove my 3tb drive from the LVM as I want to store important backups on it. And if say my 250 root drive dies I want to be able to plug the 3tb into a windows machine and read the data off it.

I really hope that I can fix this issue.

Thanks

Last edited by Zapnologica; 02-12-2014 at 01:43 PM.
 
Old 02-13-2014, 08:41 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,730

Rep: Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920
The system-config-lvm GUI utility should be able to remove the PV from your logical volume.
 
  


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
Ubuntu 10.10 LVM Corruption nasaboy007 Linux - Hardware 2 10-01-2011 11:44 PM
[SOLVED] ubuntu 10.10, LVM ! noony123 Linux - Newbie 4 01-30-2011 06:22 PM
lvm and raid on ubuntu 10.04 LTS drManhattan Ubuntu 2 10-21-2010 12:48 PM
[SOLVED] ubuntu graphical lvm unix1adm Linux - Newbie 13 08-06-2009 07:22 PM
LVM with Ubuntu 6.10 Beta preeth26 Ubuntu 6 10-01-2006 07:15 PM

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

All times are GMT -5. The time now is 09:17 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
Open Source Consulting | Domain Registration