- Run below command to identify if any there are any processes using Logical volume.
dmsetup info -c | grep -i vol
Foe e.g. below is snippet
VolGroup00-LogVol01 249 3 L--w 0 1 0 LVM-rpBRPhVlR53KlK84BjyAJyQLshSAuvwslMtyXi7CFOwEwk2s7x8HMF1XYiSuA1xk
VolGroup00-LogVol00 249 2 L--w 1 1 0 LVM-rpBRPhVlR53KlK84BjyAJyQLshSAuvws3BdEwehKDtBsn3Mxbq3M3ViGfSKQ3LXe
Take note of the 5th column, which indicates if a volume is “open,” and the 2nd and 3rd columns, which are the major and minor IDs, respectively. - Find any process attached to this volume by searching on the major and minor IDs discovered above:
# lsof | grep "major,minor"
For e.g. below command.
lsof | grep "249,2"
Below is snippet
bash 28030 root txt REG 249,2 964608 17870842 /usr/bin/bash
bash 28030 root mem REG 249,2 25446063 /usr/lib64/libnss_files-2.17.so (stat: No such file or directory)\
bash 28030 root mem REG 249,2 17013053 /usr/lib/locale/locale-archive (path dev=8,2, inode=517470)
bash 28030 root mem REG 249,2 25168083 /usr/lib64/libc-2.17.so (stat: No such file or directory) - Kill the processes using the logical volume in above step 2 using kill -9 command.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Products to which Article Applies
All Linux OS’s
Article Author: Tarun Boyella
No comments:
Post a Comment