Solved

LVM Problem

Posted on 2014-10-12
12
363 Views
Last Modified: 2014-10-12
Hi

On one of my servers running CentOS 5.10 i am getting following error when I do pvdisplay

 
Found duplicate PV 4v7t3eBU6gdOqIDNFA2wrez14GXGsyzO: using /dev/sdb5 not /dev/md3

Open in new window


The server is running software RAID 10. It was fine till last week and during the week I did yum update.

Here's the output of /proc/mdstat

Personalities : [raid10] [raid1] 
md1 : active raid1 sdd1[3] sdc1[2] sdb1[1] sda1[0]
      513984 blocks [4/4] [UUUU]
      
md2 : active raid10 sdd3[3] sdc3[2] sdb3[1] sda3[0]
      16386048 blocks 256K chunks 2 near-copies [4/4] [UUUU]
      
md3 : active raid10 sdd5[3] sdc5[2] sdb5[1] sda5[0]
      1726392832 blocks 256K chunks 2 near-copies [4/4] [UUUU]
      
md0 : active raid10 sdd2[3] sdc2[2] sdb2[1] sda2[0]
      209712128 blocks 256K chunks 2 near-copies [4/4] [UUUU]

Open in new window

     

Can someone please help as this is a production server and I am concerned too much about this. I actually found this during weekly backup which is created with snapshots. Last week it was find but today I see:

# lvcreate -s -n test_snap /dev/vg/vm110_img -L 100G
  /dev/md3: Checksum error
  Found duplicate PV 4v7t3eBU6gdOqIDNFA2wrez14GXGsyzO: using /dev/sdb5 not /dev/md3
  device-mapper: reload ioctl failed: Invalid argument
  Aborting. Failed to activate snapshot exception store.

Open in new window


Please help.
0
Comment
Question by:sysautomation
  • 7
  • 5
12 Comments
 

Author Comment

by:sysautomation
ID: 40375384
To best of my knowledge the PV should bemusing /dev/md3 and not /dev/sdb5
0
 
LVL 2

Expert Comment

by:pitoren
ID: 40375576
check if any patches to lvm/lvm2 or mdmadm where made in the last days, can be checked with

rpm -qa --last

Maybe some settings in lvm.conf, e.g. the include/exclude filters, have been changed?

If so, there should be a backup file, or indeed you can check your own backupos :-)

http://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/lvm_filters.html

Exclude the sdX and sdX[123456] devices in lvm.conf and re-run pvdispaly and report output.

Note it says duplicate, which suggests to em you don't actually have a problem.

good luck
P
0
 

Author Comment

by:sysautomation
ID: 40375586
Thanks for your reply. I can see lvm was updated recently:

lvm2-2.02.88-12.el5                           Sat Sep 27 03:58:30 2014

I changed filter to:

filter = [ "r|/dev/sdb|" ]

but it did not change anything:

  Found duplicate PV 4v7t3eBU6gdOqIDNFA2wrez14GXGsyzO: using /dev/sdb5 not /dev/md3
  --- Physical volume ---
  PV Name               /dev/sdb5
  VG Name               vg
  PV Size               1.61 TB / not usable 10.50 MB
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              52685
  Free PE               24525
  Allocated PE          28160
  PV UUID               4v7t3e-BU6g-dOqI-DNFA-2wre-z14G-XGsyzO


May I my filter is not good. Can  you please correct if this is wrong?
0
 
LVL 2

Accepted Solution

by:
pitoren earned 500 total points
ID: 40375776
Yes, your filter is no good, all you excluded was the /dev/ssb device itself, not the partition /dev/sdb5

You need to exclude all 4 sdX devices AND their partitions. Try this:

"r|/dev/sd[abcd]*|"

Try to understand why.  The r means "remove-from-consideration" in this context.

If that does not help please post complete output of

cat /proc/partitions

And

pvdisplay --verbose
0
 

