The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > SuSE
.
google unix.com



SuSE SUSE Linux is a major operating system. The developer rights are owned by Novell, Inc.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Re-using disks Chains SUN Solaris 4 09-16-2008 04:56 AM
new IBM pseries and new disks sapbcer AIX 2 07-19-2007 12:30 PM
Disks on AIX piooooter UNIX for Dummies Questions & Answers 2 03-07-2006 05:20 AM
smitty, remove user, remove directory as well.. yls177 UNIX for Dummies Questions & Answers 2 11-11-2002 02:43 AM
how many disks do I have? g-e-n-o UNIX for Dummies Questions & Answers 8 11-01-2001 03:20 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-23-2009
upengan78 upengan78 is offline
Registered User
  
 

Join Date: Jun 2008
Location: Texas
Posts: 142
Remove disks from VGs in LVM

Hi,

I have following set up on Open suse 11

Quote:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/system-lvm_root
10G 2.9G 7.2G 29% /
udev 380M 204K 380M 1% /dev
/dev/sda1 69M 19M 47M 29% /boot
/dev/mapper/system-lvm_home
16G 46M 16G 1% /home
/dev/mapper/system-lvm_var
12G 205M 12G 2% /var

vgdisplay
Quote:
--- Volume group ---
VG Name system
System ID
Format lvm2
Metadata Areas 3
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 3
Act PV 3
VG Size 64.90 GB
PE Size 4.00 MB
Total PE 16615
Alloc PE / Size 9703 / 37.90 GB
Free PE / Size 6912 / 27.00 GB
VG UUID dvGjCU-3tMK-sKD0-Mz3G-d1L9-w9J6-B2K7vO
pvdisplay
Quote:
--- Physical volume ---
PV Name /dev/sda2
VG Name system
PV Size 14.95 GB / not usable 3.95 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 3827
Free PE 3827
Allocated PE 0
PV UUID XTK5R3-sY4a-0BBA-Trdz-oOA4-4yh2-vVGvUq

--- Physical volume ---
PV Name /dev/sdb
VG Name system
PV Size 24.98 GB / not usable 1.00 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 6394
Free PE 2323
Allocated PE 4071
PV UUID 2xFDLk-BDMo-w3To-Rji3-u2uF-Y261-smO15y

--- Physical volume ---
PV Name /dev/sdc
VG Name system
PV Size 24.98 GB / not usable 1.00 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 6394
Free PE 762
Allocated PE 5632
PV UUID ZldiOq-oV0i-7kJu-h2bE-F0N8-Itop-RS1bYj
lvdisplay
Quote:
--- Logical volume ---
LV Name /dev/system/lvm_home
VG Name system
LV UUID WR1bQc-qTs0-6ZIt-vb7J-aKqW-YfA7-he3zbm
LV Write Access read/write
LV Status available
# open 2
LV Size 15.90 GB
Current LE 4071
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/system/lvm_root
VG Name system
LV UUID W5IYTF-0rPC-GlNJ-J1VQ-EVPq-U8Ax-hOQvX3
LV Write Access read/write
LV Status available
# open 2
LV Size 10.00 GB
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

--- Logical volume ---
LV Name /dev/system/lvm_var
VG Name system
LV UUID VeJ7nm-t0oO-0a0M-klef-EwI4-0Ciq-N5Jg2Y
LV Write Access read/write
LV Status available
# open 2
LV Size 12.00 GB
Current LE 3072
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2

I would like to remove these disks /dev/sdb and /dev/sdc from LVM and do not use them for anything..

Can anyone please help me with this ?

Thanks!
  #2 (permalink)  
Old 03-26-2009
mark54g mark54g is offline
Registered User
  
 

Join Date: May 2008
Posts: 363
I would recommend that you add a drive sizable to contain the filesystems to your volume group, then pvmove to them, and then vgreduce the drives out of your VG and then power off, remove the disks and be done with it


If you don't want to remove them physically, and want to keep them for something else, you can fdisk them and use them for whatever.

run lsscsi to show the drives in a more readable way
Bits Awarded / Charged to mark54g for this Post
Date User Comment Amount
07-15-2009 upengan78 N/A 5
Closed Thread

Bookmarks

Tags
unresolved, unresolved for weeks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0