Solaris 10 virtual disk (ramdisk) create for sun4v (T-2000 simulator) architecture


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 virtual disk (ramdisk) create for sun4v (T-2000 simulator) architecture
# 1  
Old 08-27-2014
Wrench Solaris 10 virtual disk (ramdisk) create for sun4v (T-2000 simulator) architecture

have been trying to create a 2 GB ramdisk (virtual) to run on my T-2000 simulator (Legion) which has sun4v architecture. I have a SPARC workstation which runs on sun4u architecture with Solaris 10.

I have created a ramdisk image using dd command, newfs, then used ufsrestore to restore the filesystem taken from the original virtual disk (disk.s10hw2 - sun4v virtual disk that comes with the simulator - 512 MB) and installed bootblk on the new ramdisk (used the sun4v bootblk). But when I try to boot this newly created ramdisk (2GB), it starts loading smf services and then gives fatal error saying "fmd" service daemon error and goes into some sort of maintenance mode or would just freeze.

The reason I need this bigger disk is, I need to install the SUNWpool package which is not available in the original ramdisk (disk.s10hw2). I am able to load the newly created ramdisk on Legion on slice 3 but when I try to add pkg (/export/var/spool/pkg SUNWpool), it complains:
"Cannont find required execuatble /usr/bin/7za"

can someone guide/point me step by step to create a bigger ramdisk with all these packages. I am just stuck and trying different mix and match, still no luck..

I would really appreciate your help.
# 2  
Old 08-28-2014
Hi,

If you have the ramdiskadm utility, then all you should have to do is;
  • Create the Ramdisk with :- ramdiskadm -a "name" 2g
  • Then create the filesystem using newfs.
  • Then set the requred boot block
  • Finally mount the file system

I would show an example if I could but due to changes here, all my solaris installs are virtual and very small and creating a ramdisk would probably impact on performance also I have a change control board to contend with.

Give the above a try and let me know how you get on.

Dave
# 3  
Old 08-28-2014
Hello Dave,
when I tried doing ramdiskadm, I get error message of Resource temporarily unavailable
I have generally followed this procedure to create a new ramdisk (Cloned from the sun4u architecture):


Create backup of the root folder "/" (sun4u):
Code:
# ufsdump 0cvf /dev/rmt/0 /

This backup is almost 8GB.

Created an empty file of 8GB size:
Code:
# dd if=/dev/zero of=new.img bs =1024 count=8388608

Used the new.img as a block device
Code:
# lofiadm -a new.img /dev/lofi/1

Created a UFS on top of the new.img file
Code:
# newfs /dev/lofi/1

Restored the initial filesystem using ufsrestore
Code:
# ufsrestore rvf /dev/rmt/0

Made the ram disk image bootable
Code:
# /usr/sbin/installboot /mntdir/usr/platform/sun4v/lib/fs/ufs/bootblk /dev/rlofi/1

Unmounted the image
Code:
# cd /
# umount /mntdir

Modified 1up.conf file in legion to the following:
Code:
  device "memory" 0x1f80000000 +8192M {  // Increase the memory size for the new disk
  virtual_disk;
  load s0 shared "disk1.big";  // replace the disk with the new one you created and use shared instead of rom
  }

Booted on Legion (sun4v architecture) using boot -v command.

Problem is, it starts loading smf services and after loading all of them (89/89) it gets error message that fmd service error and a bunch of error codes with it. eventually gets into maintenance mode.

I need to run Solaris Resource Pool Management (pooladm, poolcfg etc) which uses SUNWpool package. The original ramdisk is too small and does not have this package installed. Even when I tried installing the package on the original ramdisk by putting SUNWpool package at the /var/spool/pkg, it installed successfully but unable to turn on the service daemon (poold) by saying
Code:
pooladm: couldn't open pools state file: No such file or directory


I am not completely sure what am I doing wrong in the procedure. Smilie

