Dariush Debian Diary

About

Diariusz Dariusza

index | rss1.0

Categories

Archives

Valid XHTML 1.1 | Valid CSS
powered by blosxom.

2009-01-28

Insufficient suitable contiguous allocatable extents for logical volume pvmove0: 404479 more required

time pvmove /dev/dm-0
  Insufficient suitable contiguous allocatable extents for logical volume pvmove0: 404479 more required
    Unable to allocate temporary LV for pvmove.
Fix:
 time pvmove -v /dev/dm-0:1-3000
    Wiping cache of LVM-capable devices
    Finding volume group "spool"
    Archiving volume group "spool" metadata (seqno 96).
    Creating logical volume pvmove0
    Moving 1 extents of logical volume spool/ebic
    Found volume group "spool"
    Updating volume group metadata
    Creating volume group backup "/etc/lvm/backup/spool" (seqno 97).
    Found volume group "spool"
    Found volume group "spool"
    Suspending spool-ebic (254:11)
    Found volume group "spool"
    Creating spool-pvmove0
    Loading spool-pvmove0 table
    Resuming spool-pvmove0 (254:15)
    Found volume group "spool"
    Loading spool-pvmove0 table
    Resuming spool-pvmove0 (254:15)
    Loading spool-ebic table
    Resuming spool-ebic (254:11)
    Checking progress every 15 seconds
  /dev/dm-0: Moved: 00.0%

2009-01-19

Hot-add Hot-remove: linux scsi subsystem

We've got erroneous scsi entry, remove it:
for n in `seq 0 0`; do echo $n; echo "scsi remove-single-device 1 0 0 $n" > /proc/scsi/scsi ; echo "scsi remove-single-device 0 0 0 $n" > /proc/scsi/scsi ; done
Now, we attached new FC LUN as 0:0:0:0 and 1:0:0:0
for n in `seq 0 0`; do echo $n; echo "scsi add-single-device 1 0 0 $n" > /proc/scsi/scsi ; echo "scsi add-single-device 0 0 0 $n" > /proc/scsi/scsi ; done
now, multipath -ll will show you, that multipath deteceted deviced with extra path to it, and created new device for it:
360060160e0b11c00d846a76e4be6dd11dm-12 DGC,VRAID
[size=140G][features=1 queue_if_no_path][hwhandler=1 emc]
\_ round-robin 0 [prio=1][active]
 \_ 1:0:0:0 sda 8:0   [active][ready]
 \_ round-robin 0 [prio=0][enabled]
  \_ 0:0:0:0 sde 8:64  [active][ready]