Skip to main content

Posts

Showing posts from October, 2017

zfs - How can I monitor HP P410 hardware RAID degraded in Freenas

I would like to run freenas on a HP P410 hardware RAID 5 4x600GB 15k SAS array and be alerted in the case of physical disk failure, however the freenas documentation says: to prevent problems, do not enable the S.M.A.R.T. service if your disks are controlled by a RAID controller as it is the job of the controller to monitor S.M.A.R.T. and mark drives as Predictive Failure when they trip. As the machine is installed in a lights-out data center, there's no way for the controller to alert anyone of RAID array being degraded. S.M.A.R.T. would appear to be an option - perhaps a physical disk failure would show as a high "Reallocated Sectors Count" at the array level? Notes: Other options I have considered, but rejected are: Using a dumb HP H220 HBA with RAID-Z (<1.2TB guaranteed) or RAID 10 (1.2TB), but neither provi

windows - Why can a user grant themselves the Log On As A Service right?

itemprop="text"> href="http://technet.microsoft.com/en-us/library/cc739424%28WS.10%29.aspx" rel="noreferrer">This article describes the (relatively laborious) steps you should go through to grant an Active Directory user the Log On As A Service right. However, if I install a service and manually specify my AD account's logon credentials (service properties | Log On), Windows tells me that 'The account [myaccount] has been granted the Log On As A Service right.' I can then run the service under my account credentials. However, on a subsequent reinstall of the service (or sometimes on reboot), the service is once again unable to start because of a login failure... until I go in and manually enter my credentials again, and the account is magically 'granted the Log On As A Service right.' After this, the

mac osx - Can I specify a port in an entry in my /etc/hosts on OS X?

I want to trick my browser into going to localhost:3000 instead of xyz.com. I went into /etc/hosts on OS X 10.5 and added the following entry: 127.0.0.1:3000 xyz.com That does not work but without specifying the port the trick works. Is there a way to do this specifying the port? itemprop="text"> class="normal">Answer No, the hosts file is simply a way to statically resolve names when no DNS server is present.

nginx auth_basic 401 htpasswd

itemprop="text"> I've got this strange error: I have a Jenkins service running in 8090 which I want to password protect via Nginx auth_basic with proxy_pass When doing the proxy-pass without auth_basic, I can access the site without issues: server { listen 8080; location / { proxy_pass http://localhost:8090; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_redirect off; proxy_buffering off; proxy_pass_header Authorization; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # auth_basic "Restricted"; #For Basic Auth # auth_basic_user_file /etc/nginx/htpasswd; #For Basic Auth } } However, when uncommenting the two auth lines. I get the expected login p

domain name system - Using .local for internal websites

Is it okay to use app.mycoolname.local for URLs that are private / internal? We have several applications that are web based, but they are private apps and are not exposed to the public. We have been using ".net" for some of these, which doesn't make sense since they could collied with a real URL on the internet. That hasn't been a problem yet. But now I have a new group of applications and I want to name them using a "popular" name that will definatly collide with a URL on the internet. Should I use app.mycoolname.local ? I have it set up this way right now, and it seems to be working. I have read a few places where it was encouraged, but then I saw a few places where it wasn't working (some problem on Mac, but we don't have those, so NBD). Answer It's p

domain name system - Robust and flexible hosting of DNS A records

itemprop="text"> I'm currently working on a web platform that will be used to power lots of small websites. All of the websites will be hosted on this platform, on either a dedicated or VPS set-up. I don't want to provide a full DNS hosting service, taking on responsibility for routing emails etc, I only want responsibility for the 'website' part of the domains. The obvious solution to this is to point the 'www' A records of the domains to my server IP, which would have the desired effect. However, what if my server dies and I need to switch all sites to a back-up on a different server with a different IP? I'd need to contact all of the DNS providers for all of the different domains and get them to re-point their A records. This is not desirable. So... question is, is there a sensible approach to handlin

php - Indepth Analysis: Prevent mail from being flagged as spam

I want to start an indepth discussion on all ways of avoiding mail being flagged as spam. I have done most of what i knew to prevent mail from being listed as spam. i have tried the following 1) using phpmailer to setup appropriate headers 2) used SPF correctly 3) implemented DKIM correctly 4) my sender score is 93 href="https://www.senderscore.org/lookup.php?lookup=50.57.111.177&ipLookup.x=55&ipLookup.y=9" rel="nofollow noreferrer">https://www.senderscore.org/lookup.php?lookup=50.57.111.177&ipLookup.x=55&ipLookup.y=9 I have even gone as far as asking hotmail etc to add me to a permited sender policy. all these have been all in vain. below is a header i get from my gmail account. and the mail is still flagged as spam. Delivered-To: jorfergie03@gmail.com Received: by 10.220.15.207 with SMTP id

raid - Installing XenServer 6.2 on Proliant DL160G6 freezes during "Installing from base pack"

itemprop="text"> I'm trying a new install of XenServer 6.2 on an HP Proliant DL160G6 with a HP P410 raid card configured as RAID 5 over 4 drives, with a 256M BBWC. The install starts off properly, but when it gets to about 56% completion of "Installing from Base Pack", it just completely freezes and stops continuing. I am unable to switch consoles using Alt-F2, etc. I've tried rebooting and restarting the install, but to no additional success. If, however, I reconfigure my HW Raid as Raid 1 or Raid 1+0, the installation is successful, which makes me wonder if this is a compatibility issue with P410 Raid configuration, however, according to the href="http://hcl.xensource.com/ProductDetails.aspx?ProductType=HBA&ProductName=Smart%20Array%20P410i%20RAID" rel="nofollow noreferrer">HCL , the P

ubuntu - VPS - Maintenance Efforts

I'm contemplating about moving my current website to a VPS - Plan instead of a shared hosting which I'm on now to make the deployment process of updates a lot easier (the shared hosting environment i'm on now doesn't allow SSH access). However, I want to be able to spend as less time as possible not on my core business, so I was wondering how many hours a week VPS maintenance costs an which tasks are involved. I'm planning on using a Ubuntu server + free control panel like Vesta CP. I need to be able to send mail and receive customer support emails as wel. Does the control panel aid in keeping all services updates (php / mysql/ mail daemon etc). Do note, i have experience with ubuntu and general server management and linux stuff, but I can't make a assessment about how much effort is invovled. thanks for your input and e

active directory - Any downside to adding a UPN instead of trying to correct our AD domain name?

itemprop="text"> Unfortunately I inherited an Active Directory domain whose name is a DNS name the company does not own - we'll call it ABC.com. I would like it to be something under company.com instead (per href="https://serverfault.com/a/473530/17708">MDMarra's answer on AD naming I'd probably use ad.company.com since you never want to use a DNS name you use for anything else), but the hard requirement for now is to be able to move email to Office 365 this year and using Directory Synchronization. For that, it looks like at a minimum I need a matching UPN to our email domain (company.com). Ok, href="https://support.office.com/en-us/article/How-to-prepare-a-non-routable-domain-such-as-local-domain-for-directory-synchronization-e7968303-c234-46c4-b8b0-b5c93c6d57a7" rel="noreferrer">the process for adding a s