LXD & QNAP Goodies to Know

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] so [Music] welcome back to the scottabyte channel and this is scott so today we're going to have a follow-on and we're going to talk a little bit about lexd and qnap goodies to know so be sure to watch my qnap lexi lexi conversion tutorial if you have not already and so i've seen a question come up lately that says can a qnap nas really be a viable application server the tendency is to look at most nas devices and consider that they're basically mass storage devices however when it comes down to it a qnap nas can really be an effective application server if you have one of their models that has more cores and more available threads and a reasonable amount of memory as an example i have a ts-877 and a ts-1277 both the 1277 has 64 gigs of ram on it and the 877 has 32 gigs of ram on it my production machine is the 1277 and i am currently running a total of about 35 containers 24 of which are lex d containers now and 11 of which are currently docker containers and i think i have one or two vms out there so with that configuration in mind i'm using about 15 to 20 percent of that processor which happens to be a ryzen 7 1700 pro and i'm using about 33 of the available memory so that's really tells you that yes it can be a viable application server and although there's other dedicated solutions like proxmox which are very good solutions if you're looking at purchasing a new qnap nas you might also want to consider putting more cpu on it getting a machine with a larger processor simply to do self-hosting more effectively so with that in mind self-hosting is all about xaas if you haven't heard that term before basically you can put an x before the aas and it's basically whatever as a service examples that i've had on this channel in the past are desktop as a service you can also talk about printing as a service and there are many others but it's basically self-hosting and most aas services are found in the cloud and they're public cloud services that you pay recurring costs for this is the attraction for companies that sell software as a service because software as a service is a regular billable and not to slight them but if you're a self-hoster and you can produce your own services on your own hardware of course you won't have these recurring services and then we're going to go out and we're going to discuss some other container commands and that's what i wanted to do in the bulk of this video which i plan on being relatively short but we'll see how that turns out so here we are on my lab qnap nas you can see that it's memory utilization 66 and that's because i'm running uh three virtual machines and virtualization station doing various things but over here in container station i'm running six apps and four of them are lexie's one of them is a docker and one of them is alexi called my server for the purposes of this presentation so i'm going to go ahead and stop this lexi server like we learned last time in order to be able to convert it we have to have it stop first and secondly it's a best practice to go ahead and export that server if i click on export and i say export container and select this you can see there's only two choices and the two choices are my docker container and my one lex c container because the export command only works on lexi and docker it does not yet work on lexd qnap is working on being able to provide an export task here we're going to show you though that you can backup your servers in this presentation and we're also going to show you some other things here we are at the ssh command prompt for the qnap nas i'm going to cd into share slash container because that's where i have my qnap conversion tool let's see list lists out four containers because there's four lex d containers out here docker ps lists out one docker container if we go back to the qnap nash you can see that there are total of six containers here and the reason is is that the lexi container is not listed in those containers so we're going to perform a migration and that is all it takes to do the migration i put the delete tag at the end so it actually deleted the lexi container when it was done you may want to do a backup of it first before you have that happen if we perform a clear and alexi list we will see that we now have five containers and my server is one of those containers it's stopped right now which is fine and it always appends a dash m to the end of the container indicating that it's been a migrated container so you can always say let's see move my server dash m to my server you can give it any other name you want so this is an effective way to rename containers that are stopped and now if i perform alexi list you'll see that the container is called my server and if i say let's see start my server it will be started now back at the container station interface you can see that all five of the servers here are now listed as lex d containers including our new server my server and it started right now so back at the command prompt if we say let's see list you'll see that my server now has an ip address okay so we're now going to do alexis stop on my server and then alexi export my server to a backup file so this is a way to get a backup backup dash my servers what i decided to call the backup it's a tar file and it's going to be gzipped and now the export has completed successfully so we're going to clear the screen we'll do an ls-al you can see that the backup here has completed there's the size if we do alexey list we can see that my server stopped now let's delete my server let's see delete my server and let's see list my server let's see lexi list and there is no more my server in order to import and restore the container we perform alexi import slash share slash container slash backup dash myserver.tar.gz it imports the instance and it's completed let's see list and there's my server let's start my server let's see start my server let's connect to it lexi exec my server bosch there's a root command prompt for my server let's do an ls there's no files let's do a touch scott.txt let's do an ls and there's scott.text okay let's exit back out let's do a let's see stop my server let's create a snapshot of my server with the command lexi snapshot my server snapshot1 and we clear the screen let's see list and you can see that my server has one snapshot let's start my server with the lexi start my server and alexi exec my server bosh we do an ls we see scott.text let's create another file touch scott 2 dot text and then exit and let's see stop my server okay let's do a lexi snapshot my server snapshot to lexi info my server and you can see it list snapshot 1 and snapshot 2. notice i made snapshot 1 with the lowercase s and snapshot 2 with an uppercase s which is significant let's see start my server lexi exec my server bosch ls let's do a remove of star rm star ls both files are gone lexi stop my server let's see list okay now let's see restore my server snapshot one let's see start my server lexi exec my server bosh ls and there's the scott.txt file likewise exit let's see stop my server lexi restore my server snapshot 2 this time with the uppercase s oh lexi exec my server bosh get this right and ls and now we have both files so exit let's see info my server and there's the two snapshots if we go back to the gui for a container station and we click on my server you'll notice that there's no indication that there is any snapshots because container station does not manage snapshots as of yet if we click on the duplicate command it gives you an option to create another server and it appends the name dash dupe on the end or you can rename it if you go ahead and click the create option and continue with this server duplication you will notice that it comes up with an error returning to the command prompt you can also delete snapshots with the lex c delete my server the name of my server slash snapshot one and if you do alex c info my server you can see that snapshot one is now deleted and we have snapshot 2. likewise if we say lexi delete snapshot 2 with a capital s this time that snapshot is deleted as well and if we go back and do alexi info you can see that there are no snapshots so returning to the container station gui you see that there's ways to stop and start the server there is a way to duplicate which i presume is supposed to be a backup of some kind it does not work right now there are no clear backup options and if we choose export and export container the only container listed here will be my docker container lex d containers are not listed in the export task and this is something else that qnap needs to fix so there are lexi exports but since we have no lexi containers they're not being listed in the export task options so in summary we reviewed using the qnap container station conversion tool which i covered in my qnap lexi to lex d migration video we learned how to rename lexd containers we learned how to backup lexd containers and we learned how to make lexi snapshots and manage them anyway thanks for listening today and please subscribe and like to the channel and we'll see you next time [Music] so [Music] [Music] [Applause] [Music] you
Info
Channel: Scotti-BYTE Enterprise Consulting Services
Views: 49
Rating: undefined out of 5
Keywords:
Id: nT6S89V7vfE
Channel Id: undefined
Length: 18min 48sec (1128 seconds)
Published: Fri Dec 10 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.