亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4463 | 回復(fù): 7
打印 上一主題 下一主題

[FastDFS] 請教下余大FastDfs文件系統(tǒng)磁盤擴(kuò)容的問題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2016-08-30 17:14 |只看該作者 |倒序瀏覽
你好余大:我們目前有2臺服務(wù)器trackerserver+storage和storage,軟件版本FastDFS_v4.06,fastdfs-nginx-module,nginx-1.2.6,現(xiàn)在這2臺服務(wù)器磁盤滿了,要把硬盤整體更換成大容量的來進(jìn)行擴(kuò)容。

我是這樣計劃擴(kuò)容的,麻煩余大看看有沒有問題或者有其他更好的方案建議一下,謝謝!


step1,拿一臺全新的大容量服務(wù)器作為已有g(shù)roup新的storage server,讓他自己同步數(shù)據(jù)過去。這樣文件系統(tǒng)變成3臺了。
step2,從group中下架一臺storage server,把這臺服務(wù)器磁盤進(jìn)行擴(kuò)容,然后再上架加入group,讓數(shù)據(jù)自己同步過去。
step3,最后一臺磁盤小的服務(wù)器下架撤掉。修改以上2臺擴(kuò)容后的服務(wù)器配置,一臺為trackerserver+storage,另一臺為storage。

論壇徽章:
2
IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-08 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-05-26 06:20:00
2 [報告]
發(fā)表于 2016-08-31 10:01 |只看該作者
云服務(wù)器可以實時擴(kuò)容嗎?直接加硬盤呢?----小白疑問

論壇徽章:
4
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-08-11 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-08-15 06:20:00
3 [報告]
發(fā)表于 2016-08-31 10:22 |只看該作者
回復(fù) 1# taowu

可以照你的方法來擴(kuò)容。

