Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!
[root@thideras-server ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 2.3T 471G 1.8T 21% /mnt/hitachi10
/dev/sdc1 13T 2.6T 10T 21% /mnt/hitachi
[root@thideras-server ~]# parted /dev/sdc print
Model: INTEL SRCSASBB8I (scsi)
Disk /dev/sdc: 14.0TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 14.0TB 14.0TB ext4 primary
dump 0uf /mnt/hitachi/os.dump /
[root@thideras-server hitachi]# restore -i -f /mnt/hitachi/os.dump
restore > ls
.:
.autofsck dev/ lib64/ mnt/ root/ sys/
bin/ etc/ lost+found/ net/ sbin/ tmp/
boot/ home/ media/ opt/ selinux/ usr/
cgroup/ lib/ misc/ proc/ srv/ var/
Ok, more information. I've been setting up my iscsi target on my server for my other servers. For testing purposes, I've mounted these on my desktop. Going based on my old train of thought, this should exhibit the same speed issues that I was seeing with Samba.
Code:[root@thideras-server ~]# tgtadm --lld iscsi --op show --mode target Target 1: iqn.iscsi.local.thideras System information: Driver: iscsi State: ready I_T nexus information: I_T nexus: 2 Initiator: iqn.1994-05.com.redhat:d16eb423fd89 Connection: 0 IP Address: 192.168.0.50 LUN information: LUN: 0 Type: controller SCSI ID: IET 00010000 SCSI SN: beaf10 Size: 0 MB Online: Yes Removable media: No Backing store type: rdwr Backing store path: None LUN: 1 Type: disk SCSI ID: IET 00010001 SCSI SN: beaf11 Size: 250000 MB Online: Yes Removable media: No Backing store type: rdwr Backing store path: /dev/sda1 LUN: 2 Type: disk SCSI ID: IET 00010002 SCSI SN: beaf12 Size: 250000 MB Online: Yes Removable media: No Backing store type: rdwr Backing store path: /dev/sda2 Account information: ACL information: ALL
Mounted, formatted and ready for dd. So, let's do this! To make sure we get real transfer rate, I'll do a large file. Starting...Code:[root@thideras-main iscsitest]# iscsiadm --mode discovery --type sendtargets --portal thideras-server 192.168.0.10:3260,1 iqn.iscsi.local.thideras
Ok, file is copying, let's see what the server says.Code:[root@thideras-main iscsitest]# dd if=/dev/zero of=./test.iso bs=1G count=15
Hmm, that is looking pretty good at 111 MB/sec transfer.
That adds up to 103 MB/sec writing speed. Not bad.
Desktop agrees with everything else at 106 MB/sec.
And the copy finished.That is certainly better than Samba! Now to figure out why. It clearly is not a network or network interface problem, so that narrows it down directly to Samba or its configuration.Code:[root@thideras-main iscsitest]# dd if=/dev/zero of=./test.iso bs=1G count=15 15+0 records in 15+0 records out 16106127360 bytes (16 GB) copied, 153.324 s, 105 MB/s
#!/bin/bash
#This script makes a tar.gzip of the daily CPanel backup
#The purpose is actual daily archives with offsite storage
#This script does not currently save remotely
#Set the log path and reset it
LOG="/root/dailyarchivelog"
rm "$LOG"
#Location to backup from
FOLDER="/backup/cpbackup/daily"
#Location to place the backups
ARCHIVE="/backup/archives"
#Not currently used in this script
#Remote server information
#IP="[redacted]"
#USER="[redacted]"
#SAVEIN="[redacted]"
#Set the file backup name
BACKUP="dailyarchive-$(date +%Y-%m-%d).tar.gz"
#Tar the information and gzip it to save space
tar -cf - "$FOLDER" | gzip - > "$ARCHIVE/$BACKUP"
#Check to see if we got an error while creating the backup
#Depending on the outcome, email the proper response to root
if [ $? != "0" ]; then
echo "The tar/gzip operations have failed." >>$LOG
echo "Please check the server." >>$LOG
echo "" >>$LOG
echo "The current backups on the server are:" >>$LOG
echo "`du -h "$ARCHIVE/"*`" >>$LOG
mail root -s "Daily backup FAILED" < "$LOG"
else
echo "The backup completed successfully on: `date +%m`-`date +%d`-`date +%y` at `date +%H`:`date +%M`:`date +%S`" >>$LOG
echo "" >>$LOG
echo "The current backups on the server are:" >>$LOG
echo "`du -h "$ARCHIVE/"*`" >>$LOG
mail root -s "Daily backup succeeded" < "$LOG"
fi
exit 0
Subject: Daily Backup succeeded
The backup completed successfully on: 11-11-11 at 21:49:53
The current backups on the server are:
Subject: Daily backup FAILED
The tar/gzip operations have failed.
Please check the server.
The current backups on the server are:
147M /backup/archives/dailyarchive-2011-11-11.tar.gz