• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Mount new harddisk without loosing data/settings

Kees

New Pleskian
Hi,

first of all i'm not really a die hard programmer so my knowledge is limited.

I've got an install of plesk 12 on a Centos 6 that i'm only using as a mailserver for my clients. I have a couple of them live so any data loss is a bit of a problem. Anyway, currently i have a 150 g SSD running but that's not going to be sufficient for my purpose of running hundreds of accounts with 3Gig of inbox space.

I have connected a new HD with 2T capacity.

Currently everything looks like this:
vda 252:0 0 150G 0 disk
├─vda1 252:1 0 500M 0 part /boot
└─vda2 252:2 0 149.5G 0 part
├─vg_plesk-lv_root (dm-0) 253:0 0 148G 0 lvm /
├─vg_plesk-lv_swap (dm-1) 253:1 0 1G 0 lvm [SWAP]
└─vg_plesk-lv_tmp (dm-2) 253:2 0 512M 0 lvm /tmp
vdb 252:16 0 2T 0 disk

Which steps do I need to take to use this disk to store all data regarding to e-mails etc etc without losing data or settings? I have been reading stuff on this forum but It's giving me headaches, there must be people with the same problem and a step-by-step guide on how to fix this right?

While we're at it, i also would like to increase the partition /tmp and /swap a bit. In my experience with plesk on other servers the /tmp folder is getting full when downloading backups, is that correct?

I hope you guys can help me out. If you need additional info i'd be happy to send it.

Thank you!
 
We have KB article with solution of this problem - http://kb.odin.com/en/6312
Despite fact that article was written for old Plesk version I think that it is actual for Plesk 12 too. For example, location of maildir still the same on Plesk 12:

[root@ppu12-0 ~]# cat /etc/psa/psa.conf | grep PLESK_MAILNAMES_D
PLESK_MAILNAMES_D /var/qmail/mailnames
 
Hi Igor,

Thanks for the quick reply. I have tried to do this. And I see it's connected, when creating a new account it shows up in mailnames but I cannot login to webmail with any of the accounts. It says "login failed". It's weird. Any ideas?

Another question pops up after your solution: when there's a plesk update will that overwrite and put the original mailnames location back in psa.conf?
 
1. Webmail logs should be investigated.
2. psa.conf will not be overwritten with default settings.
 
i opened the error log from my roundcube install but there's nothing there.. Any other ideas?
 
I think it might be a permission issue? Could that be? When I put everything in it's original state i can log in again. As soon as I change "mailnames" to the directory of the new hard drive I cannot login or use imap connections. Messages can't be downloaded from server it states.

Extra info: running postfix and roundcube webmail.
 
I have found another article suggesting it only works with symlinking the /mailnames to the new location ( http://talk.plesk.com/threads/change-var-qmail-mailnames-to-another-partition.57444/ ). Symlink works, and new accounts are being added on the new location. So far so good. Have looked up the maillog and the output after failed login to webmail is:

Nov 27 10:04:19 vps1 dovecot: imap-login: Disconnected (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=DIGEST-MD5, rip=::1, lip=::1, secured, session=<ntzRbdMI/AAAAAAAAAAAAAAAAAAAAAAB>
Nov 27 10:04:32 vps1 dovecot: imap-login: Disconnected (auth failed, 1 attempts in 6 secs): user=<[email protected]>, method=DIGEST-MD5, rip=::1, lip=::1, secured, session=<vWhcbtMI/wAAAAAAAAAAAAAAAAAAAAAB>
Nov 27 10:12:24 vps1 dovecot: imap-login: Disconnected (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=DIGEST-MD5, rip=::1, lip=::1, secured, session=<gRDBitMIQAAAAAAAAAAAAAAAAAAAAAAB>
 
I have put debugging on in dovecot and this is the result:

Nov 27 10:26:54 vps1 dovecot: auth: Debug: plesk([email protected],::1,<0QbBvtMITQAAAAAAAAAAAAAAAAAAAAAB>): Found mail account for user='[email protected]': password='xxxxxxxx' scheme='PLAIN' address='[email protected]'
Nov 27 10:26:54 vps1 dovecot: auth: plesk([email protected],::1,<0QbBvtMITQAAAAAAAAAAAAAAAAAAAAAB>): An unexpected error occurred while checking for Maildir existence at '/var/qmail/mailnames/domain.net/admin/Maildir' for user='[email protected]'
Nov 27 10:26:56 vps1 dovecot: auth: Debug: client passdb out: FAIL#0111#011user=[email protected]#011temp
Nov 27 10:26:56 vps1 dovecot: imap-login: Disconnected (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=DIGEST-MD5, rip=::1, lip=::1, secured, session=<0QbBvtMITQAAAAAAAAAAAAAAAAAAAAAB>
 
i have used this line : /usr/local/psa/admin/sbin/mchk --with-spam
am not sure what bootstrapper repair is? Tips are welcome
 
Just run

# /usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair
 
it didn't work.. it's driving me insane. I have tried everything i can think of with my little knowledge.. Any other ideas?
 
Try to switch from dovecot to courier-imap and back. Use autoinstaller for that.
 
That wasn't working as well, I did fix it though. The problem was that SELinux was enabled, that prevented the access to maildir et cetera. I'm now going to try to edit the file so it works with SELinux (I hope those configs aren't being rewritten at every Plesk update?) Anyway, thank you very much for all the assistance in this matter. I found some other threads concerning moving the mailnames to other disks or partitions and will update those as well.
 
Hi Igor if you're still watching this thread, could you point me in to the right direction where I have to look to let this work with Selinux? I found some lines of code referencing /var/qmail/mailnames in the selinux directories but don't know what to do with them. There's so much code to go through in the Selinux directories, don't know where to start.

Thanks!
 
I can say that Plesk has own psa-selinux package in distribution kit. This package modifies the SELinux predefined policies configurations to allow Plesk to perform its actions. Package should be installed by default on your system.
 
Back
Top