Remove Physical volume from existing root LVM

15 views
Skip to first unread message

Panchal..Chetan

unread,
Feb 24, 2017, 12:53:18 PM2/24/17
to vglug
Hi All,

Could you somebody help me here, How to remove physical volume(/dev/sdb) from existing root LVM? 

Let me know if you need more information.

Below are the details :-

[root@localhost ~]# df -h
Filesystem                   Size  Used Avail Use% Mounted on
/dev/mapper/vg_root-lv_root   38G  4.0G   32G  12% /
tmpfs                       1004M   72K 1004M   1% /dev/shm
/dev/sda1                    194M   35M  150M  19% /boot

[root@localhost ~]# pvs
  PV         VG      Fmt  Attr PSize  PFree
  /dev/sda3  vg_root lvm2 a--  37.80g    0
[root@localhost ~]# vgs
  VG      #PV #LV #SN Attr   VSize  VFree
  vg_root   1   1   0 wz--n- 37.80g    0
[root@localhost ~]# lvs
  LV      VG      Attr       LSize  Pool Origin Data%  Move Log Cpy%Sync Convert
  lv_root vg_root -wi-ao---- 37.80g

[root@localhost ~]# lvs -a -o +devices
  LV      VG      Attr       LSize  Pool Origin Data%  Move Log Cpy%Sync Convert Devices
  lv_root vg_root -wi-ao---- 47.80g                                              /dev/sda3(0)
  lv_root vg_root -wi-ao---- 47.80g                                              /dev/sdb(0)
[root@localhost ~]# lvdisplay -m /dev/mapper/vg_root-lv_root
  --- Logical volume ---
  LV Path                /dev/vg_root/lv_root
  LV Name                lv_root
  VG Name                vg_root
  LV UUID                omG9F7-2RlX-9t48-30l0-hLki-nOlU-7selP5
  LV Write Access        read/write
  LV Creation host, time localhost.localdomain, 2017-02-23 13:13:31 +0530
  LV Status              available
  # open                 1
  LV Size                47.80 GiB
  Current LE             12236
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Segments ---
  Logical extent 0 to 9676:
    Type                linear
    Physical volume     /dev/sda3
    Physical extents    0 to 9676

  Logical extent 9677 to 12235:
    Type                linear
    Physical volume     /dev/sdb
    Physical extents    0 to 2558



-Chetan

Nishith Vyas

unread,
Feb 25, 2017, 2:57:02 AM2/25/17
to vg...@googlegroups.com
Never heard to remove physical drive from LVM...!!!

Need to perform practical first for the said query as you are asking to unmounted and remove root partition, which has OS, not data.

;)

-Nishith N.Vyas


--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG+unsubscribe@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG

---
You received this message because you are subscribed to the Google Groups "VGLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vglug+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages