Sponsored Content
Top Forums Shell Programming and Scripting Automating partitioning setup of /dev/sda on /dev/sdc Post 302944723 by RudiC on Thursday 21st of May 2015 01:11:14 PM
Old 05-21-2015
As this is crucial (and possibly dangerous, e.g. disk structures differ), and as it's a one off exercise, I'd do it manually and not by script/automated parsing.
 

9 More Discussions You Might Find Interesting

1. Solaris

URGENT - setup port and dump all output to /dev/null or a file

Please help urgently. I need to setup up some sort of service on a solaris server on a port. I dont need it do anything special, anything that is sent to this port from an external server should be dump to /dev/null or a flat file.. Can you help urgently? (1 Reply)
Discussion started by: frustrated1
1 Replies

2. Solaris

What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help My solaris 8 system has the following /dev/null , /dev/tty and /dev/console All permission are lrwxrwxrwx Can this be change to a non-world write ?? any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies

3. UNIX for Dummies Questions & Answers

Sending alt-n to /dev/pts/1 from process bound to /dev/pts/2

Hello, i am using finch (unix commandline instant messaging client using libgnt) which is running connected to /dev/pts/1 Now I would like to "remote control" the program by sending the key combinations normally typed on the keyboard from a programm in another shell. So I tried:... (0 Replies)
Discussion started by: mentos
0 Replies

4. Slackware

CUPS setup / dev/lp0 perms. ... Slow printing.

Hello, Ive got an HP LaserJet 2100 / parallel interface. I had some troubles getting going due to non-working cups drivers. Updated cups and also used a .ppd.gz file from something HP provided. found the files here... www.linuxprinting.org/show_printer.cgi?recnum=HP-LaserJet_2100 Anyways.... (1 Reply)
Discussion started by: agentrnge
1 Replies

5. Solaris

Lun remove, stuck in /dev/dsk and /dev/rdsk

So, we removed a LUN from the SAN and the system is refusing to remove the references to it in the /dev folder. I've done the following: devfsadm -Cv powermt -q luxadm -e offline <drive path> luxadm probe All those commands failed to remove the path. The drive stills shows up as <drive... (13 Replies)
Discussion started by: DustinT
13 Replies

6. AIX

Difference between /dev/hdisk and /dev/rhdisk

Hi, How can i check that i am using RAW devices for storage in my AIX machine... Also after adding a LUN from storage to a aix host, when i check /dev in the host, i can see both rhdisk and hdisk with same number eg: dcback1(root):/dev>ls -lrt | grep disk12 crw------- 1 root ... (4 Replies)
Discussion started by: jibujacob
4 Replies

7. AIX

Problem in /dev/hd1 and /dev/hd9var

Hello AIXians, I can't boot my AIX, it hangs and stops at the code error: 0518 After searching google, I knew the problem is due to problems in File Systems. So the solution is booting from any bootable media, then run these commands in maintenance mode: #fsck -y /dev/hd4 #fsck -y... (3 Replies)
Discussion started by: Mohannad
3 Replies

8. Red Hat

Changing grub from /dev/sda to /dev/sdb

Hi, Please suggest steps to change grub from /dev/sda to /dev/sdb, (1 Reply)
Discussion started by: manoj.solaris
1 Replies

9. HP-UX

Dev/urandom and dev/random missing in HP-UX

Hi, In our HP-UX B.11.11. I could not find dev/urandom and dev/random Are all pseudo-devices implemented as device drivers, or in need to run /configure some package to install the package to have dev/urandom. Please help (4 Replies)
Discussion started by: rashi
4 Replies
volsetup(8)						      System Manager's Manual						       volsetup(8)

NAME
volsetup, lsmsetup - Initializes Logical Storage Manager (LSM) by creating the rootdg disk group SYNOPSIS
/usr/sbin/volsetup [-c] [-o force] [-n num] [-s] [diskname | partition...] [attribute...] OPTIONS
The following options are recognized: Clears the lock protecting multiple nodes in a cluster from simultaneously running the volsetup com- mand. After clearing the lock, it is taken out on behalf of the initiating node. Specifies the approximate number of disks to be managed by LSM. This option is currently ignored and is only provided for compatibility with existing scripts. Forces re-initialization if LSM has already been initialized. Synchronizes a node with cluster members. DESCRIPTION
The volsetup script is an interactive script that should be run after installing LSM. The diskname or partition parameter specifies the name of at least one disk or partition to be used in creating the rootdg disk group. If no disk or partition name is given on the command line, the volsetup script prompts for this information. If more than one disk name or partition name is given as input, all the disks and partitions are added to the rootdg disk group. The -o force option can be used to remove an existing LSM configuration and reinitialize LSM. The volsetup script starts the vold daemon and one voliod daemon per CPU by default. After volsetup has been run, LSM is fully functional. To configure LSM in a TruCluster Version 5.0 multi-member cluster, run the volsetup command from one of the cluster members and run the volsetup -s on the other cluster members. If additional members are later added to the cluster with the clu_add_member utility, do not run volsetup -s command on the new member. The clu_add_member utility automatically synchronizes LSM on the new node. ATTRIBUTES
The following attributes can be specified to affect the layout strategy used by volsetup: Specifies the length of the public area to create on the disk. This defaults to the size of the disk minus the private area on the disk. Specifies the length of the private area to create on the disk. The default is 4096 sectors. Specifies the number of configuration copies and log copies to be initialized on the disk. The number of configuration copies will be the same as the number of log copies. This defaults to 1. Specifies the length in sectors of each configuration copy. The default values are calculated based on the value of nconfig. Specifies the length in sectors of each log copy. The default values are calculated based on the value of nconfig. Specifies a user-defined comment. ERRORS
You may receive the following messages when using the volsetup command. LSM initialization fails if none of the disks specified can be ini- tialized by LSM. The following message indicates that LSM is initialized on the system. To reinitialize LSM, use the -o force option, which removes previ- ous LSM configuration. A previous LSM configuration exists (err=22). Use the "-o force" option to reinitialize LSM. Stop. The following message indicates that you tried to initialize an LSM disk on a partition or on a disk that is actively in use. The partition could be a mounted UFS or AdvFS filesystem that is initialized as an LSM disk or used as a swap device. special-device or an overlapping partition is open. The following message indicates that you tried to initialize an LSM disk on a partition that is not currently in active use, but is marked for use in the disk label's partition map. For example, the partition may be part of a UFS filesystem (4.2BSD) or an AdvFS domain. spe- cial-device is marked in use for fstype in the disklabel. If you continue with the operation you can possibly destroy existing data CON- TINUE? [y/n] If you know that the partition you specified to volsetup does not contain any data, you can choose to override the warning. In this case, the fstype in the disk label is modified to an LSM fstype such as LSMsimp, LSMpubl or LSMpriv. The exact fstype depends on whether a disk or a partition is given as an argument to voldisksetup. Note that you can use the command disklabel -s to set the fstype in the disk label to unused for partitions that do not contain any valid data. See disklabel(8) for more information. The following message indicates that the partition you specified is not marked for use, but other, overlapping partitions on the disk are marked for use. Partition(s) which overlap special-device are marked in use. If you continue with the operation you can possibly destroy existing data. CONTINUE? [y/n] If you override this warning, the fstype in the disk's label is modified. The partition you specified to volsetup will be marked as in use by LSM and all overlapping partitions will be marked UNUSED. The following examples illustrate these messages: Initializing an LSM disk on a partition that is open and actively in use: # /usr/sbin/volsetup dsk11c dsk11c or an overlapping partition is open. Initializing an LSM sliced disk on a disk which has partition g marked for use by UFS (4.2BSD): # /usr/sbin/volsetup dsk11 /dev/rdisk/dsk11g is marked in use for 4.2BSD in the disklabel. If you continue with the operation you can possibly destroy exist- ing data. CONTINUE? [y/n] Partition g of disk dsk11 is marked for use by UFS (4.2BSD). If UFS is not actively using this partition and the partition does not contain any data, you may want to override this warning, by answering y. In this case, partition g will be marked as LSMpubl and partition h will be marked as LSMpriv in the disk label. Initializing an LSM simple disk on a partition whose overlapping parti- tions are marked for use: # /usr/sbin/volsetup dsk11c Partition(s) which overlap /dev/rdisk/dsk11c are marked in use. If you continue with the operation you can possibly destroy exist- ing data. CONTINUE? [y/n] Partition c, which is being initialized into LSM, is not currently in use, but other partition(s) which overlap with partition c are marked in use in the disk label. If you answer y, partition c on disk dsk11 will be marked LSMsimp in the disk label and all parti- tions that overlap partition c will be marked UNUSED. Initializing an LSM disk on a disk that has no disk label: # /usr/sbin/volsetup dsk11 The disklabel for dsk11 does not exist or is corrupted. Quitting... See disklabel(8) for information on installing a disk label on a disk. EXAMPLES
The following is an example of volsetup usage : # /usr/sbin/volsetup dsk3 dsk8h This will add disk dsk3 and partition dsk8h to the rootdg disk group. SEE ALSO
disklabel(8), volintro(8), vold(8), voliod(8) volsetup(8)
All times are GMT -4. The time now is 01:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy