Login or Register to Ask a Question and Join Our Community

Create files to introduce with ZFS

Thread Tools Search this Thread
Operating Systems Solaris Create files to introduce with ZFS
# 1  
Old 06-02-2012
Create files to introduce with ZFS


To learn ZFS, i try to create pool .
and for that i want create 10 files with 512MB (because i dont have multiple disks and multiple controllers)


To get this 10 files,all of them have the same size : 512MB,

I do these commands :

$ mkdir test_zfs
 $ cd test_zfs
 $ for i in $(seq 0 9); \
 >do dd if=/dev/zero of=./disque_$i bs=1M count=512; \

But that gives me an error!
Someone can tell me pls why dont wokr on SOLARIS 10?

i can easily create create 10 files with 512MB on other linux (debian,ubuntu..)

Please help me!

Moderator's Comments:
Mod Comment Please view this link: How to use [code]...[/code] tags

Last edited by Scrutinizer; 06-02-2012 at 08:14 PM.. Reason: code tags
# 2  
Old 06-02-2012
man mkfile

# 3  
Old 06-02-2012
i need to know why it doesnt worked in solaris 10?

---------- Post updated at 05:15 PM ---------- Previous update was at 05:03 PM ----------

what should i do with mkfile?

$mkfile 500m disc1
$mkfile 500m disc2
any scrypt pls?

Thank you
# 4  
Old 06-02-2012
for i in (0 1 2 3 4 5 6 7 8 9)
do mkfile 500m disc$i

(not tested!)
# 5  
Old 06-03-2012
This should be better:
for i in 0 1 2 3 4 5 6 7 8 9
do mkfile 500m disc$i

This User Gave Thanks to jlliagre For This Post:
# 6  
Old 06-03-2012
'seq' does not exist in Solaris.

This url may help. Chi Hung Chan: ZFS on 48 Disks without X4500
This User Gave Thanks to chihung For This Post:
# 7  
Old 06-04-2012
thanks chihung,

your URL is really helpful for me!

thanks to everybody!

---------- Post updated at 09:25 AM ---------- Previous update was at 06:07 AM ----------

i've a real problem!!

when i do :
#for i in c{0,1,2,3,4,5}t{0,1,2,3,4,5,6,7}d0


 > mkfile 100m $i 

i received this result :

#ls /test_zfs

Any help please?
i need to get rather like this :
c0t0d0 c0t1d0...................

Last edited by DukeNuke2; 06-04-2012 at 11:34 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Solaris

Trying to create ZFS slice on rpool

I have a 240GB disk as rpool. I have installed Solaris 11.3 to a partition which is 110GB. Now I have another 130GB which is unallocated. I want to use that additional space as a temporary folder to be shared between Solaris and Linux. The additional space had no /dev/dsk/c2t4... entry so I used... (8 Replies)
Discussion started by: kebabbert
8 Replies

2. Solaris

ZFS flash install "Unable to create Filesystem error"

Hi, I am trying to get an HPz420 workstation instaled (zfs root pool) via a jump-start server. I have a zfs image (from this workstation) the Solaris release is 10 1/13 update 11. I use a sparc U25 install server, upgraded to the same solaris build 10 1/13. This server is configured to install... (8 Replies)
Discussion started by: sc0rpie
8 Replies

3. Shell Programming and Scripting

How to introduce the missing number sequentially?

Dear Help, I have an input file which looks like below 002 1000 2000 3000 003 2000 3000 4000 005 1000 2000 6000 I would like to have an output which inserts the missing number in sequential sorting as shown below... 001 0 0 0 002 1000 2000 3000 003 2000 3000 4000 004 0 0 0 005 1000... (5 Replies)
Discussion started by: Indra2011
5 Replies

4. UNIX for Dummies Questions & Answers

Is it possible to introduce a character using sed?

I need to reformat a text using sed command like Text: 160845 Output: 16:08:45 Please help me how this can be done using sed. Thanks in adv (1 Reply)
Discussion started by: siteregsam
1 Replies

5. BSD

Unable to create zfs zpool in FreeBSD 8.2: no such pool or dataset

I am trying to test simple zfs functionality on a FreeBSD 8.2 VM. When I try to run a 'zpool create' I receive the following error: # zpool create zfspool /dev/da0s1a cannot create 'zfspool': no such pool or dataset # zpool create zfspool /dev/da0 cannot create 'zfspool': no such pool or... (3 Replies)
Discussion started by: bstring
3 Replies

6. Solaris

How can I create a new swap location in ZFS?

I am running OpenSolaris v5.11 During installation, the installation created default ZFS filesystems, like the dump and swap locations. I want to change the blocksize of the /dump and /swap locations and make them ZFS volumes. The ZFS system is on a zpool called rpool I was able to do... (4 Replies)
Discussion started by: sqa777
4 Replies

7. UNIX for Dummies Questions & Answers

Let my introduce myself and one doubt!!!!

Hello, My name is John. I am from Spain and I am learning Linux and how to use it. I hope to learn more in this forum. I am developing a new application, and I have a doubt: Can I read a file, line by line, in C programm? Best regards. (1 Reply)
Discussion started by: webquinty
1 Replies
Login or Register to Ask a Question

Featured Tech Videos