Author Comment

by:sysautomation
ID: 40375810
Great!. It worked.

# pvdisplay --verbose
    Scanning for physical volume names
  --- Physical volume ---
  PV Name               /dev/md3
  VG Name               vg
  PV Size               1.61 TB / not usable 10.50 MB
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              52685
  Free PE               24525
  Allocated PE          28160
  PV UUID               4v7t3e-BU6g-dOqI-DNFA-2wre-z14G-XGsyzO

But now another issue:

lvcreate -s -n test_snap /dev/vg/vm222_img -L 50G

Open in new window

throws:
 
device-mapper: create ioctl failed: Device or resource busy
  Aborting. Failed to activate snapshot exception store.

Open in new window


# dmsetup ls
vg-vm138_snapshot	(253, 35)
vg-vm164_img	(253, 22)
vg-vm164_swap	(253, 23)
vg-vm204_snapshot	(253, 38)
vg-vm164_snapshot	(253, 36)
vg-vm222_swap	(253, 1)
vg-vm137_img	(253, 14)
vg-vm137_snapshot	(253, 25)
vg-vm217_img	(253, 26)
vg-vm128_img	(253, 2)
vg-vm134_swap	(253, 11)
vg-vm215_swap	(253, 19)
vg-vm132_img	(253, 8)
vg-vm138_img	(253, 16)
vg-vm217_snapshot	(253, 40)
vg-vm135_swap	(253, 13)
vg-vm129_img	(253, 4)
vg-vm160_img	(253, 20)
vg-vm135_snapshot	(253, 34)
vg-vm129_snapshot	(253, 31)
vg-vm222_snapshot	(253, 41)
vg-vm222_img	(253, 0)
vg-vm128_swap	(253, 3)
vg-vm134_snapshot	(253, 33)
vg-vm128_snapshot	(253, 30)
vg-vm204_img	(253, 6)
vg-vm160_swap	(253, 21)
vg-vm217_swap	(253, 27)
vg-vm215_snapshot	(253, 39)
vg-vm160_snapshot	(253, 37)
vg-vm129_swap	(253, 5)
vg-vm137_swap	(253, 15)
vg-vm134_img	(253, 10)
vg-vm110_img	(253, 28)
vg-vm132_snapshot	(253, 32)
vg-vm138_swap	(253, 17)
vg-vm135_img	(253, 12)
vg-vm215_img	(253, 18)
vg-vm204_swap	(253, 7)
vg-vm110_snapshot	(253, 24)
vg-vm132_swap	(253, 9)
vg-test_snap	(253, 42)
vg-vm110_swap	(253, 29)

Open in new window


But lvdisplay does not show anything with snap or snapshot

