Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > ISPConfig 3 Priority Support

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th June 2013, 22:22
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 162
Thanks: 0
Thanked 7 Times in 7 Posts
Default ISPCONFIG 3 & Centos 6.4 - ALMOST right but...

I screwed up - I had installed centos 6.4 with a big home directory (and a small var one) and I forgot to wipe and resize it so I have everything WORKING now - but my /var is almost full

how can I have ISPCONFIG 3 to use /home instead of /var? safely without having to redo hours and hours and hours of work???
or maybe symlink it so that everything works without messing up the work?

*** BETTER PLAN - is there a safe and easy to resize the /home partition smaller (its 1.8TB) and the / partition bigger?
these are setup as being managed by lvm and are ext 4 from the centos 6.4 install I just did.
currently:
[root@ns9 /]# df -v
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_ns9-lv_root
51606140 44038720 4945980 90% /
tmpfs 16471600 236 16471364 1% /dev/shm
/dev/sda1 495844 62110 408134 14% /boot
/dev/sr0 1418348 1418348 0 100% /media/CentOS_6.4_Final
/dev/mapper/vg_ns9-lv_home
1852386680 191026800 1567264112 11% /home

help would be appreciated - can I shrink vg_ns9-lv_home and increase the root partition?

I DONT want to lose everything and symlinks are a kludge at best - I know I should have made home small and / large, but can I salvage the situation?




thanks

ps love howtoforge I have been a subscriber before


UPDATED - problem solved.

use resize2fs and lvexpand as per the following:

# Unmount the filesystem and check its' LV
umount /home
e2fsck -f /dev/mapper/vg_ns9-lv_home

# Shrink ext4 and then the LV to the desired size
resize2fs -p /dev/mapper/vg_ns9-lv_home 500G (reduce to 500gb)
lvreduce -L 500G /dev/mapper/vg_ns9-lv_home

# Before continuing, run e2fsck. If it bails because the partition
# is too small, don't panic! The LV can still be extended with
# lvextend until e2fsck succeeds, e.g.:
# lvextend -L +1G /dev/mapper/vg0-foo
e2fsck -f /dev/mapper/vg_ns9-lv_home <- checked ok

# Resize the filesystem to match the LVs size, check and mount it
resize2fs -p /dev/mapper/vg_ns9-lv_home
e2fsck -f /dev/mappervg_ns9-lv_home
mount /home

That was the tricky part. The rest is pretty straight forward:

unmount the filesystem,
extend the logical volume and
expand the filesystem afterwards.

umount /
<--- dont need to unmount root 6.4 can do it on the fly

# Extend the LV to use all free space
lvextend -l +100%FREE /dev/mapper/vg_ns9-lv_root
e2fsck -f /dev/mapper/vg0-bar <- cant do mounted

# Resize the partition to fill the LV
resize2fs -p /dev/mapper/vg_ns9-lv_root
e2fsck -f /dev/mapper/vg0-bar <- cant do mounted

sync;reboot! all is joyous and /var now has TONS of room (1.3TB)

Last edited by craig baker; 25th June 2013 at 04:20.
Reply With Quote
The Following User Says Thank You to craig baker For This Useful Post:
till (25th June 2013)
Sponsored Links
  #2  
Old 25th June 2013, 22:04
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 162
Thanks: 0
Thanked 7 Times in 7 Posts
Default moving right along - phpmyadmin??

I'm wondering how phpmyadmin access works - when I access one of the known sites (DNS and site entry properly) with
http://www.mysite.com/phpmyadmin

up pops an .htaccess type box as below demanding to know account and password. No account / password combo that I've tried works!

A username and password are being requested by http://www.mysite.com. The site says: "phpMyAdmin localhost"

After giving up it says access denied phpmyadmin 2.11.11.3

any ideas?
Reply With Quote
  #3  
Old 26th June 2013, 03:34
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 162
Thanks: 0
Thanked 7 Times in 7 Posts
Default yet further advancement. anyone use net2ftp?

I found an install instruction set for ispconfig 3 but I dont understand one step says to edit a file that does not exist on my server..

...steps omitted....
23. cd /var/www/ispconfig/themes/default/css/screen
24. nano content_ispc.css or vi content_ispc.css



content_ispc.css I cant find anywhere. any light to shed?
Reply With Quote
  #4  
Old 26th June 2013, 10:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,045
Thanks: 841
Thanked 5,661 Times in 4,468 Posts
Default

Which phpmyadmin install instructions do you refer to?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 26th June 2013, 13:46
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 162
Thanks: 0
Thanked 7 Times in 7 Posts
Default phpmyadmin instructions

perfect server centos 6.4 ispconfig 3 apache 2.

and one more thing I installed pureftpd as per above installation and I find this in /var/log/messages:

----snip-----
un 26 06:36:22 ns9 pure-ftpd: (justrightrealestateva@192.168.2.1) [NOTICE] /var/www/clients/client0/web11//web/index_htm_files/177.png uploaded (978 bytes, 363.58KB/sec)
Jun 26 06:36:43 ns9 pure-ftpd: (justrightrealestateva@192.168.2.1) [INFO] Logout.
Jun 26 06:36:43 ns9 pure-ftpd: (?@192.168.2.1) [INFO] New connection from 192.168.2.1
Jun 26 06:36:43 ns9 pure-ftpd: (?@192.168.2.1) [INFO] justrightrealestateva is now logged in
Jun 26 06:36:43 ns9 pure-ftpd: (justrightrealestateva@192.168.2.1) [NOTICE] /var/www/clients/client0/web11//web/index_htm_files/183.png uploaded (691 bytes, 302.19KB/sec)
Jun 26 06:37:04 ns9 pure-ftpd: (justrightrealestateva@192.168.2.1) [INFO] Logout.
Jun 26 06:37:04 ns9 pure-ftpd: (?@192.168.2.1) [INFO] New connection from 192.168.2.1
Jun 26 06:37:04 ns9 pure-ftpd: (?@192.168.2.1) [INFO] justrightrealestateva is now logged in
Jun 26 06:37:04 ns9 pure-ftpd: (justrightrealestateva@192.168.2.1) [NOTICE] /var/www/clients/client0/web11//web/index_htm_files/184.png uploaded (661 bytes, 104.30KB/sec)
Jun 26 06:37:25 ns9 pure-ftpd: (justrightrealestateva@192.168.2.1) [INFO] Logout.
Jun 26 06:37:25 ns9 pure-ftpd: (?@192.168.2.1) [INFO] New connection from 192.168.2.1
Jun 26 06:37:25 ns9 pure-ftpd: (?@192.168.2.1) [INFO] justrightrealestateva is now logged in
-------------snip-------------


pure-ftpd is recording a login and log out for EVERY file transferred. is this by design?? I was wondering why ftp upload was taking so long!
is there a setting somewhere that logs out after every upload?
Reply With Quote
  #6  
Old 26th June 2013, 14:25
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,045
Thanks: 841
Thanked 5,661 Times in 4,468 Posts
Default

These is the perfect setup for centos and I cant find the instructions you posted above to edit that file:

http://www.howtoforge.com/perfect-se...ot-ispconfig-3

Quote:
pure-ftpd is recording a login and log out for EVERY file transferred. is this by design?? I was wondering why ftp upload was taking so long!
is there a setting somewhere that logs out after every upload?
I doubt that pure-ftpd logs you out, according to the log, the ftp client quits the connection.Pleasetry to use a different FTP client to see if you get the same behaviour.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 26th June 2013, 16:26
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 162
Thanks: 0
Thanked 7 Times in 7 Posts
Default ftp client issue

its the same client (built into a web development package) I've used for years. on other servers it uploads rapidly zip zip zip. here took a LONG time and that was in the log...
maybe a different ftp server rather than pure-ftp?
thanks.

One more thing (dont want to dig around in ispconfig source if there is a simple setting somewhere - the default is to list 15 websites etc per page under the sites list. can I change it to default to ALL?

thanks again!

ps LOVE ISPCONFIG3. gotten used to it in a short time.
now if I can only get net2ftp to work..

did you see the above question? net2ftp/ispconfig3 install instructions mention a file in the default screen css folder that does not exist.
any ideas?
Reply With Quote
  #8  
Old 26th June 2013, 16:27
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 162
Thanks: 0
Thanked 7 Times in 7 Posts
Default ispconfig 3 installation instructions

the instructions were to integrate net2ftp with ispconfig 3, not the ispconfig 3 installation itself.
Reply With Quote
  #9  
Old 26th June 2013, 16:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,045
Thanks: 841
Thanked 5,661 Times in 4,468 Posts
Default

Quote:
its the same client (built into a web development package) I've used for years. on other servers it uploads rapidly zip zip zip. here took a LONG time and that was in the log...
maybe a different ftp server rather than pure-ftp?
thanks.
The logout is initiated by the mail client and not the ftp server. You should check the settings of your mail client.

Quote:
One more thing (dont want to dig around in ispconfig source if there is a simple setting somewhere - the default is to list 15 websites etc per page under the sites list. can I change it to default to ALL?
No, not without changing the sources of all lists.

Quote:
the instructions were to integrate net2ftp with ispconfig 3, not the ispconfig 3 installation itself.
Ok, so not the perfects etup guide. I have not tested net2ftp with ispconfig, so I cant tell you if it will work with current ispconfig releases.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 26th June 2013, 16:59
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 162
Thanks: 0
Thanked 7 Times in 7 Posts
 
Default net2ftp integration

the documentation I've found claims success integrating with ispconfig3 - but they refer to a file I cannot find mentioned above.

var/www/ispconfig/themes/default/css/screen
24. nano content_ispc.css or vi content_ispc.css

any idea what the content_ispc.css file is? and why its not in my installation?
should it be? is it from an older version of ispconfig (though the docs claim success with ispconfig3!)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 6.4: Fresh Install Shows Apaches Test Site Alisnasyon Installation/Configuration 8 13th May 2013 17:52
Regarding ISPConfig 3.0.5.1 / CentOS 6.4 Tutorial midcarolina Installation/Configuration 3 2nd April 2013 18:40
CentOS 6.4 x86_64 - ISPConfig 3.0.5.1 - RKHunter Errors Hairy Installation/Configuration 0 22nd March 2013 20:35
CentOS 6.4 x86_64 - ISPConfig 3.0.5.1 - Amavis Errors Hairy Installation/Configuration 0 22nd March 2013 18:16
All files gone after changing quota to 0 spynode General 17 19th January 2012 15:41


All times are GMT +2. The time now is 01:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.