02-23-2009
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!
10 More Discussions You Might Find Interesting
1. AIX
When I give lsvg command
It says no VGs found
When I give lspv,it gives a listing of all PVs corresponding to their respective VGs i.e. rootvg,uservg,etc.
But when I give lspv hdisk0
It says rootvg not found in Configuration Manager Database.
thanks
Manu (3 Replies)
Discussion started by: b_manu78
3 Replies
2. Linux
Hi all,
I have a server running in RH ES4, the SCSI HD are running in RAID 1.
I backup the LVM config by using 'vgcfgbackup' and then remove all the HD.
I insert another HD (same size & branch but different model) into the machine and run linux rescue to recreate the... (0 Replies)
Discussion started by: donaldfung
0 Replies
3. AIX
I have my application vendor looking at this but I want to do my own investigation.
I restored from mksysb and I see my vgs that contain my internal disks.
But I do not see my vgs that contain disks from the SAN. This scares me ..
{{ Ha, ha!! My AIX expert boss just told me I have nothing... (0 Replies)
Discussion started by: Skyybugg
0 Replies
4. Linux
:eek:
Hi guys,
I'm pulling my hair out over this one. I am trying to set up a virtual server environment. ( I am using VirtualBox, but I think this is irrelevant to this problem.) I have downloaded a pre-packaged Linux virtual disk, with which I have successfully started a virtual instance of a... (4 Replies)
Discussion started by: otheus
4 Replies
5. AIX
Hi Guys,
I found on one of the server there are 2 VG's which I dont have any Idea of who created .. as below
bash-3.00$ lsvg
old_rootvg
rootvg
datavg
altinst_rootvg
altinst_rootvg under is meant for alternate disk installation.. But I'm not sure for which version of OS it was... (5 Replies)
Discussion started by: kkeng808
5 Replies
6. Shell Programming and Scripting
lsvg command returns
rootvg
mqB01vg
heartbeatvg
mqA01vg
oracleAvg2
cevgA01
orastgevg
.....
lsvg -o command returns
rootvg
mqB01vg
heartbeatvg
mqA01vg
oracleAvg2
...... (3 Replies)
Discussion started by: Daniel Gate
3 Replies
7. HP-UX
Requirement to remove a faulty mirrored disk from hp-ux LVM
<root@pdwp1s>/etc # vgdisplay -v /dev/vg00
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't... (9 Replies)
Discussion started by: Shirishlnx
9 Replies
8. UNIX for Dummies Questions & Answers
Hi Guys,
I m using redhat 6, I have installed root partition as non-LVM .
Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies
9. Red Hat
I wanted to know how we can combine volumes over 2 physical drives.
# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 ... (16 Replies)
Discussion started by: ikn3
16 Replies
10. Red Hat
Hello friends,
We had to upgrade RHEL 4.x to 5.7 so we took complete backup. Since DIRECT UPGRADE not possible, we rebuilt 5.7 from scratch.
We had lvm configuration on DATA disks in previous OS and now we need to configure such that we should be able to have same old LVM configuration (like... (1 Reply)
Discussion started by: prvnrk
1 Replies