Archive for the Category » rorohiko «

Rātapu, August 04th, 2013 | Author:

I ahau i te hiko pā o nui toku tūmau MD RAID ngohi. Pai atu i te kia te tūmau me te mea he katoa e ki raro i te tatari hoki ki reira te whakaoti i te fsck, I ahau mea whawhai ki waho o te ngohi nui kia taea e ahau te rere ā-ringa i te fsck.

Heoi, ka rere ā-ringa i te reira kite ahau i ahau kahore ara o te mohio pehea te tawhiti i me pehea te roa e tango i te reira ki te whakaoti. Ko rawa raruraru ki te taua ngohi nui tenei. Ki te rapu iti kitea e ahau i te pito o te tāpiri i te C-tawhā ka karanga fsck. Kihai i kitea e ahau i tenei i roto i te tuhinga Heoi: fsck –whakakitea āwhina kahore kōwhiringa taua.

Tahuri i te kōwhiringa ki te e ext4-motuhake, me te kupu whakaatu he bar i te ahunga whakamua maitai mahi ki te tohu ōrau. Ki te kitea te mōhiohio, hei utu mo “fsck –te tauturu ia” ranei “te tangata fsck”, whai koe ki te whai wāhi “fsck.ext4 –te tauturu ia” ranei “te tangata fsck.ext4”. 🙂

Share
Rātapu, August 04th, 2013 | Author:

History

I puta ke te nuinga mai i whakahuatia whakamutunga e ahau toku tūmau whaiaro – kua tupu te reira e te amuamu me te rohe (te reira i teie nei, he 7TB MD RAID6) a kua tata kua hanga e ia ki te Ubuntu Tūmau.

Arch Ko kore he hape. Kua whakaako Arch Linux i ahau kia nui e pā ana ki Linux (a ka ki te rave i te reira i runga i era atu toku papamahi tonu). Ko Arch tino me ake te wā, me te aro atu e hiahia ana ahau ki te whakapau i runga i te tūmau. I pā atu te hinaaro hiahia ahau ki te e taea ki te wareware mō te tūmau hoki i te wā e tae noa ki ta te īmēra whakamaumahara “a … i reira te he hono i ngā whakahōunga kia titiro koutou i, hoa.”

E kore he utu Space – a e kore he wāhi

Ko te whai wāhi ki te heke ki a Ubuntu ko te meka i rere ahau i roto i SATA tauranga, te tauranga i hiahiatia ki te hono puku pakeke ki te toenga o te rorohiko – ka whakamahi i taua ngohi 7TB RAID te rota o te tauranga! I ara hoatu e ahau atu toku rawa koroheke 200GB kōpae mārō rite ka mau ake tetahi o aua tauranga. Ahau ano hoki faaara te kaiwhiwhi e te kōpae o SMART tohu te aroturuki i hārakiraki. Ka rite ki te kimi rangitahi ki te kore o SATA tauranga, I ara heke ahau OS te tūmau a ki te huinga o te wha USB rakau i roto i te MD RAID1. Haurangi. E mohio ana ahau ki. Kihai ahau i hari rawa e pā ana ki te tere. Faaoti e ahau ki te haere i roto i te hoko i te te puku hou tōtika pakeke me te kāri roha SATA ki te haere ki reira.

I te whakamahi i tataitia Arch tuatahi o te tūmau e pā ana ki 7GB o kōpae. He wāhi nui o taua ko te Whakawhitia kōnae, raraunga keteroki me te rere ngā kōnae momo kē hiahiatia ranei. Whānui i te rahi tūturu o te OS, tae atu ki te /te kāinga kōpaki, Ko anake e pā ana ki te 2KKP. Tenei tonu i kipa ahau ki te titiro ki te super-nohopuku SSD te puku, whakaaro pea a tetahi iti e kore ai e pera te utu. Tahuri te reira i roto i te puku e te na'ina'i kore-SSD i kitea e ahau mau utu atu atu i te kotahi o enei SSDs ähua iti. Yay hoki ahau. 🙂

Kōwhiringa? Woah?!

I roto i te kōwhiri i te OS, Hiahia kē ahau whakatau e kore e waiho te reira Arch. I roto i te atu tuwha rongonui katoa, Oku tino waia ki a Ubuntu ahau me te CentOS. Fedora Ko ano a taea – engari e kore ahau i tino ano whakaaro reira hoki te tūmau. Riro Ubuntu te a tawhio noa.

