FTP was working until I added syslog dataset

Status
Not open for further replies.

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
the first method doesn't work...here are the report for the commands u told me

Code:
[root@freenas ~]# zpool import 
[root@freenas ~]# zpool status 
 pool: DATI 
 state: ONLINE 
 scan: scrub repaired 0 in 0h4m with 0 errors on Thu Oct 3 00:04:47 2013 
config: 
 
 NAME STATE READ WRITE CKSUM 
 DATI ONLINE 0 0 0 
 mirror-0 ONLINE 0 0 0 
 gptid/73c3be36-1fad-11e3-b18a-dc9c5207affd.eli ONLINE 0 0 0 
 gptid/74a8d922-1fad-11e3-b18a-dc9c5207affd.eli ONLINE 0 0 0 
 
errors: No known data errors 
[root@freenas ~]# camcontrol devlist 
<ST2000DL003-9VT166 CC32> at scbus0 target 0 lun 0 (ada0,pass0) 
<ST2000DL003-9VT166 CC32> at scbus1 target 0 lun 0 (ada1,pass1) 
<SanDisk Cruzer Edge 1.01> at scbus6 target 0 lun 0 (pass2,da0) 
[root@freenas ~]# gpart show 
=> 34 3907029101 ada0 GPT (1.8T) 
 34 94 - free - (47k) 
 128 4194304 1 freebsd-swap (2.0G) 
 4194432 3902834696 2 freebsd-zfs (1.8T) 
 3907029128 7 - free - (3.5k) 
 
=> 34 3907029101 ada1 GPT (1.8T) 
 34 94 - free - (47k) 
 128 4194304 1 freebsd-swap (2.0G) 
 4194432 3902834696 2 freebsd-zfs (1.8T) 
 3907029128 7 - free - (3.5k) 
 
=> 63 7821249 da0 MBR (3.7G) 
 63 1930257 1 freebsd [active] (942M) 
 1930320 63 - free - (31k) 
 1930383 1930257 2 freebsd (942M) 
 3860640 3024 3 freebsd (1.5M) 
 3863664 41328 4 freebsd (20M) 
 3904992 3916320 - free - (1.9G) 
 
=> 0 1930257 da0s1 BSD (942M) 
 0 16 - free - (8.0k) 
 16 1930241 1 !0 (942M) 
[root@freenas ~]# glabel status 
 Name Status Components 
gptid/73c3be36-1fad-11e3-b18a-dc9c5207affd N/A ada0p2 
gptid/74a8d922-1fad-11e3-b18a-dc9c5207affd N/A ada1p2 
 ufs/FreeNASs3 N/A da0s3 
 ufs/FreeNASs4 N/A da0s4 
 ufs/FreeNASs1a N/A da0s1a 
[root@freenas ~]#
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
the first method doesn't work...here are the report for the commands u told me
First, use [code][/code] tags for CLI output.

Second, I wanted you to run those commands from single user mode.
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
Ah ok sorry for both...i'll run the commands in single user mode and post the output again
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
Here we are:
ImageUploadedByTapatalk1380964296.659890.jpg ImageUploadedByTapatalk1380964312.992026.jpg ImageUploadedByTapatalk1380964326.873134.jpg
#zpool status -> no pools available??? is that normal?
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
Nevermind...I ended up detaching the whole volume and creating everything again...now FTP works again normally. thanks the same for the help
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
It may be sufficient to boot normally, stop syslogd and delete the dataset. I haven't actually tested it though.
Code:
service syslogd stop
Actually nginx is also keeping files open in the syslog directory/dataset. Do this to be able to delete the dataset (no need for single user mode or reboots):
  1. unlink /var/log
  2. mv /var/.log.old /var/log
  3. service syslogd restart
  4. service nginx restart
(you may also need to restart the nut_upslog service if you are using UPS)
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
Thank you for the reply, but i solved deleting the whole mount (it was still empty fortunately) and creating a new one again. But your reply can be useful for some else i guess
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
Actually nginx is also keeping files open in the syslog directory/dataset. Do this to be able to delete the dataset (no need for single user mode or reboots):
Excellent, thanks. I thought it was likely more than syslogd, but I hadn't checked.
 

STRAMIGIOLIS

Dabbler
Joined
Dec 31, 2012
Messages
14
It seems to me (I may miss something) that the problem of adapting the file/getting rid of line 10 in proftpd.conf is still open (If that is not the case, please let me know): where can you bring the changes to the file so that they are not overwritten all the times? Thanks in advance
 

npereira

Cadet
Joined
Sep 27, 2011
Messages
3
FYI for what it's worth, I was having the same issue, proftpd not restarting, then I did
  1. service syslogd stop
  2. service syslogd start
I was then able to restart proftpd from gui.
 

Makaveli6103

Contributor
Joined
Mar 18, 2012
Messages
104
FYI for what it's worth, I was having the same issue, proftpd not restarting, then I did
  1. service syslogd stop
  2. service syslogd start
I was then able to restart proftpd from gui.

Thanks this worked for me. Why do we need to do this though?
 
Status
Not open for further replies.
Top