論壇徽章:
0
4 [報告]
發(fā)表于 2016-08-31 21:23 |只看該作者
[root@storage3.mpay.com logs]# cat storaged.log
[2016-08-31 21:08:47] INFO - FastDFS v4.06, base_path=/home/fastdfs, store_path_count=1, subdir_count_per_path=256, group_name=group1, run_by_group=, run_by_user=, connect_timeout=30s, network_timeout=60s, port=23000, bind_addr=10.0.120.57, client_bind=1, max_connections=10000, work_threads=4, disk_rw_separated=1, disk_reader_threads=1, disk_writer_threads=1, buff_size=256KB, heart_beat_interval=30s, stat_report_interval=60s, tracker_server_count=1, sync_wait_msec=50ms, sync_interval=0ms, sync_start_time=00:00, sync_end_time=23:59, write_mark_file_freq=500, allow_ip_count=-1, file_distribute_path_mode=0, file_distribute_rotate_count=100, fsync_after_written_bytes=0, sync_log_buff_interval=10s, sync_binlog_buff_interval=10s, sync_stat_file_interval=300s, thread_stack_size=512 KB, upload_priority=10, if_alias_prefix=, check_file_duplicate=0, file_signature_method=hash, FDHT group count=0, FDHT server count=0, FDHT key_namespace=, FDHT keep_alive=0, HTTP server port=8888, domain name=, use_access_log=0, rotate_access_log=0, access_log_rotate_time=00:00, rotate_error_log=0, error_log_rotate_time=00:00, rotate_access_log_size=0, rotate_error_log_size=0, file_sync_skip_invalid_record=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s
[2016-08-31 21:09:16] INFO - file: storage_param_getter.c, line: 187, use_storage_id=0, id_type_in_filename=ip, storage_ip_changed_auto_adjust=1, store_path=0, reserved_storage_space=10.00%, use_trunk_file=0, slot_min_size=256, slot_max_size=16 MB, trunk_file_size=64 MB, trunk_create_file_advance=0, trunk_create_file_time_base=02:00, trunk_create_file_interval=86400, trunk_create_file_space_threshold=20 GB, trunk_init_check_occupying=0, trunk_init_reload_from_binlog=0, store_slave_file_use_link=0
[2016-08-31 21:09:17] INFO - file: storage_func.c, line: 174, tracker_client_ip: 10.0.120.57, my_server_id_str: 10.0.120.57, g_server_id_in_filename: 964165642
[2016-08-31 21:09:17] INFO - local_host_ip_count: 2,  127.0.0.1  10.0.120.57
[2016-08-31 21:09:18] INFO - file: tracker_client_thread.c, line: 308, successfully connect to tracker server 10.0.120.55:22122, as a tracker client, my ip is 10.0.120.57
[2016-08-31 21:09:19] INFO - file: tracker_client_thread.c, line: 1124, tracker server 10.0.120.55:22122, set tracker leader: 10.0.120.55:22122
[2016-08-31 21:09:19] INFO - file: storage_sync.c, line: 2698, successfully connect to storage server 10.0.120.55:23000
[2016-08-31 21:09:19] INFO - file: storage_sync.c, line: 2698, successfully connect to storage server 10.0.120.56:23000
[2016-08-31 21:09:21] ERROR - file: storage_nio.c, line: 404, client ip: 10.0.120s10.0.120.55, recv failed, errno: 88, error info: Socket operation on non-socket
[2016-08-31 21:14:37] INFO - FastDFS v4.06, base_path=/home/fastdfs, store_path_count=1, subdir_count_per_path=256, group_name=group1, run_by_group=, run_by_user=, connect_timeout=30s, network_timeout=60s, port=23000, bind_addr=10.0.120.57, client_bind=1, max_connections=10000, work_threads=4, disk_rw_separated=1, disk_reader_threads=1, disk_writer_threads=1, buff_size=256KB, heart_beat_interval=30s, stat_report_interval=60s, tracker_server_count=1, sync_wait_msec=50ms, sync_interval=0ms, sync_start_time=00:00, sync_end_time=23:59, write_mark_file_freq=500, allow_ip_count=-1, file_distribute_path_mode=0, file_distribute_rotate_count=100, fsync_after_written_bytes=0, sync_log_buff_interval=10s, sync_binlog_buff_interval=10s, sync_stat_file_interval=300s, thread_stack_size=512 KB, upload_priority=10, if_alias_prefix=, check_file_duplicate=0, file_signature_method=hash, FDHT group count=0, FDHT server count=0, FDHT key_namespace=, FDHT keep_alive=0, HTTP server port=8888, domain name=, use_access_log=0, rotate_access_log=0, access_log_rotate_time=00:00, rotate_error_log=0, error_log_rotate_time=00:00, rotate_access_log_size=0, rotate_error_log_size=0, file_sync_skip_invalid_record=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s
[2016-08-31 21:14:37] INFO - file: storage_param_getter.c, line: 187, use_storage_id=0, id_type_in_filename=ip, storage_ip_changed_auto_adjust=1, store_path=0, reserved_storage_space=10.00%, use_trunk_file=0, slot_min_size=256, slot_max_size=16 MB, trunk_file_size=64 MB, trunk_create_file_advance=0, trunk_create_file_time_base=02:00, trunk_create_file_interval=86400, trunk_create_file_space_threshold=20 GB, trunk_init_check_occupying=0, trunk_init_reload_from_binlog=0, store_slave_file_use_link=0
[2016-08-31 21:14:37] INFO - file: storage_func.c, line: 174, tracker_client_ip: 10.0.120.57, my_server_id_str: 10.0.120.57, g_server_id_in_filename: 964165642
[2016-08-31 21:14:37] INFO - local_host_ip_count: 2,  127.0.0.1  10.0.120.57
[2016-08-31 21:14:39] ERROR - file: storage_nio.c, line: 404, client ip: 10.0.120s10.0.120.55, recv failed, errno: 88, error info: Socket operation on non-socket
[2016-08-31 21:14:39] INFO - file: tracker_client_thread.c, line: 308, successfully connect to tracker server 10.0.120.55:22122, as a tracker client, my ip is 10.0.120.57
[2016-08-31 21:14:39] INFO - file: tracker_client_thread.c, line: 1124, tracker server 10.0.120.55:22122, set tracker leader: 10.0.120.55:22122

