How to replace drives on unraid

After falling in love with unraid I wanted to improve my test install with new larger hard drives. I had 100GB of docker related files that I wanted to keep spread across 3 old data drives + 1 parity drive. In the below process I consolidate the 100GB into a single drive, install the new drives and enable drive encryption.

Important: This process temporarily removes parity drive protection, only follow these steps if you’re able to recover from data destruction

Here’s the steps to replace a drive in unraid:

  1. Shut down the docker service (Settings > Docker) and VM Manager (Settings > VM) and disable auto start (Settings > Disk)
  2. ssh into unraid (or use the web terminal)
  3. Manually consolidate any data you wish to keep onto the single disk1 (e.g. cp -rv /mnt/disk2/* /mnt/disk1/). This drive will remain in the server
  4. Shut down the server and remove the old drives (parity disk, disk2 and disk3)
  5. Install the 3 new drives (parity, disk2 and disk3) and turn on the server
  6. Go to Tools > New Config and clear the current disk configuration
  7. Go to Settings > Disk and set the default filesystem to xfs encrypted
  8. Go to Main tab and assign the old drive back into disk1 position
  9. Assign the new parity, disk2 and disk3 drives into desired positions
  10. Click on disk2 / disk3 and confirm their filesystem type is set to xfs encrypted
  11. Start the array and enter a new encryption key
  12. Tick the box to confirm formatting of the two new encrypted data drives, disk2 and disk3
  13. Wait for format to complete
  14. ssh back in and confirm old data is still available on /mnt/disk1/
  15. Now start a fresh parity build which will build up protection on the 3 drives
  16. Restart docker/vm services under Settings again

 

If you get any “orphan image” errors in docker you can resolve by following these instructions.

Alternatively you can try the unbalance plugin which provides a nice UI for some of the above process.

Grab video meta data from an archive of video files on S3

I had thousands of video files on an S3 bucket, but no record of their file sizes or video meta details ( resolution, encoding, container, etc..)

This quick little bash script will use ffprobe to read the meta details from the S3 file without downloading the entire file locally.

#!/bin/bash
## Usage: ./get-video-sizes.sh
while IFS="" read -r p || [ -n "$p" ]
do
printf 'Getting details about video %s\n' "$p"
SIGNED=`aws s3 presign "$p"`
FILEID=`echo "$p" | perl -nle 'm/(\d+)\//; print $1'`
echo "Processing $p with ID $FILEID "
echo $SIGNED
FILEFORMAT=`ffprobe -v quiet -print_format json -show_format -show_streams "$SIGNED"`
echo $FILEFORMAT > output/$FILEID.json
done < video-list-on-s3.txt

I created a file called video-list-on-s3.txt that had a long list of full S3 urls like: s3://my-video-backups/123/source.mp4

After running ./get-video-sizes.sh I ended up with a lovely folder full of JSON files that I could use to improve a re-encoding process.

{
  "streams": [
    {
      "index": 0,
      "codec_name": "h264",
      "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
      "profile": "High",
      "codec_type": "video",
      "codec_time_base": "1001/48000",
      "codec_tag_string": "avc1",
      "codec_tag": "0x31637661",
      "width": 3840,
      "height": 2160,
      "coded_width": 3840,
      "coded_height": 2160,
      "has_b_frames": 1,
      "sample_aspect_ratio": "0:1",
      "display_aspect_ratio": "0:1",
      "pix_fmt": "yuv420p",
      "level": 51,
      "color_range": "tv",
      "color_space": "bt709",
      "color_transfer": "bt709",
      "color_primaries": "bt709",
      "chroma_location": "left",
      "refs": 4,
      "is_avc": "1",
      "nal_length_size": "4",
      "r_frame_rate": "24000/1001",
      "avg_frame_rate": "24000/1001",
      "time_base": "1/24000",
      "start_pts": 0,
      "start_time": "0.000000",
      "duration_ts": 478478,
      "duration": "19.936583",
      "bit_rate": "48635281",
      "bits_per_raw_sample": "8",
      "nb_frames": "478",
      "disposition": {
        "default": 1,
        "dub": 0,
        "original": 0,
        "comment": 0,
        "lyrics": 0,
        "karaoke": 0,
        "forced": 0,
        "hearing_impaired": 0,
        "visual_impaired": 0,
        "clean_effects": 0,
        "attached_pic": 0
      },
      "tags": {
        "creation_time": "2018-10-26 21:07:18",
        "language": "eng",
        "handler_name": "Alias Data Handler",
        "encoder": "AVC Coding"
      }
    },
    {
      "index": 1,
      "codec_name": "aac",
      "codec_long_name": "AAC (Advanced Audio Coding)",
      "profile": "LC",
      "codec_type": "audio",
      "codec_time_base": "1/48000",
      "codec_tag_string": "mp4a",
      "codec_tag": "0x6134706d",
      "sample_fmt": "fltp",
      "sample_rate": "48000",
      "channels": 2,
      "channel_layout": "stereo",
      "bits_per_sample": 0,
      "r_frame_rate": "0/0",
      "avg_frame_rate": "0/0",
      "time_base": "1/48000",
      "start_pts": 0,
      "start_time": "0.000000",
      "duration_ts": 956416,
      "duration": "19.925333",
      "bit_rate": "317375",
      "max_bit_rate": "317625",
      "nb_frames": "934",
      "disposition": {
        "default": 1,
        "dub": 0,
        "original": 0,
        "comment": 0,
        "lyrics": 0,
        "karaoke": 0,
        "forced": 0,
        "hearing_impaired": 0,
        "visual_impaired": 0,
        "clean_effects": 0,
        "attached_pic": 0
      },
      "tags": {
        "creation_time": "2018-10-26 21:07:18",
        "language": "eng",
        "handler_name": "Alias Data Handler"
      }
    }
  ],
  "format": {
    "filename": "https://s3.amazonaws.com/my-vide-backups/1/source.mp4?AWSAccessKeyId=SOMETHINGHERE&Expires=1563854515&x-amz-security-token=MEOW&Signature=%3D",
    "nb_streams": 2,
    "nb_programs": 0,
    "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
    "format_long_name": "QuickTime / MOV",
    "start_time": "0.000000",
    "duration": "19.936589",
    "size": "122054640",
    "bit_rate": "48977140",
    "probe_score": 100,
    "tags": {
      "major_brand": "mp42",
      "minor_version": "0",
      "compatible_brands": "mp42mp41",
      "creation_time": "2018-10-26 21:07:17"
    }
  }
}

Best Elementor themes – Feb 2019

Here are 30 of the best Elementor powered WordPress themes for February 2019

Restaurant Vincent Restaurant WordPress for Restaurant

Restaurant Vincent Restaurant WordPress for Restaurant

Latest Version . February , WordPress . Ready Restaurant WordPress Theme Vincent Restaurant WordPress Theme suits for those who want to create a website of restaurant, butchery, pizzeria or a food delivery service. We initially knew that shop functionality is not required by all website owners, so weve decided to provide you with the ability to

More info / Download Demo

Mayosis - Digital Marketplace WordPress Theme

Mayosis - Digital Marketplace WordPress Theme

What is Mayosis Digital Marketplace Theme If you want to sell your items such as templates, arts, tutorials, music, ebooks, stock photography, stock footage, themes, plugins, code snippets, Softwares or digital services then Mayosis is for you. Built on WordPress and free Easy Digital Downloads. Mayosis Digital Marketplace Theme allows you to create your own marketplace such as

More info / Download Demo

AllStore - Universal WooCommerce WordPress Shop Theme

AllStore - Universal WooCommerce WordPress Shop Theme

AllStore is a premium and super powerful ecommerce shop WordPress theme for WooCommerce. AllStore can be used for selling almost anything electronics, fashion store, sports, furniture, clothing shop, accessories, auto, jewelry, shopping digital, gadgets and other. AllStore will help you create a perfect online store without coding knowledge, as

More info / Download Demo

Landscaping - Garden Landscaper WordPress

Landscaping - Garden Landscaper WordPress

The Ultimate Niche WordPress Theme for the Landscaping and Gardening Industry This lovely niche theme is built and suitable for any business operating in the Landscaping and Gardening industry. Florist, Landscape Architects, Gardeners, Landscapers, Groundskeepers or other Landscaping and Gardening related businesses, this is the theme for you. It has purpose oriented design and it is suitable

More info / Download Demo

Architecturer Interior Design Architecture WordPress

Architecturer Interior Design Architecture WordPress

Architecturer Architecture Interior Design WordPress Theme Overview Architecturer WordPress Theme is a responsive WordPress theme created especially for professional architect, interior designer and landscape designer to showcase their works. Built with the latest WordPress technology. Architecturer support responsive layouts built especially for architect portfolio website so it loo

More info / Download Demo

Portfolio Photberry Portfolio WordPress for Portfolio

Portfolio Photberry Portfolio WordPress for Portfolio

Latest Version . February , WordPress . Ready Photberry Unique Portfolio WordPress Theme Photberry is the great portfolio WordPress theme that enables you to create a professional portfolio website and manage your blog. A wide variety of portfolio layouts such as Grid, Masonry, Packery or – columns, showcase your works in the best possible way. With an integr

More info / Download Demo

Digrand - Portfolio And Blog Theme

Digrand - Portfolio And Blog Theme

Current Version .. see update history at the bottom of this page WORDPRESS are COMPATIBLE Digrand is an advanced WordPress portfolio and blog theme. Its design is fresh, clean and aesthetiacally. Theme is very easy to use and it comes with quick demo content installer, addition with exclusive Blocks system for quick layout creation. Advantages Well, this the

More info / Download Demo

Dixie - Podcast and Audio WordPress Theme

Dixie - Podcast and Audio WordPress Theme

Dixie Podcasting WordPress Theme Dixie is a powerful Podcasting theme crafted by SecondLineThemes. We offer a complete solution for podcasters looking to have a modern, clean and robust Podcast website.Dixie is such a great tool for podcasters as it supports all podcasting plugins such as Blubrry PowerPress, Seriously Simple Podcasting Castos, Simple Podcast Press, PodLove, BuzzSprout and more

More info / Download Demo

Overflow - Contemporary Blog Magazine WordPress Theme

Overflow - Contemporary Blog Magazine WordPress Theme

Overflow. Contemporary WordPress Theme for Lifestyle Blogs Magazines Overflow is a clean and well-thought WordPress theme for lifestyle bloggers, magazines and social influencers. Beautifully Designed Demos in One Theme Thanks to our signature feature, the Demo Switcher, you may apply a new demo any time without effecting

More info / Download Demo

Portfolio Pixies Portfolio WordPress for Portfolio

Portfolio Pixies Portfolio WordPress for Portfolio

Latest Version . February , WordPress . Ready Pixies Best Portfolio WordPress Theme Pixies is the great portfolio WordPress theme that enables you to create a professional portfolio website and manage your blog. A wide variety of portfolio layouts such as Grid, Packery, Carousel and Ribbon, showcase your works in the best possible way. With an integrated Live P

More info / Download Demo

Caverta - Fine Dining Restaurant WordPress Theme

Caverta - Fine Dining Restaurant WordPress Theme

Caverta Restaurant WordPress theme Caverta is a restaurant WordPress theme that is suitable for all type of restaurant businesses fine dining, cafe, bar, bistro, pizza etc. If you are a restaurant manager or just started in food industry, Caverta theme will come in handy and will help you to easily create your online brand presence. The theme comes with beautiful typography, live custom

More info / Download Demo

EvenTalk - Event Conference WordPress Theme for Event and Conference

EvenTalk - Event Conference WordPress Theme for Event and Conference

EvenTalk Event Conference WordPress Theme EvenTalk is a clean and modern WordPress Theme for all kinds of Conference Event website. It is perfect for any kind Event Management Company or individual Event. It is easy to use. EvenTalk Theme comes with necessary features and pages for Event, Conference and Meetup website. EventTalk Features Based on Bootstrap

More info / Download Demo

Salmon Restaurant WordPress Theme

Salmon Restaurant WordPress Theme

Salmon is a modern WordPress theme suitable for any restaurant, pub, winery, pizzeria, cafe, bar and also for online shop and-and any other food-related business. The design is fully customizable and highly optimized for mobile, so will adapt itself to any mobile or tablet device. The theme is ready-to-use, no needed coding or design skills. The theme offers

More info / Download Demo

OneLander Creative Landing Page WordPress Theme

OneLander Creative Landing Page WordPress Theme

OneLander is the Responsive WordPress Theme for Creatives to showcase their latest works. OneLander offers plenty of excellent options that will satisfy even the most demanding users.Thanks to them, you are able to modify almost every single aspect of the theme without having knowledge about programming. Design Importer Cool Menu Effects SEO Ready GIF Video support Over options

More info / Download Demo

Construction Constructify Construction Building WordPress Theme

Construction Constructify Construction Building WordPress Theme

Constructify is built for Building Services, Architecture, Engineering, Cleaning Service and other Construction related services and it is suitable for any kind of small business activity Maid, Maintenance, Painting and Decorating, Refurbishment, Partitions Ceilings, Plastering Rendering, Carpentry Joinery, Built in Furniture, Flooring, Plumbing and othe

More info / Download Demo

Buildico - Building Construction WordPress Theme

Buildico - Building Construction WordPress Theme

Buildico Construction WordPress Theme give you an opportunity to present your construction and building services, without knowing any HTML or how to code. Save your expensive time and money. Everything you need to create your construction, engineering, architecture website is available straight from the box. Using customizable settings, you can get an exclusive result. Besides,

More info / Download Demo

Pur - Spa Massage WordPress

Pur - Spa Massage WordPress

The Ultimate Niche WordPress Theme for the Spa, Massage and Wellness Industry This lovely niche theme is built and suitable for any business operating in the Spa and Wellness Industry, including resorts, yoga centers, holistic wellness centers and other health-related sites such as salons, massage therapy centers and physiotherapy units. It has purpose oriented design and it is suitable for u

More info / Download Demo

Alis - Wedding Wedding Planner WordPress

Alis - Wedding Wedding Planner WordPress

The Ultimate Niche WordPress Theme for Weddings and Wedding Planner Businesses This lovely niche theme is built and suitable for Weddings and any Wedding Planner Business. It has purpose oriented design and it is suitable for users with zero programming skills as well as advanced developers. Wedding, Wedding Planner, Wedding Invitation, Wedding RSVP, Wedding Guest. Featur

More info / Download Demo

SKRN - Media Streaming App WordPress Theme

SKRN - Media Streaming App WordPress Theme

Show off your work with this easy-to-customize and full-featured WordPress Theme. When purchasing this theme, you will receive a detailed help file along with additional features like a eCommerce Membership Platform, Video Player and Drag Drop Page Builder. User Demo Login We have a demo account setup. Username demo and Password demo Key Features ARMember Membership Plugin Includ

More info / Download Demo

Qudos - Multi-Purpose Elementor WordPress Theme

Qudos - Multi-Purpose Elementor WordPress Theme

Qudos Multi-Purpose Elementor WordPress Theme Meet our absolutely fresh creative WordPress theme specifically crafted for agencies and individuals that make uncommon and original products and provide oddball services for businesses and physical entities. This theme is also quite suitable for digital agencies, freelancers, artists, photographers, and any other creative minds who like to exp

More info / Download Demo

Bifrost - Simple Portfolio WordPress Theme

Bifrost - Simple Portfolio WordPress Theme

Simple Portfolio WordPress Theme Bifrost is a very clean WordPress Theme which fits any needs, it finds use in different purposes like agencies, freelancers, photographer, e-commerce stores and many more. It is built with love and passion by our creat

More info / Download Demo

Arteon Multi-Purpose WordPress Theme

Arteon Multi-Purpose WordPress Theme

Multi-Purpose WordPress Theme Arteon is an ultimate, powerful WordPress theme which is basically created for multi purposes and finds use in different purposes like agencies, e-commerce stores, freelancers, bloggers, and many different categories. It is full

More info / Download Demo

Draven Multipurpose Creative Theme

Draven Multipurpose Creative Theme

Draven Multipurpose Creative Theme Draven is a creative drag drop theme created and designed with love for passionate web lovers. The key features of Draven are the front-end builders, so you have the Elementor as page builder and live Customizer as the theme options, both of them are flawless and work in an amazing way. Unique design and powerful options offers hundred of creative

More info / Download Demo

Uplands - Golf Course WordPress Theme

Uplands - Golf Course WordPress Theme

Golf Course, Clubhouse Golf Pro Booking Theme Features Built in Booking and Scheduling value Manage your schedule anywhere on any device Full WooCommerce support Custom Course Guide functionality Includes Conversion forms Built-in Google fonts with fonts support Includes icons Boxed or Wide layout option Lots of amazing widgets and content types Beautiful responsi

More info / Download Demo

Thorium - Portfolio for Freelancers and Agencies

Thorium - Portfolio for Freelancers and Agencies

Extended Features Customizer Options Elementor Ready WPML Ready One Click Demo Importer Fully Responsive Translation Ready Retina Ready Child Theme Included Google Fonts

More info / Download Demo

Redy Marathon Sports WordPress Theme

Redy Marathon Sports WordPress Theme

Beautiful Running, Marathon Sports WordPress Theme CURRENT VERSION .. see Change log at the bottom of this page Redy is a responsive colorful Sports WordPress Theme designed for all kinds of athletes, sportsman, trainers, coaches, runners, sportsmen and all healthy lifestyle people. It will also fit contemporary blog, magazine, marathon runner business, healthy lifestyle coach,

More info / Download Demo

Inhousekai Modern Design Interior WordPress Theme

Inhousekai Modern Design Interior WordPress Theme

Inhousekai Modern Interior WordPress Theme Inhousekai is Modern Interior WordPress Theme that suitable for Interior and Exterior design website or even architect portfolio. Inhousekai uses drag and drop page builder for built the page elements, make you easier to arrange your layout. This theme also served with extensive theme options. With header builder and footer options, we create ever

More info / Download Demo

Rhodos - A Colossal Multipurpose WordPress Theme for Business Portfolio

Rhodos - A Colossal Multipurpose WordPress Theme for Business Portfolio

WordPress Business Theme for Company Portfolio CURRENT VERSION . see Change log at the bottom of this page Rhodos is an elegant fresh clean Multi-Purpose Business WordPress Theme. It is splendid for any business corporate website. Its perfect for law firm, financial company, tax consulting, accounting services, strategy planning. Also, it is great for web an

More info / Download Demo

Lettuce Organic Food Eco Products WordPress Theme

Lettuce Organic Food Eco Products WordPress Theme

Organic Food Eco Products Store WordPress Theme CURRENT VERSION .. see Change log at the bottom of this page Lettuce is a colorful, modern responsive Organic Food WordPress Theme. It is perfectly suitable for natural food related websites, such as contemporary agricultural business company, healthy food blog, gastro tourism agency or healthy food shop. Also it is gr

More info / Download Demo

Honor Shooting Club Weapon Store WordPress Theme

Honor Shooting Club Weapon Store WordPress Theme

Shooting Club Gun, Weapon Store WordPress Theme CURRENT VERSION . see Change log at the bottom of this page Honor powerful modern Shooting Club Weapon Store Theme. It will perfectly fit an online weapon shop, gun store, shooting school, gun classes, shooting range or firearm training website. Gun Weapon Store WordPress Theme plugins Honor is also focus

More info / Download Demo

100 free Modal Popup designs for WordPress

Exciting news!! The Envato Elements WordPress plugin now includes 100 completely free modal popup templates. 

A preview of all the popups is available below.

To get access to these popup designs (along with many more free Elementor page templates) please install the Envato Elements plugin from WordPress.org 

While you’re waiting be sure to check out the full offering from Envato Elements ( stock photos, videos, themes, plugins and more)

Get the WordPress Custom CSS using PHP

WordPress Custom CSS (from the Customizer panel) is stored in a Custom Post Type in the wp_posts database table. A reference to the Post ID is stored in the current themes “theme_mod” option value.

There’s a nice helper function called wp_get_custom_css_post to do this lookup and return the Post object:

$custom_css_post = wp_get_custom_css_post();
$custom_css = $custom_css_post ? custom_css_post->post_content : '';
echo $custom_css;

 

Ocean WP Theme & Elementor

For the first time I have used a free WordPress theme with Elementor that wasn’t our own.  The theme is OceanWP, it is light weight and easy to customise, it’s the favourite choice of thousands of developers and hobby-users.  

I was just looking for a clean and simple layout to use for a family members website, I was able to create her whole website in under a day.  After a quick lesson in WordPress and Elementor (both she had never seen before), she is now creating her own blog posts from home, inserting photos & galleries. So cool! So quick!

The website we made:

My Family Quit Sugar is a blog website documenting a young family’s sugar-free lifestyle change.

“One year ago, inspired by Sarah Wilson’s books; I made the decision to quit sugar and I haven’t looked back. Within this website I hope to share with you tips of how to quit sugar with a family, recipes, stories and sugar free resources.”

Plugins Used:

In summary, I was pleasantly surprised about the free version of Ocean WP, It works well with Elementor and the client is using the website independently. I did run into a bug in the “Ocean Extra” plugin that stopped the menu working in mobile version, so I uninstalled it.  If you need a simple layout and quick setup give OceanWP a go for your next website.