- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Script to Create 600MB file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 06:16 AM
08-12-2004 06:16 AM
We are planning to transfer some of the dump data (600MB each file approx. 80GB data) from US to Europe using the FTP protocol.
Before we do this task, we have decided to perform some test data transfer.
Can you give me some script to create some test data in a file of size 600MB?
Example:
Touch data1.ftp
if the file size < 600MB
then
Add "this is line 1" >> data1.ftp
else
echo "File created of size 600MB"
endif.
Thanks,
Nikee
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 06:22 AM
08-12-2004 06:22 AM
Re: Script to Create 600MB file
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 06:24 AM
08-12-2004 06:24 AM
Re: Script to Create 600MB file
# prealloc 600MBFile 629145600
Note that prealloc uses the number of BYTES for the file size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 06:32 AM
08-12-2004 06:32 AM
Re: Script to Create 600MB file
dd bs=1024K count=600 if=/dev/null of=your-big-file
Or if=/dev/random if you have that?
Or if=/dev/rdsk123
Or if=/oracle/data/somebigfile.dbf
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 06:40 AM
08-12-2004 06:40 AM
SolutionUse either:
dd if=/dev/random of=data1.ftp bs=8k count=76800
or dd if=/oramount/dbinstance.dmp of=data1.ftp bs=8k count=76800
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 06:44 AM
08-12-2004 06:44 AM
Re: Script to Create 600MB file
I'm not sure a prealloc file will do the trick for you. It's what's termed a sparse file & ftp *may* not send all the null space between the start & ending block. And if it does, sending all zeroes won't be a real world test.
A better idea maybe to use dd to read any old disk with more than 600MB of data on it & write it to a file - like:
dd if=/dev/dsk/cXtYdZ of=/path/to/600mb_file bs=512k count=1200
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 07:01 AM
08-12-2004 07:01 AM
Re: Script to Create 600MB file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 07:02 AM
08-12-2004 07:02 AM
Re: Script to Create 600MB file
Thanks for the quick response.
Well, if I use the dd command, how can I verify the file after the FTP transfer?
I mean, data is good inside the file and the
checksum is good and the integrity?
Thanks,
Nikee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 07:35 AM
08-12-2004 07:35 AM