Bug 765417 (GLUSTER-3685) - volume set corrupts volfile
Summary: volume set corrupts volfile
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-3685
Product: GlusterFS
Classification: Community
Component: glusterd
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: krishnan parthasarathi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-03 07:20 UTC by shishir gowda
Modified: 2013-12-09 01:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description shishir gowda 2011-10-03 07:20:56 UTC
Volume set for enabling stat-prefetch corrupted my stripe volfile.

gluster> volume info 
 
Volume Name: new
Type: Stripe
Status: Started
Number of Bricks: 1 x 5 = 5
Transport-type: tcp
Bricks:
Brick1: sng:/export/dir1
Brick2: sng:/export/dir2
Brick3: sng:/export/dir3
Brick4: sng:/export/dir4
Brick5: sng:/export/dir5
Options Reconfigured:
diagnostics.client-log-level: DEBUG
diagnostics.brick-log-level: DEBUG
performance.stat-prefetch: off
gluster> volume set new stat-prefetch on
Set volume successful
gluster> volume info 
 
Volume Name: new
Type: Stripe
Status: Started
Number of Bricks: 1 x 5 = 5
Transport-type: tcp
Bricks:
Brick1: sng:/export/dir1
Brick2: sng:/export/dir2
Brick3: sng:/export/dir3
Brick4: sng:/export/dir4
Brick5: sng:/export/dir5
Options Reconfigured:
diagnostics.client-log-level: DEBUG
diagnostics.brick-log-level: DEBUG
performance.stat-prefetch: on

VOLFILE:

volume new-client-0
    type protocol/client
    option remote-host sng
    option remote-subvolume /export/dir1
    option transport-type tcp
end-volume

volume new-client-1
    type protocol/client
    option remote-host sng
    option remote-subvolume /export/dir2
    option transport-type tcp
end-volume

volume new-client-2
    type protocol/client
    option remote-host sng
    option remote-subvolume /export/dir3
    option transport-type tcp
end-volume

volume new-client-3
    type protocol/client
    option remote-host sng
    option remote-subvolume /export/dir4
    option transport-type tcp
end-volume

volume new-client-4
    type protocol/client
    option remote-host sng
    option remote-subvolume /export/dir5
    option transport-type tcp
end-volume
volume new-stripe-0
    type cluster/stripe
    subvolumes new-client-0
end-volume

volume new-stripe-1
    type cluster/stripe
    subvolumes new-client-1
end-volume

volume new-stripe-2
    type cluster/stripe
    subvolumes new-client-2
end-volume

volume new-stripe-3
    type cluster/stripe
    subvolumes new-client-3
end-volume

volume new-stripe-4
    type cluster/stripe
    subvolumes new-client-4
end-volume

volume new-write-behind
    type performance/write-behind
    subvolumes new-stripe-4
end-volume

volume new-read-ahead
    type performance/read-ahead
    subvolumes new-write-behind
end-volume

volume new-io-cache
    type performance/io-cache
    subvolumes new-read-ahead
end-volume

volume new-quick-read
    type performance/quick-read
    subvolumes new-io-cache
end-volume

volume new-stat-prefetch
    type performance/stat-prefetch
    subvolumes new-quick-read
end-volume

volume new
    type debug/io-stats
    option log-level DEBUG
    option latency-measurement off
    option count-fop-hits off
    subvolumes new-stat-prefetch
end-volume

Comment 1 Anand Avati 2011-10-06 02:21:22 UTC
CHANGE: http://review.gluster.com/554 (Change-Id: Idd9cb9d05122750ac78410b8f5a080104d6c1e0a) merged in master by Vijay Bellur (vijay)


Note You need to log in before you can comment on or make changes to this bug.