Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 574829 Details for
Bug 753105
[regression] 'lvremove' fails sometimes to remove snapshot volumes
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Quick & Dirty test snapshot script
test_snap.bash (text/plain), 908 bytes, created by
Scott Marshall
on 2012-04-03 11:20:40 UTC
(
hide
)
Description:
Quick & Dirty test snapshot script
Filename:
MIME Type:
Creator:
Scott Marshall
Created:
2012-04-03 11:20:40 UTC
Size:
908 bytes
patch
obsolete
>#!/bin/bash > >message() >{ > printf '%s\t%s\n' '=====' "${1}" >} > >SNAPROOT=/snapfs >REALDIR=/var/log >SNAPDIR=${SNAPROOT}${REALDIR} >MY_VG=vg00 >MY_LV=lv_varlog >SNAP_LV=snap_varlog >JUNKFILE=${REALDIR}/random_garbage >message 'Creating snapshot' >lvcreate --size 128M --snapshot ${MY_VG}/${MY_LV} --name ${SNAP_LV} >lvs >message 'Mounting snapshot' >mount -o ro /dev/mapper/${MY_VG}-${SNAP_LV} ${SNAPDIR} >lvs >message 'df output BEFORE junkfile created' >df -h ${REALDIR} ${SNAPDIR} >message "Creating ${JUNKFILE}" >dd if=/dev/urandom of=${JUNKFILE} bs=10240 count=10240 >lvs >message 'df output AFTER junkfile created' >df -h ${REALDIR} ${SNAPDIR} >message "Removing ${JUNKFILE}" >rm -f ${REALDIR}/random_garbage >lvs >message 'df output AFTER junkfile erased' >df -h ${REALDIR} ${SNAPDIR} >message 'Dismounting snapshot' >umount ${SNAPDIR} >lvs >message 'Removing snapshot' >lvremove -f ${MY_VG}/${SNAP_LV} >lvs >message 'Test Completed'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 753105
:
573282
| 574829 |
574830