[root@slave-itnan ~]# lvdisplay -v
    Finding all logical volumes
  --- Logical volume ---
  LV Name                /dev/vg/vm128_img
  VG Name                vg
  LV UUID                wxXv4Y-wwCA-EhTq-20fn-6Gvc-cC4h-9pBYbq
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:2
   
  --- Logical volume ---
  LV Name                /dev/vg/vm128_swap
  VG Name                vg
  LV UUID                ue7uY7-3Dp2-DM8s-l9qj-C7aG-MLQS-FKhuqm
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:3
   
  --- Logical volume ---
  LV Name                /dev/vg/vm129_img
  VG Name                vg
  LV UUID                TGeURz-ltlh-xD4v-G8Hc-Inl2-fVBG-G6PfN3
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:4
   
  --- Logical volume ---
  LV Name                /dev/vg/vm129_swap
  VG Name                vg
  LV UUID                nI5WDU-jnS2-RCKn-XHVd-wgU7-h01t-Wa3Gna
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:5
   
  --- Logical volume ---
  LV Name                /dev/vg/vm132_img
  VG Name                vg
  LV UUID                6ZjEX7-Tzjv-7DU6-xy00-iKDR-G9pn-iGNDHQ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:8
   
  --- Logical volume ---
  LV Name                /dev/vg/vm132_swap
  VG Name                vg
  LV UUID                yXeOaY-fyVG-qNsj-Dwdq-ug3M-r20a-k6mnD9
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:9
   
  --- Logical volume ---
  LV Name                /dev/vg/vm134_img
  VG Name                vg
  LV UUID                vRMDEG-0Ski-qqbx-xjT1-seGk-dkEF-iNIfsS
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                100.00 GB
  Current LE             3200
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:10
   
  --- Logical volume ---
  LV Name                /dev/vg/vm134_swap
  VG Name                vg
  LV UUID                9btisQ-qYep-lLOQ-js6f-sZEV-9XfM-Pm2Hkh
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.00 GB
  Current LE             96
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:11
   
  --- Logical volume ---
  LV Name                /dev/vg/vm135_img
  VG Name                vg
  LV UUID                dtaZQW-2VAg-wXeW-nQqi-oSsu-rGBP-x0Tzda
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:12
   
  --- Logical volume ---
  LV Name                /dev/vg/vm135_swap
  VG Name                vg
  LV UUID                b7HOPM-7cVw-wUIf-nN5h-pOi5-o2na-xA6izy
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:13
   
  --- Logical volume ---
  LV Name                /dev/vg/vm137_img
  VG Name                vg
  LV UUID                yawPGi-pjlK-ytRn-m4OZ-Qj0r-A59u-tngF8C
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:14
   
  --- Logical volume ---
  LV Name                /dev/vg/vm137_swap
  VG Name                vg
  LV UUID                x3Hqri-NffD-1mzU-OzCF-zO4x-rPmP-ejDk29
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             160
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:15
   
  --- Logical volume ---
  LV Name                /dev/vg/vm138_img
  VG Name                vg
  LV UUID                VtdCo7-W8wL-TLcO-WO3U-RZba-K4GH-SNWBqw
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:16
   
  --- Logical volume ---
  LV Name                /dev/vg/vm138_swap
  VG Name                vg
  LV UUID                MPo7l8-wxZM-RslV-yRjv-x6s4-j4Qf-ZS4C0u
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:17
   
  --- Logical volume ---
  LV Name                /dev/vg/vm160_img
  VG Name                vg
  LV UUID                CxcnVC-OYGS-Trsf-1jga-NNL1-1yky-hc16gh
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:20
   
  --- Logical volume ---
  LV Name                /dev/vg/vm160_swap
  VG Name                vg
  LV UUID                UBFXDH-oYVk-9xwW-J1JQ-Z9oD-ty2D-prHAFF
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:21
   
  --- Logical volume ---
  LV Name                /dev/vg/vm164_img
  VG Name                vg
  LV UUID                NwRu28-erDc-demp-MfMf-cjXX-Oexd-FillXj
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                100.00 GB
  Current LE             3200
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:22
   
  --- Logical volume ---
  LV Name                /dev/vg/vm164_swap
  VG Name                vg
  LV UUID                HFmpmo-UBKA-GtF8-y0dB-Zvre-LUjw-4tWGkI
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.00 GB
  Current LE             96
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:23
   
  --- Logical volume ---
  LV Name                /dev/vg/vm204_img
  VG Name                vg
  LV UUID                cuS68U-ReJW-8Saf-Kejj-Leih-HshC-K0iFpn
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                100.00 GB
  Current LE             3200
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:6
   
  --- Logical volume ---
  LV Name                /dev/vg/vm204_swap
  VG Name                vg
  LV UUID                uTXCF2-Vtdz-Np6f-rj6P-Wi9b-0eX9-2gPqYO
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.00 GB
  Current LE             96
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:7
   
  --- Logical volume ---
  LV Name                /dev/vg/vm215_img
  VG Name                vg
  LV UUID                LhwTlq-nPie-czeJ-bxj1-V8PD-YieP-WwWeVb
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GB
  Current LE             640
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:18
   
  --- Logical volume ---
  LV Name                /dev/vg/vm215_swap
  VG Name                vg
  LV UUID                VT3kwp-7q1L-K0Ik-bcch-u93t-fvWV-HlAPOf
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:19
   
  --- Logical volume ---
  LV Name                /dev/vg/vm217_img
  VG Name                vg
  LV UUID                NBAnEZ-NXBn-4sMB-WvDz-7fMJ-ANEi-jWzh0V
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                100.00 GB
  Current LE             3200
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:26
   
  --- Logical volume ---
  LV Name                /dev/vg/vm217_swap
  VG Name                vg
  LV UUID                8EDwer-MfgF-RVpA-xuCf-3qQm-30iO-ktNqu3
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.00 GB
  Current LE             96
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:27
   
  --- Logical volume ---
  LV Name                /dev/vg/vm222_img
  VG Name                vg
  LV UUID                9CFpmd-v6OX-2KnY-3DR2-3X1K-OmqM-fp7T7y
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/vg/vm222_swap
  VG Name                vg
  LV UUID                zFbUsV-ZUdH-bNc0-Ugcl-0PIs-rCeQ-KJqiE2
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:1
   
  --- Logical volume ---
  LV Name                /dev/vg/vm110_img
  VG Name                vg
  LV UUID                y7yLKD-7qjg-I0OZ-3rQq-6KhF-wO0z-jsnRNR
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:28
   
  --- Logical volume ---
  LV Name                /dev/vg/vm110_swap
  VG Name                vg
  LV UUID                z2GTjj-OOjQ-aiA0-oyy6-f5Td-gjYD-z1iAAH
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:29
   
