const{createApp}=Vue const{createVuetify,useGoTo,useDisplay}=Vuetify var data={alert:{show:false,color:'success',text:'',timeout:0,},theme:{dark:false,},nav:{showDrawer:false,showTOC:true,tocPanel:0,tab:'account',post:{discussionId:6586,currentPage:1,targetPage:1,total:38,anchor:0,goToOptions:{container:null,duration:0,easing:'easeInOutCubic',offset:-100,},worker:null,task:[],active:[],apiLock:[],originLike:new Map([]),},related:{block:1,}},search:{width:80,text:null,loading:false,},tags:[{id:15,url:'/t/0f074b236a045c7665770f3a1528',name:'软路由',color:'#66BB6A',icon:'mdi-router-wireless-settings',},{id:55,url:'/t/030b03186a045c72657728264058',name:'Proxmox VE',color:'#66BB6A',icon:'mdi-tag-heart',},],posts:[{id:80651,num:0,uid:14811,content:'\u003Cp\u003E大家好,\u003C/p\u003E\u003Cp\u003E我家使用的是畅网 N100 软路由,安装了 PVE 作为虚拟化平台,配置了爱快做主路由,IstoreOS 做旁路由,硬盘是刚刚更换的铠侠 SD10 ,1TB ,内存为 16GB 海力士。\u003C/p\u003E\u003Cp\u003E问题是,设备经常死机,系统死机时硬盘灯不亮,只有重启后才能恢复正常,硬盘灯会闪烁。每次死机后需要强制重启才能恢复,而每次重装 PVE 系统后,最多能坚持一个月左右,之后问题再次出现。\u003C/p\u003E\u003Cp\u003E现象:•死机时,网口灯正常闪烁,但硬盘灯不亮。•手摸机器,感觉超级烫,可能是过热问题。\u003C/p\u003E\u003Cp\u003E在最初,我怀疑是 IstoreOS 旁路由问题,已经设置了旁路由每天自动重启,但问题依然没有解决。\u003C/p\u003E\u003Cp\u003E更换硬盘前,老硬盘也有类似问题,最后几次强制重启都没用,每次都需要格式化硬盘并重装 PVE ,且死机的间隔时间越来越短,一开始是 30 天,最后仅能坚持 3 天。\u003C/p\u003E\u003Cp\u003E新硬盘情况:目前新硬盘强制重启系统后不会立即挂掉,但系统的维持时间越来越短,现在是 15 天、7 天、3 天,下一次死机时间无法预测。\u003C/p\u003E\u003Cp\u003E目前排查的情况:•设备配置:畅网 N100 软路由,PVE 虚拟化 + 爱快主路由 + IstoreOS 旁路由,硬盘为铠侠 SD10 ,1TB ,内存 16GB 海力士。•现象:死机时网口灯正常闪烁,硬盘灯不亮,机器非常烫,需重启才能恢复,重装系统后最多能坚持一个月。•历史问题:换硬盘前,老硬盘也频繁死机,强制重启和重装 PVE 均未能解决问题。最后几次强制重启都无效,需要格式化硬盘并重装,死机时间间隔逐渐缩短,从 30 天到 3 天。\u003C/p\u003E\u003Cp\u003E怀疑问题:1.电源问题:电源是否稳定,是否供电不足导致死机?2.硬件兼容性或驱动问题:是否存在硬件不兼容或驱动问题,导致系统不稳定?3.散热问题:设备过热是否导致死机?是否需要更好的散热方案?4.PVE 配置问题:PVE 和虚拟机的资源配置是否合理?\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 00:31:33',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80652,num:1,uid:45,content:'建议先排查散热吧,打开盖子用个小风扇吹,看看有没有问题就知道了',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 01:39:55',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80653,num:2,uid:5798,content:'我想回贴告诉你,畅网很**\u003Cbr\u003E我买的万兆畅网也不行了',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 01:50:57',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80654,num:3,uid:5798,content:'你的问题我感觉是 cpu 过热了\u003Cbr\u003E但是也排除下内存问题吧先',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 01:52:15',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80655,num:4,uid:59,content:'99%供电不足',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 02:12:02',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80656,num:5,uid:5116,content:'大概率硬件问题,搞一台二手服务器跑 PVE 吧',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 03:25:54',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80657,num:6,uid:14812,content:'把机器盖子打开。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 05:31:27',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80658,num:7,uid:134,content:'科普一下硬件维护,新电脑买回来后,要做几个检查:\u003Cbr\u003E\u003Cbr\u003E1.内存条检测,用 memtest86+,至少跑 48 小时,不能有红字报错。\u003Cbr\u003E\u003Cbr\u003E2.每个硬盘、SSD 要做 3 项检测:全盘读写检测、性能检测、S.M.A.R.T 检测。\u003Cbr\u003E\u003Cbr\u003E3.满负载测试:双烤 3 天检测,记录功耗与温度曲线。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 06:51:34',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[18,],mentionUsers:[],likeUsers:[],},{id:80659,num:8,uid:12615,content:'供电、SSD 、散热,就这 3 个问题,自己排查吧',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 08:03:02',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80660,num:9,uid:235,content:'是不是这硬盘发热量太大了',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 08:17:51',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80661,num:10,uid:14813,content:'换个内存试试',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 08:27:23',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80662,num:11,uid:10787,content:'遇到过差不多状况,直接返厂了',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 08:32:53',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80663,num:12,uid:14814,content:'N100 发热挺大的,先加个风扇试一下吧',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 08:33:16',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80664,num:13,uid:220,content:'最有可能是过热',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 08:52:39',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[23,],mentionUsers:[],likeUsers:[],},{id:80665,num:14,uid:1100,content:'大概率是 cpu 过热没有降频,导致 cpu 死机。\u003Cbr\u003E\u003Cbr\u003E进 bios 调整一下散热设置。windows 系统下 cpu 温度过高会降频,pve 没这个功能,风扇和降频依赖 bios 。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 09:09:44',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80666,num:15,uid:825,content:'遇到过 N5105 发热大了 SSD 掉盘的情况,接了显示器才看到一堆内核错误,这时 SSD 挂了没法写日志',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 09:09:51',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80667,num:16,uid:1100,content:'升级 bios ,实在不行,可以试试 pve 转 windows 的 hyper-v ,windows 有 cpu 过热降频的',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 09:12:06',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80668,num:17,uid:993,content:'感觉是板载的东西可能有问题,最大嫌疑是 cpu 或者跟 cpu 相关的控制器之类的。。 应该不是散热。应该是 cpu 体质或者南桥北桥之类的。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 09:17:29',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80669,num:18,uid:6576,content:'#7 一般正常家用电脑,买回来默认设置,也不用搞这么多压测吧',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 09:20:07',updatedAt:'2025-03-28 10:44:39',mentionNum:7,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:80670,num:19,uid:1201,content:'找售后❌\u003Cbr\u003E上 v2 输出✅',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 09:31:12',updatedAt:'2025-03-28 10:44:39',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},],usersMap:new Map([[14812,{uid:14812,url:'/u/022a590f6a045d73686b546f25312908',avatar:'/a/022a590f6a045d73686b546f25312908',username:'ashes1122🤖',}],[1100,{uid:1100,url:'/u/0b2d76226a045c76616a566f153e173e',avatar:'/a/0b2d76226a045c76616a566f153e173e',username:'yinmin🤖',}],[220,{uid:220,url:'/u/001b7d356a045c776268566f470c040d',avatar:'/a/001b7d356a045c776268566f470c040d',username:'keengrass🤖',}],[10787,{uid:10787,url:'/u/622a5f196a045d776762516f07193011',avatar:'/a/622a5f196a045d776762516f07193011',username:'akvo🤖',}],[12615,{uid:12615,url:'/u/3e3e6a5a6a045d75666b536f1550150c',avatar:'/a/3e3e6a5a6a045d75666b536f1550150c',username:'wq2016🤖',}],[134,{uid:134,url:'/u/332f070f6a045c776169526f380c031e',avatar:'/a/332f070f6a045c776169526f380c031e',username:'laminux29🤖',}],[14814,{uid:14814,url:'/u/1f1865186a045d73686b526f0e3e6024',avatar:'/a/1f1865186a045d73686b526f0e3e6024',username:'ofnh🤖',}],[14813,{uid:14813,url:'/u/1e7f7c056a045d73686b556f3c58360d',avatar:'/a/1e7f7c056a045d73686b556f3c58360d',username:'Excepti0n🤖',}],[2471,{uid:2471,url:'/u/08785f0e6a045c75646d576f0f5d6a29',avatar:'/a/08785f0e6a045c75646d576f0f5d6a29',username:'Y25tIGxpdmlk🤖',}],[6576,{uid:6576,url:'/u/2f11552c6a045c71656d506f461d0300',avatar:'/a/2f11552c6a045c71656d506f461d0300',username:'Qazxcv123🤖',}],[235,{uid:235,url:'/u/2e1e61026a045c776269536f182d650e',avatar:'/a/2e1e61026a045c776269536f182d650e',username:'godwei🤖',}],[45,{uid:45,url:'/u/6c2a512c6a045c77606e536f4f1d3e72',avatar:'/a/6c2a512c6a045c77606e536f4f1d3e72',username:'ysc3839🤖',}],[825,{uid:825,url:'/u/081b04546a045c776868536f350a3509',avatar:'/a/081b04546a045c776868536f350a3509',username:'vmebeh🤖',}],[59,{uid:59,url:'/u/111d060f6a045c77606f5f6f403d3905',avatar:'/a/111d060f6a045c77606f5f6f403d3905',username:'kk2syc🤖',}],[5798,{uid:5798,url:'/u/383b7e3e6a045c7267635e6f00052113',avatar:'/a/383b7e3e6a045c7267635e6f00052113',username:'jiaoguan1688🤖',}],[1201,{uid:1201,url:'/u/111c68206a045c76626a576f1f3e372f',avatar:'/a/111c68206a045c76626a576f1f3e372f',username:'kokutou🤖',}],[14811,{uid:14811,url:'/u/220b4b066a045d73686b576f422f1729',avatar:'/a/220b4b066a045d73686b576f422f1729',username:'yanaxiao🤖',}],[993,{uid:993,url:'/u/6c7f7f1f6a045c776963556f133b1774',avatar:'/a/6c7f7f1f6a045c776963556f133b1774',username:'hefish🤖',}],[5116,{uid:5116,url:'/u/223d5d2f6a045c72616b506f1c3b1e20',avatar:'/a/223d5d2f6a045c72616b506f1c3b1e20',username:'Int100🤖',}],]),related:[{title:'tailscale 和 zerotier 哪个好用,功能多?',url:'/d/360b75096a045c77606a567a445d6a6a2b280405',},{title:'Openwrt 上如何设置递归静态路由',url:'/d/2f2c575e6a045c77606a567a465f676a5b2f3139',},{title:'求一个PVE一键安装脚本,另想问下PVE能开windows服务器吗',url:'/d/1c7848356a045c77606a567a4750656a01350301',},{title:'小米 wifi7 路由器千兆都跑不满',url:'/d/313003376a045c77606a567a475c606a1c101014',},{title:'家庭路由器组网求助',url:'/d/3711025f6a045c77606a56754f5e636a3b0c3505',},{title:'EasyTier 组网是真不错',url:'/d/6a035e586a045c77606a56744051666a5d332b01',},{title:'目前好像感受到了 openwrt 作为主路由的无力感',url:'/d/373048036a045c77606a56744051616a2517642b',},{title:'路由器选择就推荐,小米还是中兴呢?或者华硕呢',url:'/d/6a3e555a6a045c77606a5674405f676a282f0920',},{title:'城中村租房 OpenWrt 抢共享带宽问题求助',url:'/d/6b3b512b6a045c77606a5674425d626a2e731038',},{title:'两个路由器之间的电力猫应该如何配置?',url:'/d/0f784b076a045c77606a56744258656a2b711f64',},{title:'大佬们能帮我看看拓扑图吗?现在旁路无法上网,折腾两天了,头都大了。',url:'/d/3f2c713a6a045c77606a56744358656a15356b34',},{title:'求推荐带两路 SFP+口的路由器',url:'/d/620859076a045c77606a5674455f656a1b131f15',},{title:'如何把硬飞牛迁移到 PVE 中去?',url:'/d/192f420b6a045c77606a5674455d6b6a1f723463',},{title:'你们的AdGuard home能去youtube客户端广告吗',url:'/d/1c7c482c6a045c77606a5674465f6a6a5b2f0319',},{title:'有什么好用的软路由系统推荐吗',url:'/d/3d3b7e1d6a045c77606a5674465b636a2902231f',},{title:'请问免费的虚拟机管理平台推荐 (像是阿里云)',url:'/d/281355086a045c77606a56774258676a2e0d252b',},{title:'小鸡不知道什么时候就断联,Pve重启就恢复了,这什么情况',url:'/d/370b621f6a045c77606a56774450666a0f2a3a26',},{title:'openwrt 去广告的方案',url:'/d/1f3c621a6a045c77606a56774550656a0d326304',},{title:'r2s 的内存卡(带op系统 ) 插r4s 上能否直接使用。',url:'/d/2f38780f6a045c77606a5677455b6b6a0a7a1a2a',},{title:'PVE开的小鸡老是6,7天半夜断网一次,需要手动重启才能恢复,这什么原因啊?',url:'/d/23260a376a045c77606a5677465b626a3c37171f',},],} const App={setup(){const goTo=useGoTo() const{mdAndUp}=useDisplay() return{goTo,mdAndUp}},data(){return data;},mounted(){const themeDark=localStorage.getItem("themeDark") if(themeDark!==null){this.theme.dark=JSON.parse(themeDark)} if(this.nav.post.total>(this.nav.post.currentPage-1)*100+20){let moreLen=100 if(this.nav.post.total({id:null,num:(this.nav.post.currentPage-1)*100+v,uid:null,content:null,ipRegion:null,updatedByUid:null,createdAt:null,updatedAt:null,mentionNum:null,mentionedBy:null,mentionUsers:null,likeUsers:null,})) this.posts.push(...morePosts.slice(20))} this.workerStart() const hash=window.location.hash const match=hash.match(/#(\d+)/) if(match){const n=parseInt(match[1],10) if(n>=(this.nav.post.currentPage-1)*100&&n{this.jumpTo(n)})}} this.$nextTick(()=>{this.addHeadingIds() tocbot.init({tocSelector:'.toc',contentSelector:'#post-content-0',headingSelector:'h2, h3, h4',headingsOffset:100,scrollSmoothOffset:-100,scrollSmooth:true,collapseDepth:6,onClick:function(e){setTimeout(()=>{history.replaceState(null,'',window.location.pathname+window.location.search)},0)},}) tocbot.refresh()});},beforeUnmount(){this.workerStop() if(this.quill){this.quill.destroy() this.quill=null}},computed:{dposts(){return this.posts.slice(20);},},created(){},methods:{successAlert(msg){this.alert={show:true,color:'success',text:msg,timeout:1500,}},failureAlert(msg){this.alert={show:true,color:'error',text:msg,timeout:5000,}},flipThemeDark(){this.theme.dark=!this.theme.dark localStorage.setItem("themeDark",JSON.stringify(this.theme.dark))},toSearch(){if(!this.search.text){this.failureAlert('搜索词不能为空') return} let keywords=this.search.text.trim() if(keywords.length<1){this.failureAlert('搜索词不能为空') return} if(keywords.length>100){this.failureAlert('搜索词过长') return} this.doSearch(keywords)},toReg(){window.location.href="/reg"},toLogin(){window.location.href="/login"},toPage(){let url=window.location.href url=url.replace(/(\/\d+)?(#[0-9]+)?$/,this.nav.post.targetPage>1?`/${this.nav.post.targetPage}`:'') window.location.href=url},toLoadRelated({done}){if(this.my&&this.my.uid){this.apiLoadRelated({done})}else{done('ok')}},workerStart(){this.nav.post.worker=setInterval(()=>{this.workerLoad()},500);},workerStop(){if(this.nav.post.worker){clearInterval(this.nav.post.worker);this.nav.post.worker=null;}},async jumpTo(num){const page=Math.floor(num/100)+1 const i=num-(page-1)*100 if(page===this.nav.post.currentPage){this.goTo("#post-"+num,this.nav.post.goToOptions) if(!this.posts[i].id){const block=Math.floor(num/20)+1 this.nav.post.apiLock[block]=true await this.apiLoadPosts(block) this.$nextTick(()=>{this.goTo("#post-"+num,this.nav.post.goToOptions)})}}else{let url=window.location.href url=url.replace(/(\/\d+)?(#[0-9]+)?$/,page>1?`/${page}`:'') url=url+"#"+num window.location.href=url}},postIntersect(num){return(isIntersecting,entries,observer)=>{if(isIntersecting){this.nav.post.task.push(num) this.nav.post.active.push(num) this.nav.post.active=this.nav.post.active.filter(item=>Math.abs(item-num)<=5) this.nav.post.active.sort((a,b)=>a-b)}else{this.nav.post.active=this.nav.post.active.filter(item=>item!==num)} if(this.nav.post.active[0]){this.nav.post.anchor=this.nav.post.active[0]}else{this.nav.post.anchor=0}}},async apiLoadPosts(block){try{const response=await axios.post('/fapi/v1/post/block/'+block,{discussionId:this.nav.post.discussionId,}) if(response.data.code===0){response.data.data.posts.forEach(post=>{const i=post.num%100 Object.assign(this.posts[i],post)}) response.data.data.users.forEach(user=>{this.usersMap.set(user.uid,user)})}else{this.failureAlert('回帖数据加载失败: '+response.data.msg)}}catch(error){this.failureAlert('回帖数据加载失败: '+error)} this.nav.post.apiLock[block]=false},workerLoad(){while(this.nav.post.task.length){const num=this.nav.post.task.pop() const i=num-(this.nav.post.currentPage-1)*100 if(!this.posts[i].id){const block=Math.floor(num/20)+1 if(!this.nav.post.apiLock[block]){this.nav.post.apiLock[block]=true this.apiLoadPosts(block)}}}},getTimeInfo(t){if(!t){return ""} const now=new Date();const then=new Date(t);const diff=now-then;const minute=60*1000;const hour=minute*60;const day=hour*24;const month=day*30;const year=month*12;if(diffpost.num===num) if(!post){return "#"+num} const uid=post.uid const username=this.usersMap.get(uid)?.username if(!username){return "#"+num} return username},getUsernameByPostId(id){const post=this.posts.find(post=>post.id===id) if(!post){return "#"+this.getPostNumByPostId(id)} const uid=post.uid const username=this.usersMap.get(uid).username if(!username){return "#"+this.getPostNumByPostId(id)} return username},getPostNumByPostId(id){const post=this.posts.find(post=>post.id===id) return post.num},getPostById(id){const post=this.posts.find(post=>post.id===id) return post},getPostByNum(num){const post=this.posts.find(post=>post.num===num) return post},getAvatarByUid(uid){const avatar=this.usersMap.get(uid)?.avatar if(!avatar){return this.getRandomAvatar()} return avatar},getAvatarByPostNum(num){const post=this.posts.find(post=>post.num===num) if(!post){return this.getRandomAvatar()} const uid=post.uid return this.getAvatarByUid(uid)},getRandomAvatar(){const num=Math.floor(Math.random()*100) return "https://randomuser.me/api/portraits/men/"+num+".jpg"},getUrlByUid(uid){const url=this.usersMap.get(uid)?.url if(!url){return ""} return url},getTextByPostNum(num){const post=this.posts.find(post=>post.num===num) if(!post||!post.content){return '点击跳转到#'+num+'查看'} const parser=new DOMParser() const doc=parser.parseFromString(post.content,'text/html') const text=doc.body.textContent||'' return text.slice(0,100)},addHeadingIds(){const content=document.getElementById('post-content-0') if(!content){this.nav.showTOC=false return} const headings=content.querySelectorAll('h2, h3, h4') headings.forEach((heading,index)=>{if(!heading.id){heading.id=`toc-nav-${index}`}}) if(headings.length==0){this.nav.showTOC=false}},async doSearch(keywords){this.search.loading=true try{const response=await axios.post('/fapi/v1/search',{keywords:keywords,}) if(response.data.code===0){if(response.data.data.hash&&response.data.data.hash.length===32){window.location.href="/s/"+response.data.data.hash}else{this.failureAlert('搜索失败: 搜索服务异常')}}else{this.failureAlert('搜索失败: '+response.data.msg)}}catch(error){this.failureAlert('搜索失败: '+error)} this.search.loading=false},debounce(fn,delay){let timer=null return function(...args){if(timer)clearTimeout(timer) timer=setTimeout(()=>{fn.apply(this,args)},delay);};},},watch:{'nav.post.targetPage':{handler:async function(newV,oldV){this.toPage()},immediate:false},},} const vuetify=createVuetify({defaults:{global:{ripple:true,},},}) const app=createApp(App) app.use(vuetify).mount("#app")