Te whakatau i muri i ahau ki te hanga kihai i puta ki ahau a taea noatia Ubiquity (Ruānuku tāutanga o Ubuntu) ka ui te reira o te ahau: Pehea ki te whakaturia ake i te wawahitanga.

I hou ki te whakamahi i SSDs i Linux ahau – Ahau pai mohio o te mau herepata o te kore te whakamahi i tika a ratou, te nuinga e tika ana ki to ratou tūpono o te pikinga o rawakore ki te tukinotia.

E kore ahau i hiahia ki te whakamahi i te arai Whakawhitinga oti te whakatapu. Whakamahere e ahau i runga i whakahou kaupapa / PTM / mahara te tūmau a kahore i tawhiti rawa i roto i te heke mai. I runga i taua faaoti e ahau, ka hoatu e ahau ki roto ki Huri te kōnae Whakawhitinga i runga i te RAID MD ngā. E kore e te Whakawhitinga e ngā nohopuku engari tona whakaaro anake ka waiho hoki i taua taime onge, no ka riro i te tahi mea ngā he, me te kore e wātea ana i te mahara.

Na ka whakarerea e ahau tenei ki te hoatu i te ara pakiaka te 60GB ki tonu i roto i o te Intel 330 SSD. Whakaaro ahau mawehe / te kāinga engari reira whakaaro tika, he kikokore iti, homai te iti i whakamahia i roto i te mua. Ahau tuatahi whakaturia ake te arai ki te LVM – te tahi mea kua tata ahau i mahi ina whakaturia e ahau ki runga i te pouaka Linux (tino, i reira te kahore he kupu whakahoki kahore ki te whakamahi i LVM). A, no te ka te reira ki te wahi i te wahi e whirihora e ahau te Pūnahakōnae, Pāwhiritia ahau te taka-iho me te hinengaro, i kōwhiria ext4. Na ka kite ahau i roto i te rārangi btrfs taua. Whakairi ki runga ki!!

Ko te aha?

Btrfs (“pata-eff-ess”, “pai-eff-ess”, “pi-rakau-eff-ess”, nga mea katoa Tena koe ranei i runga i te ra) Kua whakawhanakehia he Pūnahakōnae āhua hou i roto i kia kawea Linux’ kaha hoki Pūnahakōnae i runga i te ara ki te hangarau Pūnahakōnae o nāianei. Ko te Pūnahakōnae Kingi-o-te-Hill ngā, “ext” (te putanga o nāianei i huaina ext4) he tino pai – engari he iti, mau i roto i te tauira tawhito (whakaaro o te waitohu hou F22 Raptor vs. he K4 Phantom ki te hawhe-hunaonga i ngana i te whakamohoa equivalency) me he pea ki te e taea ki te whakataetae mo te tino roa ki hōu filesystems Enterprise pērā i A ahurewa ZFS. Tonu he huarahi roa ki te haere Btrfs me te whakaaro tonu whakamātau (i runga i te hunga e ui ki a koutou, me te mea ngā āhuatanga e hiahia ana koe kei). He tokomaha whakaaro ki reira hei kainga mo te whakamahi taketake – engari te tangata e haere ana ki te hanga tetahi ki pāmamao. A, o te akoranga, katoa kei te mea ki te hanga me te pūrua whakamātautau!

Mooooooo

Ko te rerekëtanga tino taketake waenganui i ext me btrfs ko e btrfs ko te “Kau” ranei “Tāruatia ki Tuhia” Pūnahakōnae. Tenei te tikanga e raraunga kua kore tino āta tuhia e te internals o te Pūnahakōnae. Ki te tuhituhi koe i te huringa ki te kōnae, ka tuhituhi a koutou huringa btrfs ki te wāhi hou i runga i pāpāho tinana, a ka whakahou i te atatohu ā-ki te tirohia ki te tauwāhi hōu. Btrfs haere te mahi anō i roto i taua hunga atatohu ā- (tukua ki te rite ki metadata) He hoki Kau. Ngā putanga tawhito o ext e kua tuhia noa te raraunga. E whakamahi Ext4 he Journal ki te whakarite e kore e pirau e puta kia yanked te plug AC i roto i te taime i te nuinga kāore i. Ngā hua o te hautaka i roto i te maha rite o nga kaupae e hiahiatia ana ki te whakahōu i ngā raraunga. Ki te SSD, te taputapu waiwai mahi he tukanga kau ōrite kore mea aha Pūnahakōnae e whakamahi ana koe. Ko te kupu tenei i te mea e kore e taea e ngā puku SSD tuhirua rawa raraunga – ratou ki te tārua i te raraunga (ki o koutou huringa) ki te wāhi hou me ka ūkui anake te poraka tawhito. He arotautanga i roto i tenei rohe ko e kore ai he SSD ara te ūkui i te poraka tawhito engari kia noa te nota ki te ūkui i te poraka i te wa i muri mai, no te kore e pera pukumahi mea. Ko te hua mutunga ko e uru rawa te pai puku SSD ki te Pūnahakōnae kau, me te kore e rite ki te mahi pai ki te filesystems kau-kore.

Ki te hanga mea whai, Kau i roto i te Pūnahakōnae haere ngāwari ringa i roto i te ringa ki te āhuatanga i huaina deduplication. Tenei ka taea e rua (neke atu rānei) ōrite poraka o ngā raraunga ki te penapena mā te whakamahi i te anake tētahi tārua kotahi, te tiaki wāhi. Ki te kau, ki te whakarerekētia te kōnae deduplicated te, e kore e pāngia i te māhanga motuhake rite e raraunga i te kōnae whakarerekētia a kua tuhituhia kua ki i te poraka rerekē tinana.

Kau i roto i tahuri hanga snapshotting ngāwari ngā ki te whakatinana i. I te hanga he hopuāhua te tuhi noa i te pūnaha te whakaahua hou rite he tāruarua o ngā raraunga katoa me metadata i roto i te rōrahi. Ki te kau, ka hanga e huringa, noho te tum raraunga o te whakaahua, a taea tonu he tirotiro rite o te mana o te Pūnahakōnae i te wa i hanga i te whakaahua i.

A hoa hou

Ki te runga ake i roto i te hinengaro, rawa rite hanga Ubuntu kua btrfs wātea hei kōwhiringa tāuta-wā, Te take e waiho hei wa pai ki te ruku ki btrfs me te tūhura i te iti. 🙂

Part 2 e haere mai ana, no te …

Share
Monday, October 29, 2012 | Author:

Puta i te reira e, i roto i te whakaaro nui mure ore, Google he āhuatanga haumaru e taea e te ārai i te tono i te whakauru ki te whakamahi ranei i tō pūkete google. Ka taea e kite ahau i pehea ai e he raruraru tenei mo ngā kaiwhakamahi o Google, i roto i ngā ratou GTalk me te Gmail kaiwhakamahi. I roto i taku take, ko reira Häunga te mea he take ki te Jabber mahi (i te mea tū wahi o GTalk). Kitea e ahau i te otinga i muri i te iti keri. I maere e ahau i pehea tau o te take, me pehea te roa, kua vai tēnei āhuatanga!

Ki te iriti i te aamu, a te tiki i tō tono ipurangi, whakamahi Captcha te whārangi o Google konei.

Share
Thursday, June 03rd, 2010 | Author:

Why I’ve left MTN

So I’ve been shopping around in a non-serious fashion in the last few months trying to figure out how best to leave MTN and how get the best deal for me. I don’t like MTN since I became anirate“, as I might call such a customer in the ISP industry. MTN’s Customer-Service Call Centre had rarely been helpful or knowledgeable on their own systems. The final straw however was when their systems let me screw myself over and Customer Service was as helpful as a dead redshirt:

I had a billing issue where, admittedly, it started of my own fault. MTN has a feature where you can call in to find out the amount owing on your account. Only, as Murphy would have it, this amount was kore the amount owing on the account but the last amount that was billed.

So one month my account was about R900. I called the number, mis-heard R500, paid the amount I thought I should: R500. 15 days later MTN suspended my account. No wrong done, right? Wrong.

First off, I received no notification of any kind. An sms would make the most sense, especially since it would cost MTN almost no resources: “Your account xyz is in arrears by R400. Please contact blah blah blah”. They could phone me, they could email me, something, but nothing of the sort happened. Suspend without Prejudice. Thats the best way to get the customer’s attention!

Now, not only could I not make calls and sms’s, I could not receive calls or sms’s. Further, I could not even call MTN’s toll free phone number. I had to use someone else’s phone to get to the bottom of the problem. After two days of haggling I finally found a lady kind enough to re-enable the account. Ten days later my salary goes in, I call the same number and hear a number close toR900”. I think to myself maybe I should double-check juuuust in case I mis-heard. I call again, I hear the same number again. Right. Pay the R900. Fifteen days later, my phone is suspended AGAIN. WTH?

Remember what I mentioned earlier?: “this amount was kore the amount owing on the account but the last amount that was billed.” So, in spite of the fact that the voice prompt specifically saysPress 3 for Balance Due; [Presses 3] ; The Total Outstanding Balance is; Nine; hundred; me te; #whatever ; Rands; me te; #whatever; cents”, I actually owed them R900 plus the R400 that I’d paid short the previous month. No, I do not know if MTN has fixed this. I no longer care. Since I figured this out I started waiting for paper statements to see how much was actually due. Interestingly, their paper statements were also wrong. Only they had the opposite problem: “This invoice: R1300in spite of the fact that on the next page it says opening balanceR400”, closing balanceR1300”. Pah! Is it fixed? Again, I don’t care.

I let them know I wasn’t renewing the contract and I’ve now already ported my number away to Virgin Mobile. Because I want to keep my number and port it elsewhere, the store said I could not putunsatisfactory serviceas the reason for ending the contract but that it should simply sayporting”. Apparently by putting anything else there they might notnoticethat I want it ported. WTF.

What next? (without MTN)

In my research I’ve found that contractdealsare most popular. Typically, you can get a R8000 phone for R800 per month over 24 months with R500-odd worth of airtime per month. This amounts to you paying R19 200 over a 24-month period for a phone worth R8000 which will be obsolete within 12 months. You will get some airtime every month so you might feel its not a complete loss. However you should also remember that it costs the cellular companies nothing when you make those phone calls. Profit.

There’s a better way

There are much cheaper contracts, contracts for between R50 and R200 which include cheapish phonesphones that work damned well as a phone but won’t let you play games on the train. Most of these contracts actually give you the same airtime value (sometimes more!) as what you are paying. So for R100 you might get R100 worth of airtime plus some free sms’s, and a cheapish phone. The best deals I’ve seen recently have all been for the Samsung STAR, an understated but good cell phone, available from a number of retailers for between R100 and R200 per month. In most cases the deals have included the full amount of airtime. Virgin Mobile has probably the best example here: The cost is R199 per month which includes R200 in airtime and 1000 sms’s (ae, you read that rightone thousand!).

Virginal Service All the Way!

Another reason I’ve gone with Virgin Mobile is a little something no other service provider does: AmixedContract/Prepaid facility. I get R200 in airtime however, if I go over that, the extra just gets added to my invoice. With MTN this could go sky high without the option of a limit! With Virgin, because I asked, it has a limit of R300. Heoi, I can still add prepaid airtime (with cellphone banking, nogal). No other service provider lets you do this!

Remember that R8000 cell phone I mentioned earlier? My plan is to get the Samsung STAR and spend less than R300 per month. I’ll have saved enough money to actually go and buy a more expensive phone (or laptop) with the cash I’ll have saved! O te akoranga, if you actually use that R800-worth of phone calls, I guess the best available deal is where you spend the R19200 anyway. Maybe at least with a more critical view on your choices you’ll save yourself a good amount of money in future. Good luck in your search for your best deal!

Share
Thursday, November 12th, 2009 | Author:

If you ever find yourself updating a single application in Arch Linux (a very bad idea, btw) and it upgrades readline you might end up seeing an error along the lines of:
/bin/bash: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
Hopefully you still have a bash prompt open and you haven’t closed them all. If you still can, immediately run the following:
pacman -S bash
else you won’t be able to run bash any more because bash would still be linking to the old version of readline.

hoki, in future, don’t run
pacman -Sy application
(python in my case)
instead, run:
pacman -Syu
which will ensure that all applications are upgraded.

Personally, I think that bash should have had a dependency set saying that it required the old specific version of readline and the same for the new bash, requiring the new version of readline. Regardless, rather play it safe. 😉

Share