[root@slave-itnan ~]# 

Open in new window



Will be really grateful if you can help.
0
 

Author Comment

by:sysautomation
ID: 40375826
I think I have found the solution but want to confirm before executing it:

Should I remove all below through dmsetup remove  command? Is it safe?

dmsetup ls | grep snap
vg-vm138_snapshot      (253, 35)
vg-vm204_snapshot      (253, 38)
vg-vm164_snapshot      (253, 36)
vg-vm137_snapshot      (253, 25)
vg-vm217_snapshot      (253, 40)
vg-vm135_snapshot      (253, 34)
vg-vm129_snapshot      (253, 31)
vg-vm222_snapshot      (253, 41)
vg-vm134_snapshot      (253, 33)
vg-vm128_snapshot      (253, 30)
vg-vm215_snapshot      (253, 39)
vg-vm160_snapshot      (253, 37)
vg-vm132_snapshot      (253, 32)
vg-vm110_snapshot      (253, 24)
0
Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

 
LVL 2

Expert Comment

by:pitoren
ID: 40375837
There are some confusing things here.

Is md3  really your only PV? The output you posted was what you expected? It was not for me. But maybe I am making assumptions. What are md0/1/2 used for?

Can you post output of

cat /proc/partitions
vgdisplay --verbose
lvs
mount -lh


P
0
 

Author Comment

by:sysautomation
ID: 40375847
I thing everything is fine now and working as expected.  md0 is / and md1 is /boot

