Advertisement
szabozoltan69

Untitled

Sep 17th, 2013
557
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # Join 4 devices together
  3. size1=`blockdev --getsize $1`
  4. size2=`blockdev --getsize $2`
  5. size3=`blockdev --getsize $3`
  6. size4=`blockdev --getsize $4`
  7. echo "0 $size1 linear $1 0
  8. $size1  $size2 linear $2 0
  9. $[$size1+$size2]        $size3 linear $3 0
  10. $[$size1+$size2+$size3] $size4 linear $4 0" | dmsetup create joined
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement