Make 48 disks(files) on solaris 10


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Make 48 disks(files) on solaris 10
# 1  
Old 06-04-2012
Make 48 disks(files) on solaris 10

Hello,

to simulate an environment with 48 disks using Solaris 10 x86,
i try toMake 48 disks (files) with MKFILE :

Code:
#for i in c{0,1,2,3,4,5}t{0,1,2,3,4,5,6,7}d0 >do  > mkfile 100m $i >done

But i received like result :

Code:
#ls /test_zfs
c{0,1,2,3,4,5}t{0,1,2,3,4,5,6,7}d0

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

Moderator's Comments:
Mod Comment Please use next time code tags for your code and data
# 2  
Old 06-04-2012
Code:
for i in 0 1 2 3 4 5
do
    for j in 0 1 2 3 4 5 6 7 
          mkfile 100m c${i}t${j}d0 
    done
done

# 3  
Old 06-04-2012
No double posting!
Continue here:
Create files to introduce with ZFS
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to scan the disks and make file system

Hi What I'm trying to do(manually) is logging into the server and running the below mentioned commands ls /sys/class/scsi_device/ | while read i; do echo "- - -" > /sys/class/scsi_device/$i/device/rescan;done lsblk echo -e "o\nn\np\n1\n\n\nw" | fdisk /dev/sdd partx -a /dev/sdd1... (7 Replies)
Discussion started by: James0806
7 Replies

2. Solaris

How to determine if i have spare disks in Solaris?

Hi Guys, obviously new to SOLARIS SUN SPARC 5.10 I would really appreciate if you help me see how to find free disks available in my system. Like i am a linux admin. If i want to grow a file system in linux. I would first have a look at my volume groups to see if they have free PEs if not then... (2 Replies)
Discussion started by: aiqbal
2 Replies

3. Shell Programming and Scripting

Script to format 4 new disks in Solaris 11

I want to develop a script that I can run like follows: ./format_disks.sh <disk name 1>, <disk name 2>, etc... Some background. I've create a VMware based virtual machine that has Solaris 5.11 installed on it. Initially, the only disk that is on this VM is the one that hosts the OS. ... (1 Reply)
Discussion started by: wdg74
1 Replies

4. Solaris

list all solaris Disks

Hi Guy's can anyone advise me .. I have mapped some of EMC devices from EMC Storage to Sun Solaris server and I want to list all the disk which are assigned from the storage can anyone advise me with the command how to can I list all the disk in Solaris Thanks .. (2 Replies)
Discussion started by: roooooot
2 Replies

5. Solaris

Solaris not recognizing RAID 5 disks

I've just installed Sol 10 Update 9 on a Sun 4140 server and have a RAID 1 configuration (2 136 Gb drives) for the OS and have created a RAID 5 array (6 136 GB) drives. When i log into the system I am unable to see the RAID 5 disks at all. I've tried using the devfsadm command but no luck and... (9 Replies)
Discussion started by: goose25
9 Replies

6. Shell Programming and Scripting

getting number of disks in solaris

Friends, i have used the following code to get the number of disks in solaris echo | pfexec format | egrep -v "Searching|AVAILABLE|Specify|^$|@" | wc -l is there a better way to get the same result (5 Replies)
Discussion started by: achak01
5 Replies

7. Solaris

disks in solaris

whats the command to find name of all disks. Is it iostat -En ? (1 Reply)
Discussion started by: vikashtulsiyan
1 Replies

8. Solaris

Hard disks in solaris

I need to insert a new hard disk into a Sun Fire v210 machine. The (only) internal disk which is already in the machine is part number XRA-SC1CB-73G10K (DISK DRIVE ASSY. 73GB, 10K RPM, with SPUD BRACKET). I also have nearly endless access to IBM hard disks at extremely low prices and would there... (2 Replies)
Discussion started by: sprellari
2 Replies

9. Solaris

Solaris x86 - 2 new disks

Have a compaq dl380 proliant installed with solaris.. It has a smart array 5i controller.. currently I have 2 18gb disks - mirrored as far as I can see... I have just put in 2 36gb disks (just physically put in) How do I get solaris to recognise them so I can use them? format command - only... (2 Replies)
Discussion started by: frustrated1
2 Replies

10. Filesystems, Disks and Memory

re-partition disks on solaris

hi all, i was wondering if i have some volume manager and i want to format all partitions/disks and re-create new slices can i use regular format command or what? i think veritas volume manager is already installed. (2 Replies)
Discussion started by: Bashar
2 Replies
Login or Register to Ask a Question