10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
I am running ubuntu 14.04.
Have just installed torrent into home directory but /dev/md2 is almost full.
Is it possible to resize md2 to get rid of any problem that may arise in the near future?
Filesystem Size Used Avail Use% Mounted on
udev 17G 4.1k 17G 1% /dev... (2 Replies)
Discussion started by: baris35
2 Replies
2. Red Hat
Hello.,
Could any one please share the informaiton about this or please point me the reference :
Assume, we have the following partition after linux machine is setup, it will mention like this :
bash$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 10G... (3 Replies)
Discussion started by: alnhk
3 Replies
3. Red Hat
Hello All,
I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows,
/boot - Linux Partition & another is
LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc).
Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies
4. SCO
I have SCO Openserver 5.0.5
Root partition is 96% full and I would like to make it bigger. How can this be done?
1) Can I use 'dd' to backup 'root' and then backup '/u' to a third hard disk, then divvy the primary hard disk to have a larger 'root' filesystem (i.e. previous root + u)
2) ... (5 Replies)
Discussion started by: grips03
5 Replies
5. Red Hat
Hi,
In my linux box I have installed /boot partition with 100MB. I have done compile for a newer kernel. The both kernels are required to me. Finally /boot partition has using 100%. I need to resize the /boot. Any body give the solution how to do resize the /boot partition without dusturbing the... (2 Replies)
Discussion started by: parsrigum
2 Replies
6. Red Hat
Hi Team,
Require your expertise on how to resize / partition.
This is VM.
Thank you.
Reggy
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 15G 13G 556M 96% /
/dev/sda1 965M 43M 873M 5% /boot
tmpfs 502M 0 ... (5 Replies)
Discussion started by: regmaster
5 Replies
7. Shell Programming and Scripting
Hello all
How is it going
I want Shell Patch
The work of the following division of the disk
Can this
200 MB EXT3 /boot
20 Gb EXT3 /
10 GB Swap
End Of Space ( Linux LVM )
Found a similar script can be customized by you to be the work required
#!/bin/bash
VSIZE=200
fdisk /dev/hda... (1 Reply)
Discussion started by: x-zer0
1 Replies
8. SCO
I have a 17GB SCSI disk in an SCO 5.0.6 server and it's running out of space because of a growing database on the disk. Consequently I would like to upgrade the 17GB to a 74GB disk and extend the partition.
First off, is partition extension available under HTFS - I know this is an old... (1 Reply)
Discussion started by: carribey
1 Replies
9. UNIX for Dummies Questions & Answers
I've created a partition with GNU Parted, how do I mount the partition?
The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards.
Thanks,
--Todd (1 Reply)
Discussion started by: jtp51
1 Replies
10. UNIX for Advanced & Expert Users
Experts,
I am trying to repartition my FreeBSD partition to accomodate 1GB of DOS partition so that I can have the samba share support. I wanted to know the procedure to resize an exsiting FreeBSD partition.
Thanks in advance for your help.
Regards,
Jim (1 Reply)
Discussion started by: jimmynath
1 Replies
Dancer::ModuleLoader(3pm) User Contributed Perl Documentation Dancer::ModuleLoader(3pm)
NAME
Dancer::ModuleLoader - dynamic module loading helpers for Dancer core components
SYNOPSIS
Taken directly from Dancer::Template::TemplateToolkit (which is core):
die "Template is needed by Dancer::Template::TemplateToolkit"
unless Dancer::ModuleLoader->load('Template');
# we now have Template loaded
DESCRIPTION
Sometimes in Dancer core we need to use modules, but we don't want to declare them all in advance in compile-time. These could be because
the specific modules provide extra features which depend on code that isn't (and shouldn't) be in core, or perhaps because we only want
these components loaded in lazy style, saving loading time a bit. For example, why load Template (which isn't required by Dancer) when you
don't use Dancer::Template::TemplateToolkit?
To do such things takes a bit of code for localizing $@ and "eval"ing. That code has been refactored into this module to help Dancer core
developers.
Please only use this for Dancer core modules. If you're writing an external Dancer module (Dancer::Template::Tiny, Dancer::Session::Cookie,
etc.), please simply ""use ModuleYouNeed"" in your code and don't use this module.
METHODS
/SUBROUTINES
load
Runs a ""use ModuleYouNeed"".
use Dancer::ModuleLoader;
...
Dancer::ModuleLoader->load('Something')
or die "Couldn't load Something
";
# load version 5.0 or more
Dancer::ModuleLoader->load('Something', '5.0')
or die "Couldn't load Something
";
# load version 5.0 or more
my ($res, $error) = Dancer::ModuleLoader->load('Something', '5.0');
$res or die "Couldn't load Something : '$error'
";
Takes in arguments the module name, and optionally the minimum version number required.
In scalar context, returns 1 if successful, 0 if not. In list context, returns 1 if successful, "(0, "error message")" if not.
If you need to give argumentto the loading module, please use the method "load_with_params"
require
Runs a ""require ModuleYouNeed"".
use Dancer::ModuleLoader;
...
Dancer::ModuleLoader->require('Something')
or die "Couldn't require Something
";
my ($res, $error) = Dancer::ModuleLoader->require('Something');
$res or die "Couldn't require Something : '$error'
";
If you are unsure what you need ("require" or "load"), learn the differences between "require" and "use".
Takes in arguments the module name.
In scalar context, returns 1 if successful, 0 if not. In list context, returns 1 if successful, "(0, "error message")" if not.
load_with_params
Runs a ""use ModuleYouNeed qw(param1 param2 ...)"".
use Dancer::ModuleLoader;
...
Dancer::ModuleLoader->load('Something', qw(param1 param2) )
or die "Couldn't load Something
";
my ($res, $error) = Dancer::ModuleLoader->load('Something', @params);
$res or die "Couldn't load Something : '$error'
";
Takes in arguments the module name, and optionally parameters to pass to the import internal method.
In scalar context, returns 1 if successful, 0 if not. In list context, returns 1 if successful, "(0, "error message")" if not.
use_lib
Runs a ""use lib qw(path1 path2)"" at run time instead of compile time.
use Dancer::ModuleLoader;
...
Dancer::ModuleLoader->use_lib('path1', @other_paths)
or die "Couldn't perform use lib
";
my ($res, $error) = Dancer::ModuleLoader->use_lib('path1', @other_paths);
$res or die "Couldn't perform use lib : '$error'
";
Takes in arguments a list of path to be prepended to @INC, in a similar way than "use lib". However, this is performed at run time, so the
list of paths can be generated and dynamic.
In scalar context, returns 1 if successful, 0 if not. In list context, returns 1 if successful, "(0, "error message")" if not.
class_from_setting
Given a setting in Dancer::Config, composes the class it should be.
This is the function that translates:
# in config.yaml
template: "template_toolkit"
To the class:
Dancer::Template::TemplateToolkit
Example:
use Dancer::ModuleLoader;
my $class = Dancer::ModuleLoader->class_from_setting(
'Dancer::Template' => 'template_toolkit',
);
# $class == 'Dancer::Template::TemplateToolkit
$class = Dancer::ModuleLoader->class_from_setting(
'Dancer::Template' => 'tiny',
);
# class == 'Dancer::Template::Tiny
AUTHOR
Alexis Sukrieh
LICENSE AND COPYRIGHT
Copyright 2009-2010 Alexis Sukrieh.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as
published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
perl v5.14.2 2011-11-26 Dancer::ModuleLoader(3pm)