summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* test: add process-each-pv-nomdadev-dct-process-v9David Teigland2014-04-041-0/+27
|
* test: add process-each-vguuidDavid Teigland2014-04-041-0/+350
|
* toollib: handle vg uuid args in process_each_vgDavid Teigland2014-04-043-12/+178
| | | | | | | | | | | | | | VG uuids can be used in place of VG names as command args for commands using process_each_vg. The command line uuid format includes dashes. As with tags, processing vg uuid args requires process_each_vg to read all vgs to match their uuid against the uuid args. If a command line uuid arg matches one vg's name and another vg's uuid, the vg with matching name will be selected.
* test: add process-each-pv and process-each-pvresizeDavid Teigland2014-04-042-0/+1846
|
* toollib: rewrite process_each_pvDavid Teigland2014-04-048-370/+407
| | | | | | Process pvs by iterating through vgs, then iterating through devs if the command wants to process non-pv devices. The process_single function can always use the vg and pv args.
* toollib: add ENABLE_ALL_DEVS flagDavid Teigland2014-04-042-2/+3
| | | | | | | The ENABLE_ALL_DEVS flag is added to the command structure for commands that should process all devs (pvs and non-pvs) when they call process_each_pv and the command includes the --all arg. This will be used in a later process_each_pv patch.
* toollib: remove unused arg from process_each_lv_in_vgDavid Teigland2014-04-043-4/+2
| | | | | The failed_lvnames arg is no longer used since the cmd_vg replicator wrapper was removed.
* toollib: improve error message in process_each_lv_in_vgDavid Teigland2014-04-041-6/+11
| | | | Include in the error message the lv name args that were not found.
* toollib: rewrite process_each_lvDavid Teigland2014-04-041-297/+334
| | | | | | - Copy the same form as the new process_each_vg. - Replace unused struct cmd_vg and cmd_vg_read() replicator code with struct vg and vg_read() directly.
* toollib: rewrite process_each_vgDavid Teigland2014-04-041-145/+233
| | | | | | | | - Split the collecting of arguments from processing them. - The split allows the two different loops through vgs to be replaced by a single loop. - Replace unused struct cmd_vg and cmd_vg_read() replicator code with struct vg and vg_read() directly.
* toollib: add ENABLE_ALL_VGS flagDavid Teigland2014-04-042-13/+19
| | | | | | | The ENABLE_ALL_VGS flag is added to the command structure for commands that should process all vgs when they call process_each_vg or process_each_lv with no args. This will be used in later patches to process_each functions.
* man: lvmthin clean up lvm.conf referencesDavid Teigland2014-04-041-17/+50
|
* tools: don't require --major to be specified when using -My option on ↵Peter Rajnoha2014-04-042-4/+13
| | | | | | | | | | | | | | | | | kernels > 2.4 Since kernel > 2.4 have dynamically assigned major numbers. [0] raw/~ $ lvcreate -l1 -My --minor 10 vg Logical volume "lvol0" created [0] raw/~ $ lvcreate -l1 -My --major 254 --minor 11 vg Ignoring supplied major number - kernel assigns major numbers dynamically. Using major number 253 instead. Logical volume "lvol1" created [0] raw/~ $ lvs --profile out -o+major,minor lvol0 vg -wima----- 4.00 253 10 lvol1 vg -wima----- 4.00 253 11
* configure: regenerateAlasdair G Kergon2014-04-043-375/+504
| | | | Used rhel7 autoreconf.
* format_text: Report failed close.Alasdair G Kergon2014-04-041-1/+2
|
* thin: Support thin_check --clear-needs-check-flag.Alasdair G Kergon2014-04-043-3/+22
| | | | Update thin provisioning tools to version 0.3.2 or later!
* lvmetad: Update retry logic vars and comments.Alasdair G Kergon2014-04-041-23/+30
| | | | | Avoid using variables with same name as functions. Use lvm_even_rand for random numbers.
* reports: FIXME for unnecessary cache wipes.Alasdair G Kergon2014-04-041-0/+3
|
* dev-cache: Improve open device check messages.Alasdair G Kergon2014-04-042-9/+18
|
* clvmd: Update new remove_info INTERNAL_ERRORS.Alasdair G Kergon2014-04-041-3/+5
|
* lib: Share lvm_even_rand for random numbers.Alasdair G Kergon2014-04-044-24/+28
|
* vgsplit: Mark cache moving code NOTREACHED.Alasdair G Kergon2014-04-041-0/+2
|
* man: Add lvmthin(7).Alasdair G Kergon2014-04-042-6/+19
|
* RAID: Improve an error messageJonathan Brassow2014-04-031-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When down-converting a RAID1 LV, if the user specifies too few devices, they will get a confusing message. Ex: [root]# lvcreate -m 2 --type raid1 -n raid -L 500M taft Logical volume "raid" created [root]# lvconvert -m 0 taft/raid /dev/sdd1 Unable to extract enough images to satisfy request Failed to extract images from taft/raid This patch makes the error message a bit clearer by telling the user the count they are trying to remove and the number of devices they supplied. [root@bp-01 lvm2]# lvcreate --type raid1 -m 3 -L 200M -n lv vg Logical volume "lv" created [root@bp-01 lvm2]# lvconvert -m -3 vg/lv /dev/sdb1 Unable to remove 3 images: Only 1 device given. Failed to extract images from vg/lv [root@bp-01 lvm2]# lvconvert -m -3 vg/lv /dev/sd[bc]1 Unable to remove 3 images: Only 2 devices given. Failed to extract images from vg/lv [root@bp-01 lvm2]# lvconvert -m -3 vg/lv /dev/sd[bcd]1 [root@bp-01 lvm2]# lvs -a -o name,attr,devices vg LV Attr Devices lv -wi-a----- /dev/sde1(1) This patch doesn't work in all cases. The user can specify the right number of devices, but not a sufficient amount of devices from the LV. This will produce the old error message: [root@bp-01 lvm2]# lvconvert -m -3 vg/lv /dev/sd[bcf]1 Unable to extract enough images to satisfy request Failed to extract images from vg/lv However, I think this error message is sufficient for this case.
* man: lvmthin pool space exhaustionDavid Teigland2014-04-031-9/+93
| | | | | Initial description and instructions for data/metadata space exhaustion.
* man: add lvmthin man pageDavid Teigland2014-04-011-0/+874
|
* cache: enforce local exlusive activationZdenek Kabelac2014-04-011-2/+3
| | | | For cache flushing local exlusive activation is needed.
* tests: update lvcreate-cacheZdenek Kabelac2014-04-011-57/+27
|
* debug: add internal error for passed LVZdenek Kabelac2014-04-011-1/+6
| | | | TODO: in fact we should parameter LV.
* cleanup: just rename for interal functionZdenek Kabelac2014-04-011-2/+2
|
* cleanup: cache updates messagesZdenek Kabelac2014-04-011-6/+8
| | | | | | Passing non cached device is an internal error. Print messages at non-error level. Shorten sleep delay for cache flush.
* cleanup: cache use const char policyZdenek Kabelac2014-04-017-21/+21
| | | | Policy should be const char pointer.
* cleanup: cache reuse code for pool testZdenek Kabelac2014-04-011-8/+3
| | | | Using same error message for pool associated devices.
* cache: fix order of metadata changeZdenek Kabelac2014-04-011-17/+12
| | | | | | Start to change metadata after they are archived. And since cache_pool is virtual skip deactivation call for this LV.
* cache: use remove_layer_from_lvZdenek Kabelac2014-04-013-36/+58
| | | | | | | Since the usability problem were fixed, we can use this function. Cleanup orphan LVs with TEMPORARY flags (reduces couple blkid error reports, but couple of them is still left...)
* cache: cache segment is non-discardableZdenek Kabelac2014-04-011-2/+5
| | | | | | | | | Since cache segment is purely virtual mapping, it has nothing for discard. Discardable is cache origin here which is now properly removed on 'delete' phase. Plain lv_empty() call needs to only detach cache origin and leave origin unchanged.
* cache: never activate cache poolZdenek Kabelac2014-04-014-6/+37
| | | | | Since cache-pool is purely lvm abstraction layer LV, it never need any device node, so do not add even 'error' device for it.
* tests: add profiles-thin and prepare_profiles helper fnPeter Rajnoha2014-04-013-0/+66
|
* libdm: Add missing UDEV_CFLAGS.Petr Rockai2014-04-011-0/+1
|
* lvm-wrappers: Remove spurious #include <libudev.h>.Petr Rockai2014-04-013-1/+6
|
* pvs: Wipe persistent filters when given a device argument.Petr Rockai2014-04-012-2/+3
|
* tests: update profiles.sh for recent changesPeter Rajnoha2014-04-011-1/+36
|
* man: add a note about --profile when using dumpconfig --mergedconfigPeter Rajnoha2014-04-012-5/+7
|
* config: fix compile error in config-settings.h if using --disable-dmeventdPeter Rajnoha2014-03-312-1/+7
| | | | config/config_settings.h:257:102: error: 'DMEVENTD_PATH' undeclared here (not in a function)
* tests: add more rename testZdenek Kabelac2014-03-311-16/+9
| | | | Drop test, which are now in other files (listings.sh)
* tests: more listing testsZdenek Kabelac2014-03-311-12/+37
|
* cleanup: skip eval of minor when major is trueZdenek Kabelac2014-03-311-1/+1
| | | | Use normal '||'.
* cleanup: lvdisplay indentZdenek Kabelac2014-03-311-9/+11
|
* vg_validate: check size of lv_name + vg_nameZdenek Kabelac2014-03-312-0/+12
| | | | | Since the whole dm device name may not exceed 127 characters, validate no LV names is bigger then this limit.
* lv_rename: resume fail is certainly errorZdenek Kabelac2014-03-312-1/+4
| | | | | Failing resume path means command has failed, even when commit was ok.