Here's the require output:
cat /proc/partitions
major minor  #blocks  name

   8     0  976762584 sda
   8     1     514048 sda1
   8     2  104856255 sda2
   8     3    8193150 sda3
   8     4          1 sda4
   8     5  863196516 sda5
   8    16  976762584 sdb
   8    17     514048 sdb1
   8    18  104856255 sdb2
   8    19    8193150 sdb3
   8    20          1 sdb4
   8    21  863196516 sdb5
   8    32  976762584 sdc
   8    33     514048 sdc1
   8    34  104856255 sdc2
   8    35    8193150 sdc3
   8    36          1 sdc4
   8    37  863196516 sdc5
   8    48  976762584 sdd
   8    49     514048 sdd1
   8    50  104856255 sdd2
   8    51    8193150 sdd3
   8    52          1 sdd4
   8    53  863196516 sdd5
   9     0  209712128 md0
   9     3 1726392832 md3
   9     2   16386048 md2
   9     1     513984 md1
 253     2   52428800 dm-2
 253     3    1572864 dm-3
 253     4   52428800 dm-4
 253     5    1572864 dm-5
 253     8   52428800 dm-8
 253     9    1572864 dm-9
 253    10  104857600 dm-10
 253    11    3145728 dm-11
 253    12   52428800 dm-12
 253    13    1572864 dm-13
 253    14   41943040 dm-14
 253    15    5242880 dm-15
 253    16   41943040 dm-16
 253    17    1572864 dm-17
 253    20   52428800 dm-20
 253    21    1572864 dm-21
 253    22  104857600 dm-22
 253    23    3145728 dm-23
 253     6  104857600 dm-6
 253     7    3145728 dm-7
 253    18   20971520 dm-18
 253    19    1048576 dm-19
 253    26  104857600 dm-26
 253    27    3145728 dm-27
 253     0   52428800 dm-0
 253     1    1572864 dm-1
 253    28   52428800 dm-28
 253    29    1572864 dm-29
 253    24   52428800 dm-24
 253    25   52428800 dm-25
 253    30    5242880 dm-30

