[Gluster-devel] how to add to one partition - space running out - a second
Roland Fischer
roland.fischer at xidras.com
Mon Mar 1 12:30:31 UTC 2010
hi,
we use glusterfs in version 3.0.0 patched and we want to add to an
existing partition (for example running out of space) a second
partition. = both are ext3 formatted
is this possible?
here we go:
first partition - space running out
/dev/sdc1 2.0G 503M 1.4G 27% /GFS-test/part1
add a second partition:
/dev/sdc2 1004M 18M 936M 2% /GFS-test/part2
servervolfile:
volume part1
type storage/posix
option directory /GFS-test/part1
end-volume
volume locks
type features/locks
subvolumes part1
end-volume
volume io-threads
type performance/io-threads
option thread-count 8 # default is 16
subvolumes locks
end-volume
volume part2
type storage/posix
option directory /GFS-test/part2
end-volume
volume locks1
type features/locks
subvolumes part2
end-volume
volume io-threads1
type performance/io-threads
option thread-count 8 # default is 16
subvolumes locks1
end-volume
volume server
type protocol/server
option transport-type tcp
option auth.addr.io-threads.allow xxx.xxx:xxx.xxx,127.0.0.1
option auth.addr.io-threads1.allow xxx.xxx:xxx.xxx,127.0.0.1
option transport.socket.listen-port 7002
subvolumes io-threads io-threads1
end-volume
#######################################################
clientvolfile:
volume gfs-01-01
type protocol/client
option transport-type tcp
option remote-host gfs-01-02
option remote-port 7002
option remote-subvolume io-threads
end-volume
volume gfs-01-02
type protocol/client
option transport-type tcp
option remote-host gfs-01-01
option remote-port 7002
option remote-subvolume io-threads1
end-volume
volume gfs-01-01-add
type protocol/client
option transport-type tcp
option remote-host gfs-01-02
option remote-port 7002
option remote-subvolume io-threads1
end-volume
volume gfs-01-02-add
type protocol/client
option transport-type tcp
option remote-host gfs-01-01
option remote-port 7002
option remote-subvolume io-threads
end-volume
volume mirror1
type cluster/replicate
subvolumes gfs-01-01 gfs-01-02-add
end-volume
volume mirror2
type cluster/replicate
subvolumes gfs-01-02 gfs-01-01-add
end-volume
volume stripe
type cluster/stripe
option block-size 1MB
subvolumes mirror1 mirror2
end-volume
##########################################
mounted: i see the two partitions in one:
3.0G 176M 2.7G 7% /GFS/test1 (GFS-test/part1 with
2GB and GFS-test/part2 with 1 GB
perfect.......but i cant copy another file to the new "resized" partition:
copying file1 with 90 MB:
cp -av file1 file2
`file1' -> `file2'
cp: cannot open `file1' for reading: No such file or directory
i cant read any file on the new "resized" partition
cat file3
cat: file3: No such file or directory
so what did we wrong? is the volfile configuration wrong? or is it not
possible?
regards
roland
More information about the Gluster-devel
mailing list