getting number of disks inside a solaris zone


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting getting number of disks inside a solaris zone
# 1  
Old 05-21-2010
getting number of disks inside a solaris zone

Friends, I am really stuck on this one. In solaris i can get the number of disks using this command -->
Code:
pfexec format | egrep -v "Searching|AVAILABLE|Specify|^$|@" | wc -l

But when applying this command inside a solaris zone ,the format command doesnt work. any ideas on how i can go about it
# 2  
Old 05-23-2010
MySQL

Code:
echo disk > formatfile ; format -f formatfile > output ; grep -c "cyl" output

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies

2. Solaris

Solaris 11 Global zone patching having Solaris 10 branded zone

I am planning to do solaris 11 global zone patching having solaris 10 branded zone. I have a doubts on step 8 specially Can someone clear my step 8 doubts or if anything wrong between step 1 to step 9 please correct that also as I have pretty good idea about Step 10 mean patching in solaris 10... (2 Replies)
Discussion started by: amity
2 Replies

3. Solaris

Installing Solaris inside zone using automated installer

Hi guys, I was wondering if Solaris 11 can be installed in zone using automated installer as I can with vmvare or virtualbox. To be precise, first I want to create a zone which will create empty box. After that, I want to install Solaris using automated installer because I have a bunch of... (2 Replies)
Discussion started by: solaris_user
2 Replies

4. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

5. Solaris

Solaris 10 local zone on Solaris 11 global zone

Hi, A quick question: Can Solaris 10 local zones be moved to a Solaris 11 global zone and work well? Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies

6. Solaris

How to upgrade firmware for disks inside servers?

Hi All, Recently I'm being request by customer to upgrade firmware for one of the disk but not from storage and is from server it self. The patch no is 116370-15, when I found it, I only see instructions on how to download for storage disks but not for server disks. All guru here please... (0 Replies)
Discussion started by: mailbox80
0 Replies

7. Shell Programming and Scripting

How to get number of attached hard disks in HP-UX

how do i get the number of attached hard disks in HP-UX (1 Reply)
Discussion started by: achak01
1 Replies

8. 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

9. Solaris

Solaris Zone : Non global Zone check failed

Hi All , I try to install some packages in my global zone... On the execution of the installion of the script it quits by saying the error "Non global zone check failed" Kindly help me in this regard Thanks in advance, jeganr (7 Replies)
Discussion started by: jegaraman
7 Replies
Login or Register to Ask a Question