啟動好像報錯了,storage進(jìn)程退出了,余大幫忙看看哪里出問題了

論壇徽章:
0
5 [報告]
發(fā)表于 2016-08-31 21:44 |只看該作者
重裝了libevent-1.4.14b-stable編譯完后編譯fastdfs編譯好像報錯了
[root@storage3.mpay.com FastDFS]# ./make.sh install
mkdir -p /usr/local/bin
mkdir -p /etc/fdfs
cp -f fdfs_trackerd  /usr/local/bin
cp: cannot stat `fdfs_trackerd': No such file or directory
make: *** [install] Error 1
mkdir -p /usr/local/bin
mkdir -p /etc/fdfs
cp -f fdfs_storaged  /usr/local/bin
cp: cannot stat `fdfs_storaged': No such file or directory
make: *** [install] Error 1
mkdir -p /usr/local/bin
mkdir -p /etc/fdfs
mkdir -p /usr/local/lib

論壇徽章:
0
6 [報告]
發(fā)表于 2016-08-31 21:45 |只看該作者
make.sh時候報了這些

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libevent.so when searching for -levent
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libevent.a when searching for -levent
/usr/bin/ld: skipping incompatible /lib/../lib64/libevent.so when searching for -levent
/usr/bin/ld: skipping incompatible /lib/../lib64/libevent.a when searching for -levent
/usr/bin/ld: skipping incompatible /usr/lib/../lib64/libevent.so when searching for -levent
/usr/bin/ld: skipping incompatible /usr/lib/../lib64/libevent.a when searching for -levent
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../libevent.so when searching for -levent
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../libevent.a when searching for -levent
/usr/bin/ld: skipping incompatible /lib64/libevent.so when searching for -levent
/usr/bin/ld: skipping incompatible /lib64/libevent.a when searching for -levent
/usr/bin/ld: skipping incompatible /usr/lib64/libevent.so when searching for -levent
/usr/bin/ld: skipping incompatible /usr/lib64/libevent.a when searching for -levent
/usr/bin/ld: skipping incompatible /usr/lib64/libevent.so when searching for -levent
/usr/bin/ld: skipping incompatible /usr/lib64/libevent.a when searching for -levent
/usr/bin/ld: skipping incompatible /lib/libevent.so when searching for -levent
/usr/bin/ld: skipping incompatible /lib/libevent.a when searching for -levent
/usr/bin/ld: skipping incompatible /usr/lib/libevent.so when searching for -levent
/usr/bin/ld: skipping incompatible /usr/lib/libevent.a when searching for -levent
/usr/bin/ld: cannot find -levent
collect2: ld returned 1 exit status
make: *** [fdfs_storaged] Error 1

論壇徽章:
0
7 [報告]
發(fā)表于 2016-09-01 09:21 |只看該作者
昨天晚上libevent編譯的問題,今天早上莫名的編譯成功了,現(xiàn)在已經(jīng)開始數(shù)據(jù)同步了

論壇徽章:
2
IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-08 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-05-26 06:20:00
8 [報告]
發(fā)表于 2016-09-01 16:19 |只看該作者
回復(fù) 3# happy_fish100

余大,我現(xiàn)在想實現(xiàn)fdfs的上傳目錄自定義,即不循環(huán)生成目錄,而是根據(jù)某個參數(shù)(userid)來創(chuàng)建目錄,之后在這個目錄下上傳文件。請問是否涉及到大量源碼的修改?或者有什么方法可以使fdfs_server 不參與目錄創(chuàng)建,只負(fù)責(zé)把上傳分發(fā)到不同分組,同時能返回正確的路徑?
看到storage.conf 中可以配置循環(huán)目錄的個數(shù),最小為 1X1,可不可以直接跳過這個功能?
盼指點一二!謝謝!~
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP