Monthly Archives: March 2012

mdadm administration and maintenance

check status of a raid:
root@server:/home/markp# mdadm --query --detail /dev/md0
/dev/md0:
Version : 0.90
Creation Time : Wed Jun 16 11:12:17 2010
Raid Level : raid1
Array Size : 732571904 (698.64 GiB 750.15 GB)
Used Dev Size : 732571904 (698.64 GiB 750.15 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Mon Mar 26 08:37:54 2012
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : a796fd2c:740124f9:01f9e43d:ac30fbff (local to host server)
Events : 0.7867161

Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 0 0 1 removed

the two disks of my md0 are sdb1 and sdc1. Add back whichever is degraded:
root@server:/home/markp# mdadm --add /dev/md0 /dev/sdc1
mdadm: added /dev/sdc1
root@server:/home/markp# mdadm --query --detail /dev/md0
/dev/md0:
Version : 0.90
Creation Time : Wed Jun 16 11:12:17 2010
Raid Level : raid1
Array Size : 732571904 (698.64 GiB 750.15 GB)
Used Dev Size : 732571904 (698.64 GiB 750.15 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Mon Mar 26 08:53:20 2012
State : clean, degraded, recovering
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1

Rebuild Status : 0% complete

UUID : a796fd2c:740124f9:01f9e43d:ac30fbff (local to host server)
Events : 0.7867463

Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
2 8 33 1 spare rebuilding /dev/sdc1

notes for Circuit Website

the images for staff team:

Used gimp to resize img to 300×400. (feathered edges and rounded corners nice, but showed up a white border against the blended ‘fade background’ of the content section background.) gimp crop settings saved as ‘website portrait’.

On site: set image size as 200 width (height scales proportional)

 

To remove ‘The Blog’ heading from the default blog post template headers:

in wp control panel:

Appearance –> Customise –> Renew –> edit the ‘Blog Title’ under ‘Blog options’

headers using showtime for Circuit website

To specify which showtime banner show to use: edit the template (main is: Trinity: ShadowMenu Tab + 2 columns: showtime banner ) and insert the tag in the header section:
{* Start Header, with logo image that links to the default start page. Logo image is changed in the stylesheet "Trinity Layout: Top menu + 2 columns + showtime banner" *}

{Showtime show='3'}
{* this holds the name of the site on the right side *}

{sitename}

{* a link back to home page and the header left image/logo, text is hidden using CSS *}

{cms_selflink dir="start" text="$sitename"}


{* End Header *}

To edit the padding around the banner edit the parameters in the associated ‘layout’ stylesheet:
div#header {
/* adjust according your image size */
height: 60px;
margin: 0px;
padding: 0.5em 0 0.2em 0;
/* you can set your own image here, will go behind h1 a image */
/* background: #f4f4f4 url([[root_url]]/uploads/ngrey/bg_banner.png) repeat-x left top; */
/* border just the bottom */
border-bottom: 1px solid #D9E2E6;
}

We’re so frustrated about the DDOS effect – and apparently some of you are VERY ANGRY. We’re really sorry; it’s out of our hands. — Raspberry_Pi (@Raspberry_Pi)

backup and updating of cmsms

go into control panel of webhost, use phpmyadmin and do simple db backup to an sql file.

Haven’t found a better way of musing ftp than nautilus in ubuntu. don’t think I have ssh access (sadly), so:

  1. download a backup of the /html/urlname folder of the webserver
  2. if doing a differential upgrade (for minor releases), download the package (the ‘base’ version = english only, fine), then copy the individually different files from local into the correspoding folders on webspace – tedious – is this the best way??)
  3. because I’d deleted the install folder (as advised?) I had to also get a replacement copy of that folder from the ‘full’ version and copy that up to.
  4. then access the update page: www.urlname/install/upgrade
  5. follow instructions, which will include need to creat/make writable config.php