Common storm fixes: Difference between revisions

From Cheatsheet
Jump to navigation Jump to search
Created page with 'STORM === Resize errors === 2011-06-13 10:47:30 Yes 10.30.113.153 0.0000 Error executing [lvcreate -L45G -s -nS65G4U-BACKUP-20110613T144729 /dev/LVM/S65G4U] [5] ( Insuffic…'
 
No edit summary
Line 5: Line 5:
  2011-06-13 10:47:30 Yes 10.30.113.153 0.0000 Error executing [lvcreate -L45G -s -nS65G4U-BACKUP-20110613T144729 /dev/LVM/S65G4U] [5] ( Insufficient free extents (28) in volume group LVM: 1440 required )
  2011-06-13 10:47:30 Yes 10.30.113.153 0.0000 Error executing [lvcreate -L45G -s -nS65G4U-BACKUP-20110613T144729 /dev/LVM/S65G4U] [5] ( Insufficient free extents (28) in volume group LVM: 1440 required )


'''Always check with QA first to make sure it is ok to do this'''
'''Always check with DAN BURKE first to make sure it is ok to do this'''
The fix for this would be the following.
The fix for this would be the following.


Line 23: Line 23:


  cd /dev/mapper/
  cd /dev/mapper/
  for i in S65G4U-BACKUP-20110*; { dmsetup remove $i } lvremove /dev/LVM/S65G4U-BACKUP-20110*
  for i in (lvm volume to remove)*; { dmsetup remove $i }  
lvremove (lvm volume to remove)*





Revision as of 17:19, 13 June 2011

STORM

Resize errors

2011-06-13 10:47:30 	Yes 	10.30.113.153 	0.0000 	Error executing [lvcreate -L45G -s -nS65G4U-BACKUP-20110613T144729 /dev/LVM/S65G4U] [5] ( Insufficient free extents (28) in volume group LVM: 1440 required )

Always check with DAN BURKE first to make sure it is ok to do this The fix for this would be the following.

lvdisplay -C

this will provide the following type of output.

[root@host411 ~]# lvdisplay -C
 LV                            VG   Attr   LSize   Origin Snap%  Move Log Copy%  Convert
 28K4MS                        LVM  -wi-ao 150.00G
 82P51W                        LVM  -wi-ao 150.00G
 8GZQQ4                        LVM  owi-ao 150.00G
 8GZQQ4-BACKUP-20110613T073910 LVM  swi-ao  50.00G 8GZQQ4   0.87
 S216PX                        LVM  -wi-ao 150.00G

Now you only want to remove the ones that have the Snap% colum at 100.

cd /dev/mapper/
for i in (lvm volume to remove)*; { dmsetup remove $i } 
lvremove (lvm volume to remove)*


(01:00:25 PM) mshooltz: i have a new provisioning error that I havent come across before, I am assuming that it means there was not enough space on the server the backup was supposed to go on for a resize image but i am not sure. (01:00:27 PM) mshooltz: Error executing [lvcreate -L45G -s -nS65G4U-BACKUP-20110613T144729 /dev/LVM/S65G4U] [5] ( Insufficient free extents (28) in volume group LVM: 1440 required ) (01:00:41 PM) mshooltz: https://billing.int.liquidweb.com/mysql/content/admin/account/provision/?accnt=182095 (01:01:05 PM) dburke: yeah, just need to cleanup the snapshots and try again (01:01:14 PM) dburke: there's a fix coming for it (01:01:26 PM) mshooltz: ok got a guide i can use to clean them up? (01:02:49 PM) dburke: done... I usually do a bunch of these every morning, I just haven't gotten to it yet today (01:02:57 PM) mshooltz: oh ok thanks (01:03:46 PM) mshooltz: ok thanks, can you let me in on how you did that? (01:04:12 PM) dburke: cd /dev/mapper/ for i in S65G4U-BACKUP-20110*; { dmsetup remove $i }

lvremove /dev/LVM/S65G4U-BACKUP-20110*

(01:04:56 PM) mshooltz: wow that is all there is to it? log into the parent and run those? (01:05:15 PM) dburke: I don't really want other people to get into the habit of doing it, because in case the fix doesn't work, I might not be aware of it because people are fixing it manually (01:05:46 PM) dburke: but yeah, that's pretty much it (01:06:05 PM) dburke: well, you need to run "lvdisplay -C" and only do that on FULL snapshots (01:06:19 PM) mshooltz: well i wont hand it out to others, and I will check with yall before attempting (01:06:26 PM) dburke: ok thanks