Hi,
I have recently been told i need to look after a clients Solaris servers (8,9 and 10) and wondered if i could ask the forum for some quick advice on a couple of things. All my previous admin work is on HPUX and have discovered the way the Solaris disk management and file system management is massively different. So i wonder if you might be able to offer some help on a couple of questions.
One of my first tasks is to identify if the servers have got mirrored boot disks. In HPUX i would simply type lvlnboot -v and it would tell me, but i cannot find anywhere a single command in Solaris that would tell me this.
Question1 : Is there a single command i can run that will tell me if the disks are mirrored?
The other think that is confusing me is how the filesystems are set up. I have been looking at the format command as this is the only way i have found that will list the disks and give me an idea if they are internal or in an external array.
While i was looking in the format command i checked out the partition table. On the server i looked at i went into the format command twice, each time choosing a different disk, both of which appear to be internal and i saw these outputs from the print command;
DISK1;
partition> print
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 1 - 1895 9.20GB (1895/0/0) 19283520
1 swap wu 1897 - 2350 2.20GB (454/0/0) 4619904
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 2352 - 2366 74.53MB (15/0/0) 152640
DISK2:
partition> print
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 1 - 6751 9.30GB (6751/0/0) 19503639
1 swap wu 6752 - 8421 2.30GB (1670/0/0) 4824630
2 backup wm 0 - 24619 33.92GB (24620/0/0) 71127180
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 8422 - 8475 76.17MB (54/0/0) 156006
Question 2: Is there a single command that will tell me if a disk is internal or external instead of using format?
Question 3: Looking at the above output am i correct in assuming that the 2nd disks is a mirror of the first? It just bothered me why the number of blocks was so different to achieve roughly the same size (9.20Gb)
I am going to try and find some documentation for Solaris 8,9 and 10 that explains how Solaris manages disks and filesystems in the meantime, but any help would be brilliant.
Thank you.