# vgdisplay --verbose
    Finding all volume groups
    Finding volume group "vg"
  --- Volume group ---
  VG Name               vg
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  2871
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                29
  Open LV               29
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               1.61 TB
  PE Size               32.00 MB
  Total PE              52685
  Alloc PE / Size       28320 / 885.00 GB
  Free  PE / Size       24365 / 761.41 GB
  VG UUID               Tfnyzb-QhmV-bGdd-VGdd-8GS1-PFZn-71yZQN
   
  --- Logical volume ---
  LV Name                /dev/vg/vm128_img
  VG Name                vg
  LV UUID                wxXv4Y-wwCA-EhTq-20fn-6Gvc-cC4h-9pBYbq
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:2
   
  --- Logical volume ---
  LV Name                /dev/vg/vm128_swap
  VG Name                vg
  LV UUID                ue7uY7-3Dp2-DM8s-l9qj-C7aG-MLQS-FKhuqm
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:3
   
  --- Logical volume ---
  LV Name                /dev/vg/vm129_img
  VG Name                vg
  LV UUID                TGeURz-ltlh-xD4v-G8Hc-Inl2-fVBG-G6PfN3
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:4
   
  --- Logical volume ---
  LV Name                /dev/vg/vm129_swap
  VG Name                vg
  LV UUID                nI5WDU-jnS2-RCKn-XHVd-wgU7-h01t-Wa3Gna
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:5
   
  --- Logical volume ---
  LV Name                /dev/vg/vm132_img
  VG Name                vg
  LV UUID                6ZjEX7-Tzjv-7DU6-xy00-iKDR-G9pn-iGNDHQ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:8
   
  --- Logical volume ---
  LV Name                /dev/vg/vm132_swap
  VG Name                vg
  LV UUID                yXeOaY-fyVG-qNsj-Dwdq-ug3M-r20a-k6mnD9
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:9
   
  --- Logical volume ---
  LV Name                /dev/vg/vm134_img
  VG Name                vg
  LV UUID                vRMDEG-0Ski-qqbx-xjT1-seGk-dkEF-iNIfsS
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                100.00 GB
  Current LE             3200
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:10
   
  --- Logical volume ---
  LV Name                /dev/vg/vm134_swap
  VG Name                vg
  LV UUID                9btisQ-qYep-lLOQ-js6f-sZEV-9XfM-Pm2Hkh
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.00 GB
  Current LE             96
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:11
   
  --- Logical volume ---
  LV Name                /dev/vg/vm135_img
  VG Name                vg
  LV UUID                dtaZQW-2VAg-wXeW-nQqi-oSsu-rGBP-x0Tzda
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:12
   
  --- Logical volume ---
  LV Name                /dev/vg/vm135_swap
  VG Name                vg
  LV UUID                b7HOPM-7cVw-wUIf-nN5h-pOi5-o2na-xA6izy
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:13
   
  --- Logical volume ---
  LV Name                /dev/vg/vm137_img
  VG Name                vg
  LV UUID                yawPGi-pjlK-ytRn-m4OZ-Qj0r-A59u-tngF8C
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:14
   
  --- Logical volume ---
  LV Name                /dev/vg/vm137_swap
  VG Name                vg
  LV UUID                x3Hqri-NffD-1mzU-OzCF-zO4x-rPmP-ejDk29
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             160
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:15
   
  --- Logical volume ---
  LV Name                /dev/vg/vm138_img
  VG Name                vg
  LV UUID                VtdCo7-W8wL-TLcO-WO3U-RZba-K4GH-SNWBqw
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:16
   
  --- Logical volume ---
  LV Name                /dev/vg/vm138_swap
  VG Name                vg
  LV UUID                MPo7l8-wxZM-RslV-yRjv-x6s4-j4Qf-ZS4C0u
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:17
   
  --- Logical volume ---
  LV Name                /dev/vg/vm160_img
  VG Name                vg
  LV UUID                CxcnVC-OYGS-Trsf-1jga-NNL1-1yky-hc16gh
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:20
   
  --- Logical volume ---
  LV Name                /dev/vg/vm160_swap
  VG Name                vg
  LV UUID                UBFXDH-oYVk-9xwW-J1JQ-Z9oD-ty2D-prHAFF
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:21
   
  --- Logical volume ---
  LV Name                /dev/vg/vm164_img
  VG Name                vg
  LV UUID                NwRu28-erDc-demp-MfMf-cjXX-Oexd-FillXj
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                100.00 GB
  Current LE             3200
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:22
   
  --- Logical volume ---
  LV Name                /dev/vg/vm164_swap
  VG Name                vg
  LV UUID                HFmpmo-UBKA-GtF8-y0dB-Zvre-LUjw-4tWGkI
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.00 GB
  Current LE             96
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:23
   
  --- Logical volume ---
  LV Name                /dev/vg/vm204_img
  VG Name                vg
  LV UUID                cuS68U-ReJW-8Saf-Kejj-Leih-HshC-K0iFpn
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                100.00 GB
  Current LE             3200
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:6
   
  --- Logical volume ---
  LV Name                /dev/vg/vm204_swap
  VG Name                vg
  LV UUID                uTXCF2-Vtdz-Np6f-rj6P-Wi9b-0eX9-2gPqYO
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.00 GB
  Current LE             96
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:7
   
  --- Logical volume ---
  LV Name                /dev/vg/vm215_img
  VG Name                vg
  LV UUID                LhwTlq-nPie-czeJ-bxj1-V8PD-YieP-WwWeVb
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GB
  Current LE             640
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:18
   
  --- Logical volume ---
  LV Name                /dev/vg/vm215_swap
  VG Name                vg
  LV UUID                VT3kwp-7q1L-K0Ik-bcch-u93t-fvWV-HlAPOf
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:19
   
  --- Logical volume ---
  LV Name                /dev/vg/vm217_img
  VG Name                vg
  LV UUID                NBAnEZ-NXBn-4sMB-WvDz-7fMJ-ANEi-jWzh0V
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                100.00 GB
  Current LE             3200
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:26
   
  --- Logical volume ---
  LV Name                /dev/vg/vm217_swap
  VG Name                vg
  LV UUID                8EDwer-MfgF-RVpA-xuCf-3qQm-30iO-ktNqu3
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.00 GB
  Current LE             96
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:27
   
  --- Logical volume ---
  LV Name                /dev/vg/vm222_img
  VG Name                vg
  LV UUID                9CFpmd-v6OX-2KnY-3DR2-3X1K-OmqM-fp7T7y
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/vg/vm222_swap
  VG Name                vg
  LV UUID                zFbUsV-ZUdH-bNc0-Ugcl-0PIs-rCeQ-KJqiE2
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:1
   
  --- Logical volume ---
  LV Name                /dev/vg/vm110_img
  VG Name                vg
  LV UUID                y7yLKD-7qjg-I0OZ-3rQq-6KhF-wO0z-jsnRNR
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                50.00 GB
  Current LE             1600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:28
   
  --- Logical volume ---
  LV Name                /dev/vg/vm110_swap
  VG Name                vg
  LV UUID                z2GTjj-OOjQ-aiA0-oyy6-f5Td-gjYD-z1iAAH
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.50 GB
  Current LE             48
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     2048
  Block device           253:29
   
   
  --- Physical volumes ---
  PV Name               /dev/md3     
  PV UUID               4v7t3e-BU6g-dOqI-DNFA-2wre-z14G-XGsyzO
  PV Status             allocatable
  Total PE / Free PE    52685 / 24365

