HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   ISPConfig 3 Priority Support (http://www.howtoforge.com/forums/forumdisplay.php?f=35)
-   -   ISPCONFIG 3 & Centos 6.4 - ALMOST right but... (http://www.howtoforge.com/forums/showthread.php?t=62360)

craig baker 24th June 2013 22:22

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)

craig baker 25th June 2013 22:04

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?

craig baker 26th June 2013 03:34

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?

till 26th June 2013 10:12

Which phpmyadmin install instructions do you refer to?

craig baker 26th June 2013 13:46

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?

till 26th June 2013 14:25

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.

craig baker 26th June 2013 16:26

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?

craig baker 26th June 2013 16:27

ispconfig 3 installation instructions
 
the instructions were to integrate net2ftp with ispconfig 3, not the ispconfig 3 installation itself.

till 26th June 2013 16:34

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.

craig baker 26th June 2013 16:59

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!)


All times are GMT +2. The time now is 04:48.

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