CoinFX
searchregister login

 

 

 

 

 

Home

PostHeaderIcon ForFiles - a little known toy

ForFiles

I've found several examples of batch files to delete files and folders based on date, yet they've always been bulky and contain several lines of code.

Here's the line of code I use now, using the wonderful ForFiles command.


Forfiles /p D:\Store\Backup /s /m *.* /d -5 /c "cmd /c del /q @path"


/p D:\Store\Backup is the path to the files you wish to delete

/s Delete subdirectories and files

/m *.* FileMask that you wish to delete

/d -5 Days old to delete files (5 days old or older in this example)

/c "cmd /c del /q @path" Command to run against each file


More details can be found on Technet

Last Updated ( Sunday, 11 July 2010 10:38 )

 

PostHeaderIcon System down time...

Well, add bad luck to bad luck and you get my July 4th weekend.

My annual cook out went well, the fireworks show was GREAT!

But...


I had another drive failure. This time in my RAID5 array for my VMWare server farm.

Oddly enough I still lost data, even thouhg it was only 1 disk in my RAID5 array.

And since I reverted back to ESX 3.5i from vSphere 4.0 I had removed my VDR shares and back ups. Luckily I back up the webpage and content to several places OFTEN.

The primary delay for getting everything back up has been the fact I'm back to work and I've had to build my entire VMWare farm to get to this point.


I'm working towards a better backup system, and more redundancy... More to come.


Welcome back CrackedConsole

Last Updated ( Saturday, 10 July 2010 20:03 )

 

PostHeaderIcon Western Digital Green vs Samsung Green

Well, after running the Samsung disk for a few months now, the only good thing I can say about these drives would be they run cool. Sadly, the failure rate has been WAY to high with the Samsung HD154UI drive.

First impression with the Western Digital Caviar Green drives is hopefull, though sadly the drives seem to run abit warmer.


Below is a screen cap of the drive temps followed by drive model's. I ordered the same 2 WD disk, but oddly the model's are different.. heh.

The first WD drive (Channel 8) is currently involved in an array rebuild process, so it is running hotter than chanel 16, an idle WD disk.

All of the Samsung drives are involved in the array rebuild, so they are all busy disk.


Drive models

Drive temps

 

PostHeaderIcon OpenFiler - Moving data between volumes ( RSync )

After doing some reading and hunting I wanted to post a quick blurb on how to migrate data between Volumes in OpenFiler. I've done this a few times when creating new shares and new RAID sets on my ARC-1260.

This approach uses RSync ( rsync documentation : rsync wikipedia )


In short the commands I used are.


rsync -rv /mnt/stor/data/files/ /mnt/san/media/files/ --progress --exclude BAD/ --ignore-existing --stats


-rv recursive (it will copy folders and subfolders) verbose

/mnt/stor/data/files source directory

/mnt/san/media/files destination directory

--progress display progress of the file copy

--exclude BAD/ anything in the directory BAD/ do not copy

--ignore-existing if a file already exists, skip

--stats dispaly file transfer stats


On average I've been getting 25MB-32MB moving data onto my 8 drive 1.5TB RAID 6 array, not shabby.


RSync data copy on OpenFiler


**Note this does not copy existing permissions, and those must be corrected.


Last Updated ( Thursday, 22 July 2010 22:32 )

 

PostHeaderIcon More drive failures

Well I was cursed yet again last night with a PSU and 2 Samsung drive failures.

Thank goodness my areca ARC-1260 was setup in RAID6 mode for my primary volume.

I lost 2 Samsung HD154UI drives when the system shutdown.

Being fed up with the quality of the disk, I ran to MicroCenter and picked up

OCZ Technology 700 Watt GameXStream Power Supply

and

2x Western Digital Caviar Green WD15000CSRTL 1.5TB drives

The array is rebuilding and time to RMA yet another 2 Samsung drives...

Last Updated ( Sunday, 27 June 2010 18:08 )

 

PostHeaderIcon Project Logs - new menu

Well I've changed yet again the Project Logs section of the page. This time it has more of a blog feel.

When you visit Project Logs from the menu bar, you will be presented with each project I've posted on. Selecting a project will then list all postings for that project, blog style.

I'm happier with the final result but the Project log list needs some work still, and I must add more details for my projects =)

Last Updated ( Sunday, 06 June 2010 20:42 )

 

<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 2 of 10