Open in new window



LV             VG   Attr   LSize   Origin    Snap%  Move Log Copy%  Convert
  vm110_img      vg   owi-ao  50.00G                                                       
  vm110_swap     vg   -wi-ao   1.50G                                         
  vm128_img      vg   -wi-ao  50.00G                                         
  vm128_swap     vg   -wi-ao   1.50G                                         
  vm129_img      vg   -wi-ao  50.00G                                         
  vm129_swap     vg   -wi-ao   1.50G                                         
  vm132_img      vg   -wi-ao  50.00G                                         
  vm132_swap     vg   -wi-ao   1.50G                                         
  vm134_img      vg   -wi-ao 100.00G                                         
  vm134_swap     vg   -wi-ao   3.00G                                         
  vm135_img      vg   -wi-ao  50.00G                                         
  vm135_swap     vg   -wi-ao   1.50G                                         
  vm137_img      vg   -wi-ao  40.00G                                         
  vm137_swap     vg   -wi-ao   5.00G                                         
  vm138_img      vg   -wi-ao  40.00G                                         
  vm138_swap     vg   -wi-ao   1.50G                                         
  vm160_img      vg   -wi-ao  50.00G                                         
  vm160_swap     vg   -wi-ao   1.50G                                         
  vm164_img      vg   -wi-ao 100.00G                                         
  vm164_swap     vg   -wi-ao   3.00G                                         
  vm204_img      vg   -wi-ao 100.00G                                         
  vm204_swap     vg   -wi-ao   3.00G                                         
  vm215_img      vg   -wi-ao  20.00G                                         
  vm215_swap     vg   -wi-ao   1.00G                                         
  vm217_img      vg   -wi-ao 100.00G                                         
  vm217_swap     vg   -wi-ao   3.00G                                         
  vm222_img      vg   -wi-ao  50.00G                                         
  vm222_swap     vg   -wi-ao   1.50G 

# mount -l
/dev/md0 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/md1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
none on /var/lib/xenstored type tmpfs (rw)

Open in new window

0
 
LVL 2

Expert Comment

by:pitoren
ID: 40375851
By the way in the dmsetup ls output there is already a LV called test_snap listed.
0
 

Author Comment

by:sysautomation
ID: 40375855
I removed that from dmsetup and all is well
0
 
LVL 2

Expert Comment

by:pitoren
ID: 40375869
Cool, looks like we are done.

lvs

will show you all your source volumes, and any snapshots you have created from these source LVs.   I am presuming you create snapshots, make backups, and then delete the snapshots once backup is complete.

Good luck.

P
0
 

Author Closing Comment

by:sysautomation
ID: 40376265
Thank you very very much. It was really a great help.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now