Last edited by rbatte1; 08-28-2014 at 01:44 PM.. Reason: Add CODE & ICODE tags and set to confused face rather than textual sad face
# 4  
Old 08-29-2014
Hi,

I'm getting the resource issue as well, unfortunately I don't really have time to investigate at the moment.

However there may be a much simpler way of doing this, as you are using ufs on these systems - check out the following if you have time and a good backupSmilie

Change the config of the existing ramdisk in the legion config to the size that you reqire, I assume that it will still show up as a 2Gb drive as there will be additional parameters that have to be configured to make the drive active.

Then it may be possible to use the 'growfs' command to expand into the allocated space, you may want to try that on the copy made using "dd".

Regards

Dave
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host

Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12). I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box... (4 Replies)
Discussion started by: Matt_VB
4 Replies

2. Solaris

Create a boot disk mirror on Solaris 10 x86

I’m setting up a boot disk mirror on Solaris 10 x86. I’m used to doing it on SPARC, where you can copy the partition table using fmthard. My x86 boot disk has 2 primary partitions, a Solaris one and a diagnostic one. Is there a way to copy those 2 primary partitions to the second disk without... (6 Replies)
Discussion started by: TKD
6 Replies

3. Solaris

How to create virtual disks in solaris

Hi, I have installed oracle 10g release 2 on solaris 10 Zone. I want to configure ASM in local Zone using virtual disks in place of real disks. I have configured ASM using virtual disks in place real disk in Solaris 10 Global zone. How i can do in local Zone Kindly guid me with proper... (1 Reply)
Discussion started by: malikshahid85
1 Replies

4. Solaris

create Virtual NIC in Solaris 10

Hi All, does any body know how to create Virtual NIC in Solaris 10 if any one have good article or reference kindly provide me i try to Google but i didn't find good one (7 Replies)
Discussion started by: jamisux
7 Replies

5. Solaris

How to create mirror disk in solaris machine?

hi, I'm newbie in Solaris 10. can someone explain me the steps of how to create mirror disk in Solaris machine. thanks in advance (5 Replies)
Discussion started by: Wong_Cilacap
5 Replies

6. Solaris

Solaris sun4v - how do you determine physical RAM?

I have a Sun T5120, and I want to programmatically determine how much RAM it has. # uname -a SunOS myhost 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5120 The box has 64Gb; I tried prtdiag and prtconf, but they give me bogus info prtconf gives me: # prtconf |grep -i... (12 Replies)
Discussion started by: thomn8r
12 Replies

7. Shell Programming and Scripting

Virtual disk to create and partition

I have to do this exercise: Create a virtual disk Partition this disk Create File system Mount File System I'm using Minix (which runs by Qemu as guest machine) on Linux (Host) Is there anybody who knows how to solve first three point? :confused: Thanks (4 Replies)
Discussion started by: Guccio
4 Replies

8. Solaris

How to create new partitions in solaris,from the raw disk?

Hi all, I would like to know how to make new partitions.... I currently have allocated 60G for various slices (I have totally used 4 out of 7 available slices... I am running only solaris on my box. My plan is to have entire disk dedicated to solaris and run other OS from within... (19 Replies)
Discussion started by: wrapster
19 Replies

9. Shell Programming and Scripting

how to create a ramdisk

Hi all, I wanted to make a ramdisk for a opensolaris distro. I have very little idea of how to create it? can anyone pls help me out? Is there any tutorial on creating it on the net??? Also can i make changes to the actual os itself by changing the scripts involved in ramdisk then use it to... (1 Reply)
Discussion started by: wrapster
1 Replies

10. Solaris

Clone disk for Sun Blade 2000

Hai ......... my name Rio, I want to clone my harddisk at Sun Balade 2000 server with Solaris 8 OS, my question is : a. what kind method for making backup or clonning disk ? b. what method more easier , quick but still reliable ? c. how to proceed it ? Thanks (1 Reply)
Discussion started by: rioria
1 Replies
Login or Register to Ask a Question