#foswiki 2015-04-09,Thu

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
RiskReward_So it looks like the virtual machine had run out of space. I've increased the size to 100Gb, but can't figure out how to resize the disks in Ubuntu. Restarting didn't help. Running df -h shows that /dev/mapper/foswiki-root is still 3.5G and is at 100% usage. Help! [00:20]
gac410HI RiskReward_ I'll have to do some digging. You might want to figure out what's taking all the space.
Check your log directories. /var/log/apache etc.
...pathtofoswiki/working/logs
Is this the foswiki vm that we have on our download site?
[00:21]
RiskReward_Yes, it's the one from the site. [00:26]
gac410I'm just booting now ... to see what's installed in way of system utils [00:26]
RiskReward_Awesome, thanks. [00:27]
gac410So you resized the container using vmware? [00:32]
RiskReward_Yes. It was 4Gb. I've changed it to 100GB. [00:32]
gac410There is a tool - "parted" which can resize partitions. Do you have a backup just in case? [00:32]
RiskReward_Yes, I'm backed up. [00:33]
gac410if you run parted, as root, and then enter the "print" command, it will show you the current disk configuration [00:34]
RiskReward_OK. I'm just going to double check the backup has been running (better to be sure, right?) [00:35]
gac410Or if you have a copy of the 4GB container.
hang on... parted doesn't work on lvm type partitions. I gotta google a bit.
[00:35]
RiskReward_Thanks. I'm checking the backup. [00:37]
gac410Issue command "lvs" that will display the logical volume information
Take a look at http://www.linuxuser.co.uk/features/resize-your-disks-on-the-fly-with-lvm
With LVM you don't make the partition bigger, what you do is allocate a *new* disk, and then add it to the volume group and linux uses it.
[00:39]
RiskReward_Thanks, still checking backup. Will be one more second. [00:43]
gac410(I've not used lvm's before, so I'm just reading that web link on how to resize)
Another handy command .. from root . cd / and then du --si --max-depth 1 That will show you which directories have how much data
I just checked my local copy of that vm. (It's been updated to ubuntu 14.04 LTS) The big directories are /lib 458M /var 358M and /usr 763M 1.7 gig total in use.
[00:44]
RiskReward_OK, backup looks good. I've just started the commands above. [00:48]
gac410"lvs" should be real fast, tells you if you are using logical volumes are not.
read over that linuxuser.co.uk article. It seems pretty comprehensive.
[00:49]
RiskReward_lvs gives me two volumes: root and swap_1
root is 3.50g, swap_1 is 220m
[00:49]
gac410okay. so yes, it's an lvm installation. So you don't make root bigger, that 100G file isn't any use. You want to allocate a new drive under vmware? probably will become /dev/sdb and then get it added into the group.
In that article, you do steps 2 & 3, and then skip to step 7 & 8,
[00:51]
RiskReward_OK, I'm reading along with the article now.
There's another similar (but different) article here that seems to take advantage of a resized virtual machine: http://www.joomlaworks.net/blog/item/168-resizing-the-disk-space-on-ubuntu-server-vms
[00:53]
gac410Yeah... looks to be similar steps.
Okay. Yeah it adds a partition to the existing disk, instead of allocating a new disk. That would work fine too I expect.
If you've already expanded the disk, might as well use that method
I'd still suggest figuring out some stuff to delete so you have some breathing room :)
[00:55]
RiskReward_Oh yeah, good idea. I'll look back at your first comments to see what you suggested. I think it was deleting log files, wasn't it? [01:01]
gac410/var/log/apache2
may have some big stuff
/var/log as well
and ...foswiki/working/logs
I don't recall if the vm has things like logrotate set up. It was mostly intended for testing, so ongoing stuff like log maintenance, etc. isn't set up I don't think.
[01:01]
RiskReward_It's been storing logs with .1, .2 etc extensions, and gzipping. [01:03]
gac410okay, so sounds like logrotate is set up [01:04]
RiskReward_OK, I've got a tiny bit of breathing room back.
Any idea why I might have sda, sda1, sda2, then jump to sda5?
[01:07]
gac410disk has two types of partitions. Physical, 1 - 4, and logical extended. sda is the drive. sda1 and sda2 are physical, and sda5 is the first extended part [01:11]
RiskReward_so now that I'm creating a new partition should i call that sda6? [01:12]
gac410yes [01:13]
RiskReward_When I try to create the partition I get the error: "no free sectors available". [01:13]
gac410okay. So it doesn't see the space in vmware.
I don't know... I don't use vmware, so I don't know what magic happens that lets linux see extra sectors when you expand the disk using vsphere
after you used vsphere to increase the size of the disk to 100G, did you reboot the linux partition
[01:14]
RiskReward_Yes, turned it off and on again. [01:22]
gac410I don't recall if your vm has "webmin" installed. It's on the new 14.04 vm I've been working on. If webmin is running, https://<yoursite>:10000 it has lvm managment tools available too. [01:23]
RiskReward_No, unable to connect on that port. [01:25]
gac410okay. I probably added it when I rebuilt the vm. I hadn't worked on it in a long time. Waiting to release it with 1.2.0 [01:26]
RiskReward_Am trying cfdisk /dev/sda.
cfdisk shows a Pri/Log partition with free space of 100G. That must be it.
[01:26]
gac410sounds good [01:29]
RiskReward_I have the option to create a new partition from the free space. Think I should do that? [01:29]
gac410yeah. You create a new partition, and then add it to the volume group using the instructions in the web page you pointed me to. [01:30]
RiskReward_OK, here goes. Thankfully nobody asking me why the wiki isn't working at them moment :) [01:30]
..... (idle for 21mn)
Things seem to be going OK, I'm waiting while it resizes the file system to the new allocated space.
What are your thoughts on me upgrading to Ubuntu 14.04LTS by running: sudo do-release-upgrade -d?
[01:51]
gac410hm. It's a big upgrade. I don't recall what I ran into with it. I think it upgrades to apache 2.4 which had some compat issues with the existing configs. [01:55]
RiskReward_Well, success on the resize! Truth is I've probably made it too big at 100Gb, and created a backup headache (VM now big). Sigh. One thing at a time.
Thanks for your help.
[01:58]
gac410yw
yeah 100G is pretty big :)
[01:59]
RiskReward_I just put a 1TB drive in my laptop, so my sense of scale is out of whack. [02:00]
gac410yeah. I'm finally pondering a new laptop. figure a 256G SSD + 500G 7200 RPM HDD Current one is 6 years old [02:01]
RiskReward_Sounds good. Always painful letting go of an old laptop. [02:03]
gac410Other commands ... apt-get autoremove apt-get clean apt-get autoclean can remove unused packages, and old downloaded .deb files. [02:05]
LynnwoodRiskReward_: I’ve done a couple of Ubuntu release-upgrades recently and it went smoothly.
the only real bump was changes in apache config
[02:05]
gac410yeah. the apache 2.4 changes were annoying. [02:06]
RiskReward_Thanks all. BTW, unlike before, the new SSD's can take a lot of writes. In some lab tests they're up to 1.2PB (http://techreport.com/review/27436/the-ssd-endurance-experiment-two-freaking-petabytes) [02:06]
LynnwoodBut otherwise, i don’t think i ran into any issues at all.
i upgraded all our household computers to ssds last year. Best upgrade ever...
must satisfying
i had one fail but company replaced it and covered shipping
so now i maintain a constant clone for fall back
not big deal as the ssd isn’t all that big
[02:06]
RiskReward_Yeah, backup even more important now. But the pickup in speed is worth it. [02:09]
Lynnwoodabsolutely. like night and day
and they’re relatively cheap… in the 250G range.
anyway… heading to bed. g’nite gents.
[02:10]
gac410RiskReward_: re 100G disk, aren't the vdisk files sparse, so they only allocate what's needed?
g'night Lynnwood
[02:10]
RiskReward_gac410: Turns out you're right. Checking it's properties: current file size is 28GB, max disk size is 100GB. [02:12]
gac410You can actually shrink them I do it to the vm before I upload it.
Some of the stuff I do to prep a new vm is here: http://foswiki.org/Development/VirtualMachineImages But assumes you are using qemu on linux as the host system.
[02:14]
RiskReward_Thanks, I'll take a look. I can see an option to "compact", so I might give that a go. [02:17]
gac410not for the feint of heart. [02:17]
RiskReward_True. Maybe I should leave it alone. [02:18]
gac410given you are using it for production, not something to experiment with. If I break the vm, I can just download it again :) [02:19]
RiskReward_Yes. I think I'll try the upgrade though. Don't like the idea of starting with an old release, even if it is LTS.
Is there a copy of the updated apache config files anywhere?
[02:20]
gac410hm. I think I just used the Foswiki:Support.ApacheConfigGenerator24 [02:25]
FoswikiBothttp://foswiki.org/Support.ApacheConfigGenerator24 [ ApacheConfigGenerator24 ] [02:25]
gac410the /etc/apache2/sites-enabled/000-foswiki.conf has the settings at the top that were used in ApacheConfigGenerator
If you want I'
I'll try to upload the 2.4 config from the new vm and attach it to that Development/VirtualMachineImages topic
[02:28]
RiskReward_That's great, thanks. Have decided to do it another day. I need to regroup a little. One server-down issue a day is probably enough for now. [02:30]
gac410:)
Uploaded Foswiki:Development.VirtualMachineImages ... But now that I look at it, I'm not sure if it's actually changed. I probably installed mod_access_compat on the vm
[02:31]
FoswikiBothttp://foswiki.org/Development.VirtualMachineImages [ VirtualMachineImages ] [02:34]
.......................................... (idle for 3h28mn)
***ChanServ sets mode: +o CDot
ChanServ sets mode: +o MichaelDaum
[06:02]
..... (idle for 21mn)
GithubBot[JQSelect2Contrib] MichaelDaum pushed 1 new commit to Item12116: http://git.io/veSNV
JQSelect2Contrib/Item12116 0fd55bc MichaelDaum: Item12116: fixed css
[06:24]
***GithubBot has left [06:24]
FoswikiBothttp://foswiki.org/Tasks/Item12116 [ Item12116: JQSelect2Contrib -- integrate Select2 into Foswiki ] [06:24]
GithubBot[JQSelect2Contrib] MichaelDaum pushed 1 new commit to Item12116: http://git.io/veSp8
JQSelect2Contrib/Item12116 fc58466 MichaelDaum: Item12116: preparing release
[06:37]
***GithubBot has left [06:37]
GithubBot[JQSelect2Contrib] MichaelDaum pushed 1 new commit to master: http://git.io/veSh6
JQSelect2Contrib/master 96394b7 MichaelDaum: Merge branch 'Item12116'
[06:43]
***GithubBot has left [06:43]
GithubBot[JQSelect2Contrib] MichaelDaum pushed 1 new commit to master: http://git.io/ve9eR
JQSelect2Contrib/master b4b7227 MichaelDaum: Item12116: preparing release
[06:51]
***GithubBot has left [06:51]
............... (idle for 1h13mn)
ChanServ sets mode: +o Lynnwood [08:04]
...................................... (idle for 3h7mn)
GithubBot[distro] cdot pushed 2 new commits to master: http://git.io/veHnx
distro/master dfd8e51 Comment: Item13357: getSet code was written assuming that parameter values would be passed as strings. In the case where the code is called from installer scripts, these set values are drawn from an evaled config.spec and are therefore true perl values.
distro/master b064433 Comment: Item13357: two problems resolve. First, the extraction of set parameters didn't allow for the possibility that a structure might be passed in place of a string. Second, the application of defaults was wrong in the package code, so strings were ending up double quoted and structures were simply lost
[11:11]
***GithubBot has left [11:11]
FoswikiBothttp://foswiki.org/Tasks/Item13357 [ Item13357: Configure issues installing older extensions ] [11:11]
........ (idle for 37mn)
GithubBot[MoreFormfieldsPlugin] MichaelDaum pushed 1 new commit to master: http://git.io/veHzD
MoreFormfieldsPlugin/master dccf3f2 MichaelDaum: Item13362: docu, fixes and update of clockpicker
[11:48]
***GithubBot has left [11:48]
FoswikiBothttp://foswiki.org/Tasks/Item13362 [ Item13362: MoreFormfieldsPlugin has a requirement for JQSelect2Contrib which has not been published yet. ] [11:48]
................. (idle for 1h24mn)
MichaelDaumCDot, is there a way to convert the local plugin page to the new format? I see that happens during build. However the version in git is not touched. How do I do that?
or is it a foswiki.org thingy only ... given that people will install these plugins on old systems as well
[13:12]
CDotMichaelDaum: http://pastebin.com/QCUbKRtN
no, it's a general thing. Installation in old systems should be ok.
[13:18]
MichaelDaumwheres that code in pastebin from or for?
so the short answer to my first question - as far as I derive that from the code - is: no, there is no way to convert the local plugin page as well to be checked in to github.
[13:21]
CDotfrom my filesyste,
that's the script I use to convert plugin pages prior to checking them in
arguably it could be improved by replacing the info table entries with %FORMFIELD calls
[13:33]
................................................... (idle for 4h13mn)
***ChanServ sets mode: +o Lynnwood [17:48]
ChanServ sets mode: +o Lynnwood [18:01]
Guest0 has left "Textual IRC Client: www.textualapp.com"
Guest0 has left "Textual IRC Client: www.textualapp.com"
Guest0 has left "Textual IRC Client: www.textualapp.com"
ChanServ sets mode: +o Lynnwood
ChanServ sets mode: +o Lynnwood_
[18:07]
.............. (idle for 1h9mn)
ChanServ sets mode: +o MichaelDaum [19:21]
......... (idle for 44mn)
ChanServ sets mode: +o Lynnwood [20:05]
.......... (idle for 48mn)
foswiki_irc5I've tried to search through access control documentation to find the answer to this... but I thought I'd see if you guys can help. All of a sudden, a user in our Wiki is unable to edit articles within a specific web.
When they enter the article, the only get three icons at the top (instead of the multiple icons i get as admin) and when they click the pencil to edit they get a white screen
no editable text or options
I have checked both the page, web and user - none have restricted permissions.
Any help with a white screen when trying to edit an article?
[20:53]
...... (idle for 26mn)
I have added a support question because I'm not able to find the answer to my issue. http://foswiki.org/Support/Question1578 [21:22]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)