Re-read disk size in Solaris 10 x86 / VMware
Hi
Using
# uname -a
SunOS host1 5.10 Generic_142910-17 i86pc i386 i86pc
We have a 30G virtual disk, on top of which a UFS filesystem is living, mounted, and used.
The Virtual disk has been resized to 40G.
I know I need to change the fdisk partition size, after which i can change the "format" partition size, then use growfs.
But I don't know how to get S10 to recognise the new size for the disk.
fdisk tells me
Total disk size is 3916 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status
Type
Start End Length
========= ======
============ ===== === ====== ===
1
Active
Solaris2
1 3915
3915
100
# prtvtoc -h /dev/dsk/c1t2d0s2
0 0 00 16065 62846280 62862344 /xxx
2 5 01 0 62862345 62862344
8 1 01 0 16065 16064
# df -h /xxx
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t2d0s0 30G 29G 498M 99% /xxx
On Linux I might use partprobe or blockdev --rereadpt but on Solaris?
Cheers
KM
Hello
this document should help, but make a backkup before running it
How to expand a UFS Lun in Solaris 10 (Doc ID 1451858.1)
Regards
Eze
Similar Messages
-
I have some confusion about disk subsystem in Solaris, i am trying to clarify from this forum.
I have recently installed Solaris 10 in one SPARC box. After i installed, the format gives the bellow output.
0 root wm 19491 - 29648 4.88GB (10158/0/0) 10239264
1 swap wu 0 - 4062 1.95GB (4063/0/0) 4095504
2 backup wm 0 - 29648 14.25GB (29649/0/0) 29886192
From the above output, is the size of my disk is 14 GB ?, or the size of my disk is 14+2+5=21 GB ?
I am trying to learn ZFS, so i want another partition in this disk so that i create ZFS on that partition.
I have gone to single user mode by using CD. I assumed that, from the above "format" command output, i thought i have 21GB of disk size and 14GB of free space. So i created another partition with 14GB. Now the format command gives bellow output.
0 root wm 19491 - 29648 4.88GB (10158/0/0) 10239264
1 swap wu 0 - 4062 1.95GB (4063/0/0) 4095504
2 backup wm 0 - 29648 14.25GB (29649/0/0) 29886192
3 reserved wm 0 - 29127 14.00GB (29128/0/0) 29361024
When i am creating ZFS, it given me a warning that the the partition i have specified is spanned into root partition (first partition), and it mentioned to use "-f" option.
With "-f", it created successfully.
If i assume now that the size of my disk is 14GB only then,
(1) how come two partitions are pointing to the same area in the disk ?
(2) How come two different filesystems are pointing to the same area ?
Please anyone clarify my doubts. Thank you.Assuming a standard labeled disk it is standrad practice to have section/slice 2 being 'whole disk' for purposes of 'backup'. That would tend to indicate you have a 14GB disk. A prtvtoc /dev/dsk/c?t?d?s2 (change the ?s to the right values) will give a little more on the disk geometry.
In the display from format column 4 is the start cylinder of the partition and column 5 is the end cylinder. From the first set out output it looks like cyclinders 4063 to 19490 are not allocated
In the second set you have created a new slice (section 3) that overlaps both sections 0 and 1 - which is generally considered to be bad! -
Re: RAC installation in Solaris x86 (VMWARE)
Hi,
I was trying to install Oracle RAC in solaris x86 via VMWARE tool . I installed node1 and node 2 but when node 1 running , unable to start node2 ,
showing error " failed to open virtual machine node-2 locking of attached media failed "
Result code: VBOX_E_INVALID_OBJECT_STATE"
I am feeling that this is happening due to shared folder but how to resolve?
Appreciate if anyone can help
Thanks in advanceI was trying to install Oracle RAC in solaris x86 via VMWARE tool . I installed node1 and node 2 but when node 1 running , unable to start node2 ,
showing error " failed to open virtual machine node-2 locking of attached media failed "
Result code: VBOX_E_INVALID_OBJECT_STATE"
I am feeling that this is happening due to shared folder but how to resolve?
Appreciate if anyone can helpfor installation what link you have fallowd..?please post the link...
refer below link...check any helpful to you...
https://forums.oracle.com/forums/thread.jspa?threadID=2153312 -
How to determine physical disk size on solaris
I would like to know whether there is a simple method available for determining physical hard disk sizes on Sun sparc machines. On HP based machines it is simple:
1. run "ioscan -fnC disk" - to find all disk devices and there raw device target address ie /dev/rdsk/c0t2d2
2. run "diskinfo /dev/rdsk/c0t2d2" - display the attributes of the physical disk including size in Kbyes.
This simple process allows me create simple scripts that I can use to automate collation of audit data for a large number of HP machines.
On Sun based machines I've looked at the prtvtoc, format, and devinfo commands and have had no joy. Methods and suggestion will be well appriciated.ok,
format should say .....eg
type format ..
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN2.1G cyl 2733 alt 2 hd 19 sec 80>
if this is not a Sun disk, and you do not get the info,
select the required disk and select partition and then print. This will display what you need.
hope this helps -
How to increase disk size in solaris
Hi all
I have two disk c1t0d0s0 / c1t0d0s7
I do haven't space in disk /dev/dsk/c1t0d0s0
run df -h
/dev/dsk/*c1t0d0s0* 8,8G 7,4G 1,3G 86% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 3,4G 984K 3,4G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
8,8G 7,4G 1,3G 86% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 3,4G 72K 3,4G 1% /tmp
swap 3,4G 40K 3,4G 1% /var/run
/dev/dsk/*c1t0d0s7* 20G 21M 20G 1% /export/home
I want increasing the space in c1t0d0s0. when I installed Solaris 10 I do not looked attentively the size allocated
ThanksHi,
As I understand, you want to increase the size of the root partition (where you installed Solaris) which resides in c1t0d0s0. I think it can be done using Concatenations from Solaris Volume Manager (SVM).
I have tried it in non root partition like /export/home and it is very easy.
metainit -f d0 2 1 c1t0d0s7 1 c2t0d0s7 //this will create volume d0 as a concatenation
growfs -M /export/home /dev/md/rdsk/d0 //this will grow the /export/home partition
Regards,
Rei -
I have applied the Recommended Patch Cluster to my Solaris 8 (6/00) Ultra 10 System, but Format still sees only 30G off my 100G IDE Slave Device. Pls let me know if there are any other patches to apply for the full HD size to be seen.
thanks
Jayhello, I will check the Jumper Settings, which I think is set as slave. But have no idea how to do the delete vtoc and re-label. Can you please provide the instructions for these?
thanks
Jay -
Solaris-x86 mount fat32 partition, the partition max size limit?
solaris10 x86, laptop, 10G FAT32 partition for windows & x86 exchange data.
the fat32 partition mount as normal, can be read fine.
but write some file by x86, that can not find by windows.
anyboy know did the solaris-x86 mount fat32 partition, the partition max size limit? or no limit, why this problem occur?Mounting Windows partition in Solaris
The easiest way to share data now is to do it through a FAT32 partition. Solaris
recognises it as partition of type pcfs. It is specified as device:drive where drive is
either the DOS logical drive letter (c through z) or a drive number (1 through 24).
Drive letter c is equivalent to drive number 1 and represents the Primary DOS partition
on the disk; drive letters d through z are equivalent to drive numbers 2 through 24,
and represent DOS drives within the Extended DOS partition.Syntax is
mount -F pcfs device:drive /directroy-name
where directory name specifies the location where the file system is mounted.
To mount the first logical drive (d:) in the Extended DOS partition from an IDE hard
disk in the directory /d use
mount -F pcfs /dev/dsk/c0d0p0:d /d
You can use mount directory-name after appending following line is in
/etc/vfstab file
device:drive directory-name pcfs no rw
for example
c0d0s0:c /c pcfs no rw
If your windows partition like the following means
C: - NTFS, D:-FAT32, E:-NTFS, F:-FAT32
Then you can only mount D, F not C & E.
Mounting D Drive:
mount -F pcfs /dev/disk/c0d0p0:c /mountpoint
Mounting F Drive
mount -F pcfs /dev/disk/c0d0p0:d /mountpoint
The driveletter only for fat not including other file systems (ntfs or any linux filesystems). -
Oracle RAC 10g on Solaris x86 using vmware
Guys,
I am practising 10g RAC installation on my laptop, wherein I have vmware workstation and
solaris-x86 version 10 installed on it.
I am trying to install Oracle 10g clusterware.
I have followed the steps for clusterware installation.
I am facing an errror on one of the node while running root.sh.
On the first node, the root.sh runs fine.
The following is the log.
bash-3.00# ./root.sh
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: xsan001 xsan001-priv xsan001
node 2: xsan002 xsan002-priv xsan002
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/rdsk/c0d0s4
Format of 1 voting devices complete.
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
xsan001
CSS is inactive on these nodes.
xsan002
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.
=============================
On the second node, the root.sh gives error.
bash-3.00# ./root.sh
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: xsan001 xsan001-priv xsan001
node 2: xsan002 xsan002-priv xsan002
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/rdsk/c0d0s4
Format of 1 voting devices complete.
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
Failure at final check of Oracle CRS stack.
10
Can you provide some sort of clue what could be done to resolve the above error?Refer to http://www.oracleracsig.org/ Under documents section select OS=Solaris. You will find a document on Oracle RAC on Solaris10 using Vmware.
-
Need Adobe Reader 9.x for Solaris 10 x86
There used to be a link on your web site for the Solaris 10 x86 download for Adobe Reader 9.x products. Could you please send me an updated link or an alternative method of downloading the Solaris intel version of Adobe Reader? Would prefer the link comes directly from Adobe since verification is needed that it is from a trusted source. Thanks!
Hi,
there is no actual release of Acrobat Reader
ftp://ftp.adobe.com/pub/adobe/reader/unix/
later then Acrobat Reader 4 for Solaris x86
ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/4.x/sunx86-ar-405.tar.gz.
All posts that announce Solaris x86 support for release 8 are untrue.
The only working extended Pdf-Editor (comparable to Adobe Acrobat XI)
for Solaris x86 at the moment is PDFStudio Java
http://www.qoppa.com/pdfstudio/buy/
Best regards
Axel Arnold Bangert - Herzogenrath 2013 - Solaris 10 (x86) -
Silly question regarding sol 8 containers and disk sizes
I've got what is probably just about the silliest question, but I can't seem to find an answer whilst searching around for the past couple of hours. Say I have 2 boxen, one is a sol 8 server and the other is a brand new install of sol 10/8. They have the exact same hardware, including disk size. If I want to turn the first box into a solaris 8 container running under the second, how do I reconcile the fact that the disk sizes are the same? The sol 8 box is only using, say, 25-30GB of the 72GB on the disk. Do I have to resize the slice into something smaller to enable it fit into a container on the second server? It would seem that is the case, but I didn't know if there was some magic I was not aware of. I've not done a ufsdump or flash archive before so I don't know if the 'empty' space on the disc will be disregarded, possibly allowing me to squeeze it onto my sol 10 server and allow me to resize it smaller in zfs. This topic isn't touched in all the tutorials I've read, so I assume it's either a completely retarded/braindead concern, or everyone always migrates these boxen onto servers with much more in the way of resources.
Sorry if I offended anyone with my ignorance ; PNo. Solaris8/9 containers make use the "branded zones" technology. But it's still the same thing and there's no "disk image", at least not like you might think of for VMware or Xen.
Now if you want to call a ufsdump or flash archive an "image", then that's fine. But you can see in either case, the free space or minor changes is size are irrelevant. You're just copying files. It's a system image, not a "disk image".
Installer Options :
Option Description
-a filepath Location of archive from which to copy system image.
Full flash archive and cpio, gzip compressed cpio,
bzip compressed cpio, and level 0 ufsdump are
supported. Refer to the gzip man page available in the
SUNWsfman package.--
Darren -
Installation Of Solaris In VMware
Hi,
I have a query.
What is the advantages and disadvantages of running any operating system (for eg: SOLARIS) in VMWARE(virtual machine) running on other Operating System(for eg: Windows XP).I would suggest that you simply lump / and /usr together into at least an 8-10GB space. This assumes that you are installing an entire distribution cluster (SUNWCall or SUNWCXall). I have built some security hardened loads that require < 2GB and I'm sure I could get the footprint smaller if I had to.
I don't recall the size of an entire distribution on x86, but thought it was around 5GB for Solaris 10 for combined root and /usr.
Cheers, -
ZFS Configuration Question - Also posted in Solaris x86
Hello,
I have 2 x 140GB (hw Raid-0 + spare). About 20GB is allocated to Solaris on UFS (standard installation and partitions/slices).
I would like to allocate the 120GB left on the disk drive to ZFS. That space is not unallocated to any file system for now.
I found a lot of documentation of how to create a ZFS Pool on an empty disk drive. The documentation is less clear on how to do it on a drive already use by another FS.
Any help will be appreciated.
MichelDarren,
I just setup another Solaris x86 server tonight to play with. That future production server is in it's own vlan wtih no Internet access for now.
The test server has the same configuration, but less disk space.
Here is the output of prtvtoc
# prtvtoc /dev/dsk/c0t0d0s0
* /dev/dsk/c0t0d0s0 partition map
* Dimensions:
* 512 bytes/sector
* 63 sectors/track
* 255 tracks/cylinder
* 16065 sectors/cylinder
* 2350 cylinders
* 2348 accessible cylinders
* Flags:
* 1: unmountable
* 10: read-only
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 10522575 27198045 37720619 /
1 3 01 16065 8401995 8418059
2 5 00 0 37720620 37720619
7 8 00 8418060 2104515 10522574 /export/home
8 1 01 0 16065 16064
Output of format
selecting c0t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.
/dev/dsk/c0t0d0s0 is currently mounted on /. Please see umount(1M).
Total disk size is 8920 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
====== ====== ============ ===== === ====== ===
1 Active Solaris2 1 2350 2350 26
As you can see, the 1st partition is used at 26%. With fdisk, I can create a 2nd partition. My problem is to get that 2nd partiition availlable to Solaris and create a zpool in that unused space..
Michel -
"raidctl -l c0t0d0" in T1000 shows incorrect disk size
We are using hardware raid1, set up with raidctl command on our T1000. When I issue "raidctl -l c0t0d0" in our T1000 it shows incorrect disk size of 689.9M, instead of 136G. This seems to have started with 12/1/09 Recommended Patch Cluster for Solaris 10. Is anyone else seeing this and/or know of a fix?
Hello
We've been told to install patch 144017-01 although we've yet to perform this to see if it fixes the problem.
After installing mpt patch 141743-02 or later drive capacity is incorrectly reported
SunOS 5.10: mpt.so.1 patch
Status: RELEASED
Patch Id: 144017-01
READ THE TERMS OF THE AGREEMENT ("AGREEMENT") IN THE LEGAL_LICENSE.TXT
FILE CAREFULLY BEFORE USING THIS SOFTWARE. BY USING THE SOFTWARE, YOU
AGREE TO THE TERMS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE
TERMS, PROMPTLY DESTROY THE UNUSED SOFTWARE.
For further information on patching best practices and resources, please
see the Big Admin Patching Center, http://www.sun.com/bigadmin/patches/
Summary: SunOS 5.10: mpt.so.1 patch
Date: Mar/17/2010
Installation Requirements:
NA
Solaris Release: 10
Sun OS Release: 5.10
Unbundled Product:
Unbundled Release:
Xref: This patch available for x86 as patch 144018
Topic:
SunOS 5.10: mpt.so.1 patch
Relevant Architecture: sparc
BugId's fixed with this patch:
6881276
Changes incorporated in this version:
Patches accumulated and obsoleted by this patch:
Patches which conflict with this patch:
Required Patches:
127127-11 137137-09 139555-08 141444-09 (or greater)
Obsoleted by:
Files Included in this Patch:
/usr/lib/raidcfg/mpt.so.1
/usr/lib/raidcfg/sparcv9/mpt.so.1
Problem Description:
6881276 after installing mpt patch 141743-02 or later drive capacity is incorrectly reported
Revision History:
Patch Installation Instructions:
Please refer to the man pages for instructions on using 'patchadd'
and 'patchrm' commands provided with Solaris.
The following example installs a patch to a standalone machine:
example# patchadd /var/spool/patch/123456-07
The following example removes a patch from a standalone system:
example# patchrm 123456-07
For additional examples please see the appropriate man pages. Any
other special or non-generic installation instructions should be
described below as special instructions.
Special Install Instructions:
None.
README -- Last modified date: Wednesday, March 17, 2010 -
Setup Disk Mirroring on Solaris 8
I need to know of how to setup Disk Mirroring on Solaris 8 on my SUN E250/E280
Which manual collection, provide a step by step procedure to do it. Thanks.I assuming you're going to be using Sun disc management software ( DiskSuite) and not something like Veritas volume manager.
There are some Sun infodocs on the sunsolve site ( sunsolve.sun.co.uk is the one I use ) that contain good step by step guides on how to mirror discs using Solstice Disksuite. Type in "disksuite faq" as keywords to search.
Disksuite 4.2.1 comes with Solaris 8 ( this is the recommended version of DiskSuite you use with 8), but you need to make sure it was included as a package to install when the server was originally built). If it hasn't been installed, put the Solaris 8 cd 2 of 2 and do a package add on the following path /cdrom/sol_8_1000_sparc_2/Solaris_8/EA/Products.
Pick disksuite and I generally add all the packages. You'll need to know the product a bit more if you want to pick and choose the components to install.
Once done, you'll need to reboot the server and then begin to configure the discs. To understand the various concepts with disksuite you will need to read the manuals.
I use the command line but there is a GUI tool supplied with the product called metatool to help you mirror your discs.
As a high level overview this is what you need to do:
Create a minimum of 3 state databases ( on a separate disc slice of about 5 megabytes in size, nothing else should use this slice )
The discs you want to mirror should have the same partition table to keep life simple.
I would create 6 databases, 3 on an individual slice.
Then create your mirror devices which represent the various partitions you want to mirror from the primary disk. Then create your metadevices and attach the first set of mirrors to them.
You need to issue a special command called metaroot to get the system to mount the root filesystem metadevice at boot time.
At this stage I would then make a backup of /etc/vfstab and then edit it to mount your metadevices instead of the normal disc devices.
I would then bounce the server to check it all works and the metadevices get mounted correctly.
Create your second set of mirror devices on the secondary disc and add them to the appropriate metadevice ( using metattach )
If the filesystems are very large it takes a few minutes for the disks to sync up, so don't bounce the server until this process has completed. You can run a check on disk synchronisation by doing metastat | grep sync
Finally I would put the output from the command metastat -p into the /etc/lvm/md.tab file at the very end with some appropriate comments.
This can seem a very onerous task at the beginning but once your clear on steps you need to run, the whole procedure is quite straightforware. -
Can' t read disk label, install issues
can' t read disk label, install issues
i am trying to install solaris 8 on a sparc5 (256mb, 4.2gb,110mhz). i initially installed using the installation disk and it seemed successful as i was able to load the rest of the cds. something went wrong though b/c the system is stuck in a rebooting loop after it finished the last cd. so i went searching and found that i could only have a root partition of no bigger than 1gb. since i used the installation disk, i was not given an option to specify slice sizes. so now, i am trying to redo the install starting from the first disk (1 of 2) and skipping the installation disk. when i do a "boot cdrom" with the 1 of 2 disk, i get the cant read disk label or something about short entry and it will not boot. i am using actual Solaris 8 cds and not downloads. what can i do to get it to boot up from the first disk, or fix the partitioning on the disk?I am using the offical Solaris 8 Installation 2/02 for SPARC Platform Edition for Sun Computer Systems February 2002, Revision A
Output from the probe-ide command follows:
device 0 (Primary Master)
ATA Model: ST3160023A
device 1 (Primary Slave)
Removable ATAPI Model: LTN4865
device 2 (Secondary Master)
ATA Model: ST340016A
device 3 (Secondary Slave)
not present
device 0 is the new hard disk that I just installed
device 1 is the CDR drive
device 2 is the original hard disk. I can boot this but now get some magic disk errors or something like that
device 3 is not present
I have all devices set to cable select according to the manual.
Thanks for your help...
Tom
Maybe you are looking for
-
Function module used for ENQUEUE_EIQMEL & DEQUEUE_EIQMEL function
Hi All, It should be highly appreciable if any one could please help. I need the name of the function module used for ENQUEUE_EIQMEL & DEQUEUE_EIQMEL function. waiting for help. Thanks Shaw
-
Explanation about PPOSE (display of sub org unit)
Hi everybody, I am beginner in Sap HCM OM and I don't understand something in transaction ppose. There is Org unit 50271758. This org unit has different sub org units . But depending on the start date and the preview period I set in the setiings, the
-
Hi All, How do we track the Exchange differences / Forex Gain / Loss. In SAP we enter the Exchange rate in Administration Module, at the time of Transaction, if we enter the different rate then SAP is taking the Exchange rate from Administration Mod
-
Model: befw11s4 v4 firmware version 1.52.02 When prompted for initial username (left blank) and password (admin), I can access the router but when I make changes and try to save I am prompted again for the username/password which closes and opens a n
-
Image made on CS5 W7 64 computer won't print with CS5 XP computer – Epson 9880
I have 2 computers with CS5. One is new, with Windows 7 64. The other is XP. My printer is Epson 9880, which is connected to the XP computer. The computers are networked, but I only print from the XP computer. On my XP computer, I have opened a file