Video Screencast Help
Protect Your POS Environment Against Retail Data Breaches. Learn More.
Storage & Clustering Community Blog

Smartmove: First look

Created: 08 Apr 2009 • Updated: 11 Jun 2014 • 2 comments
M.Pozzi's picture
+5 5 Votes
Login to vote

Introduction:

This test regards the new smartmove feature introduced with MP3:

Enviroment:

OS AIX 5300-07-02-0806
Storage Fondation 5.0MP3RP1
Storage 2 LUNS XP24K 100GB

Test:
Mirror an empty filesystem

Initial situation:

diskgroup with a volume of  97.615 GB

root@/ #vxprint -Qqthg smartdg
dg smartdg      default      default  3000     1239178875.70.tx088sd1
dm disk0        xp12k0_0     auto     65536    204713728 -
dm disk1        xp12k0_1     auto     65536    204713728 -
v  smartvol0    -            ENABLED  ACTIVE   204713728 SELECT   -        fsgen
pl smartvol0-01 smartvol0    ENABLED  ACTIVE   204713728 CONCAT   -        RW
sd disk0-01     smartvol0-01 disk0    0        204713728 0        xp12k0_0 ENA

root@ / #df -g /mnt/smartfs
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/vx/dsk/smartdg/smartvol0     97.62     91.43    7%        4     1% /mnt/smartfs

root@ / #time vxassist -g smartdg mirror smartvol0 alloc=disk1
real    36m57.56s
user    33m29.99s
sys     1m18.48s

Time taken for a traditional mirror 36m57.56s

root@/ #vxtask -l list
Task:      163 RUNNING
Type:      ATCOPY
Operation: PLXATT Vol smartvol0 Plex smartvol0-02 Dg smartdg
Started:   Wed Apr  8 10:26:13 DFT 2009
Throttle:  0
Progress:  1.65% 3379200 of 204713728 Blocks
Work time: 34 seconds (33:45 remaining)

Print after mirror:

root@tx088sd1 / #vxprint -Qqthg smartdg
dg smartdg      default      default  3000     1239178875.70.tx088sd1
dm disk0        xp12k0_0     auto     65536    204713728 -
dm disk1        xp12k0_1     auto     65536    204713728 -
v  smartvol0    -            ENABLED  ACTIVE   204713728 SELECT   -        fsgen
pl smartvol0-01 smartvol0    ENABLED  ACTIVE   204713728 CONCAT   -        RW
sd disk0-01     smartvol0-01 disk0    0        204713728 0        xp12k0_0 ENA
pl smartvol0-02 smartvol0    ENABLED  ACTIVE   204713728 CONCAT   -        RW
sd disk1-01     smartvol0-02 disk1    0        204713728 0        xp12k0_1 ENA

Recreate initial situation:

root@ / #vxplex -g smartdg dis smartvol0-02
root@ / #vxedit -g smartdg -rf rm smartvol0-02

root@ / #vxprint -Qqthg smartdg
dg smartdg      default      default  3000     1239178875.70.tx088sd1
dm disk0        xp12k0_0     auto     65536    204713728 -
dm disk1        xp12k0_1     auto     65536    204713728 -
v  smartvol0    -            ENABLED  ACTIVE   204713728 SELECT   -        fsgen
pl smartvol0-01 smartvol0    ENABLED  ACTIVE   204713728 CONCAT   -        RW
sd disk0-01     smartvol0-01 disk0    0        204713728 0        xp12k0_0 ENA

root@ / #df -g /mnt/smartfs
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/vx/dsk/smartdg/smartvol0     97.62     91.43    7%        4     1% /mnt/smartfs

Enable smartmove:

root@ / # echo usefssmartmove=all >> /etc/default/vxsf
root@/ #cat /etc/default/vxsf
usefssmartmove=all

Mirror with smartmove

root@ / #time vxassist -g smartdg mirror smartvol0 alloc=disk1
real    0m3.32s
user    0m2.05s
sys     0m0.13s

Time taken mirroring with smartmove 0m3.32s

.......I didn't get a vxtask output from another shell :-)

root@ / #vxtask -l list
root@ / #

root@ / #vxprint -Qqthg smartdg
dg smartdg      default      default  3000     1239178875.70.tx088sd1
dm disk0        xp12k0_0     auto     65536    204713728 -
dm disk1        xp12k0_1     auto     65536    204713728 -
v  smartvol0    -            ENABLED  ACTIVE   204713728 SELECT   -        fsgen
pl smartvol0-01 smartvol0    ENABLED  ACTIVE   204713728 CONCAT   -        RW
sd disk0-01     smartvol0-01 disk0    0        204713728 0        xp12k0_0 ENA
pl smartvol0-02 smartvol0    ENABLED  ACTIVE   204713728 CONCAT   -        RW
sd disk1-01     smartvol0-02 disk1    0        204713728 0        xp12k0_1 ENA

NB the filesystem MUST be mounted

Conclusions:

We used an empty filesystem to have a clear demo of the potential of the smartmove and in this test the mirror taken the time of a mkfs ;-)

Cheers
Marco

Comments 2 CommentsJump to latest comment

mike_root's picture

You can also look for the new command to edit the /etc/default/vxsf file
/opt/VRTS/bin/vxdefault

This new command can list and set all the variables that can be modified in the /etc/default/vxsf file.  This is safer than editing the file by hand.  Allso, you can run vxdefault to check an existing defaults file to make sure all the entries are valid and correct for Storage Foundation.

+1
Login to vote
sunshine 2's picture

i did a test and came out with impressive results..in the past i have always used the traditional method:

vxresize - shrink the volume and file system

mirror the volume

vxresize - grow the volume and file system

0
Login to vote