Attempting to use inotify to monitor a file for changes. When the file has changed, I would like to run a series of commands located in a script. I'm using Ubuntu 12.04 LTS. Can someone assist? So...
Type: Posts; User: lingpanda; Keyword(s):
Attempting to use inotify to monitor a file for changes. When the file has changed, I would like to run a series of commands located in a script. I'm using Ubuntu 12.04 LTS. Can someone assist? So...
I need to use the absolute path.
NAS1:/data/pfms1backup
Hello,
I have a Ubuntu 12.04 LTS server. I would like to copy files from this server onto a ReadyNAS 204 using rysnc. I can't get this to work. Here are my current steps.
Create folder...
You have what appears to be a network issue and not a Samba related issue. I think. I'm of little help in this regard.
hots -t A is giving out your old IP because it's not updated in your DNS...
This won't have any affect on your issue but you should set your hostname to your FQDN(ie. Server1.mydomain.co.com)
So while logged in locally or via SSH you can't ping IP 192.168.1.1? Have you...
I would start here on building a member server.
https://wiki.samba.org/index.php/Setup_a_Samba_AD_Member_Server
Is this authenticating against a Windows or Samba AD?
Small update. It looks as if I may actually have issues with the server box itself. Now I not seeing the good HD in the bios as well. The 'faulty' HD might just end up being good.
Do you still have this issue? If so can you post your network settings from '/etc/network/interfaces'?
You should be able to directly connect to any DC in your forest. How have you confirmed replication is working?
I finally have the system up and running again. :D
When I couldn't find grub it got me thinking. Maybe I need to use chroot. This link...
I was able to mount the drive and backup any contents I need, just in case. I'm unable to install grub. Grub is missing from usr/sbin. I used locate and found the only instance of grub on...
Yes. You are correct.
I went ahead and removed the faulty drive. I did not attempt to reinstall the replacement drive. It's now running with just one drive.
This is what I get now.
sudo...
This is what parted displays within live. Both good and faulty drive installed.
sudo parted -l
Model: ATA ST2000DM001-1CH1 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical):...
It's the new drive. I'll look to see if maybe it's a sata cable that is bad. However I do not see the faulty drive in the bios. I do see the new drive. I guess in the meantime I would like to try and...
I receive a error when issuing
mklabel msdos
Input/Output Error on read /dev/sda. Ignore retry cancel. Do I need to format the drive prior to creating the label? Thanks.
I'll go with option 1. Thanks.
In my haste, I forgot to issue the commands to remove the faulty HD prior to install of new HD. Now I get the dreaded
error no such disk
grub rescue
If this was a single HD, I wouldn't be...
@pfmember1:~# parted /dev/sdb unit MiB print
Model: ATA ST2000DM001-1CH1 (scsi)
Disk /dev/sdb: 1907729MiB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Number Start ...
@pfmember1:~# parted -l
Warning: Error fsyncing/closing /dev/sda: Input/output error
Retry/Ignore? i
Model: ATA ST2000DM001-1CH1 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical):...
Was not aware of the sudo and --manage effect. Good to know. Thanks.
I've not created partitions from command line before. All my experience has been during install of the OS. This is my main...
Do the following steps look correct to replace the faulty drive?
1.Mark as failed:
mdadm --manage /dev/md0 --fail /dev/sda1
2. Remove:
mdadm --manage /dev/md0 --remove /dev/sda1
Hello Darkod,
It appears I may have a faulty disk.
@pfmember1:~# mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Fri Jan 2 09:45:43 2015
I think the --add did the trick.
@pfmember1:~# mdadm --detail /dev/md1
/dev/md1:
Version : 1.2
Creation Time : Fri Jan 2 09:45:50 2015
Raid Level : raid1
Array Size :...
Darkod,
Didn't work.
mdadm: --re-add for /dev/sda2 to /dev/md1 is not possible
Would I be safe to run
Hello,
Hope someone can help. Several topics about raid. However many seem to be unique. Noticed the following in my syslog.
DegradedArray event detected on md device /dev/md/1
...