Remove duplicated bootlist entries


 
Thread Tools Search this Thread
Operating Systems AIX Remove duplicated bootlist entries
# 1  
Old 01-10-2017
Remove duplicated bootlist entries

Hello.


I have a server with 2 boot disk but in the bootlist there are 5 paths of one disk but no path of the other.
How can I remove paths from one disk to insert paths from the other disk?

Thanks in advance.



Code:
server074:root:/# bootlist -om normal
hdisk0 blv=hd5 pathid=0
hdisk0 blv=hd5 pathid=1
hdisk0 blv=hd5 pathid=2
hdisk0 blv=hd5 pathid=3
hdisk0 blv=hd5 pathid=4

server074:root:/# bootlist -m normal hdisk0 hdisk3

server074:root:/# bootlist -om normal
hdisk0 blv=hd5 pathid=0
hdisk0 blv=hd5 pathid=1
hdisk0 blv=hd5 pathid=2
hdisk0 blv=hd5 pathid=3
hdisk0 blv=hd5 pathid=4


Last edited by rbatte1; 01-10-2017 at 01:05 PM.. Reason: Added CODE tags
# 2  
Old 01-10-2017
Can you show us the output from:-
Code:
lsvg rootvg
lsvg -l rootvg
lsvg -p rootvg

How are your disks provided and connected? It would be good to know how you have generated 5 paths. It's not necessarily a problem, just a little unusual.

If these are SAN/VIO etc provided, then there may not be a need to mirror and assign the bootlist to both (or all)


Kind regards,
Robin
# 3  
Old 01-10-2017
Yes, of course. Here there are ...
Code:
VOLUME GROUP:       rootvg                   VG IDENTIFIER:  00f8138d00004c000000013c6dd59129
VG STATE:           active                   PP SIZE:        512 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      198 (101376 megabytes)
MAX LVs:            256                      FREE PPs:       42 (21504 megabytes)
LVs:                12                       USED PPs:       156 (79872 megabytes)
OPEN LVs:           11                       QUORUM:         1 (Disabled)
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         2                        AUTO ON:        yes
MAX PPs per VG:     32512
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable
PV RESTRICTION:     none                     INFINITE RETRY: no

Code:
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       2       2    closed/syncd  N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       4       8       2    open/syncd    /
hd2                 jfs2       12      24      2    open/syncd    /usr
hd9var              jfs2       12      24      2    open/syncd    /var
hd3                 jfs2       8       16      2    open/syncd    /tmp
hd1                 jfs2       5       10      2    open/syncd    /home
hd10opt             jfs2       4       8       2    open/syncd    /opt
hd11admin           jfs2       1       2       2    open/syncd    /admin
livedump            jfs2       2       4       2    open/syncd    /var/adm/ras/livedump
fslv00              jfs2       24      48      2    open/syncd    /soft
lg_dumplv1          sysdump    8       8       1    open/syncd    N/A

Code:
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            99          25          13..00..00..00..12
hdisk3            active            99          17          00..00..00..00..17

Code:
server074:root:/# lsdev -Cc disk
hdisk0  Available 02-T1-01 HP HSV450 Enterprise Virtual Array
hdisk1  Available 12-T1-01 HP HSV450 Enterprise Virtual Array
hdisk2  Available 12-T1-01 HP HSV450 Enterprise Virtual Array
hdisk3  Available 12-T1-01 HP HSV450 Enterprise Virtual Array



The 5 paths were generated when the rootvg wasn't mirrorred.
We have just mirrored the rootvg, and added the bosboot.

Kind regards.

Last edited by Gabriander; 01-10-2017 at 01:33 PM..
# 4  
Old 01-10-2017
Code:
 
  • bootlist -m normal hdisk0 pathid=0,2
  • bootlist -m normal hdisk0 pathid=0 hdisk0 pathid=2

It is IBM's (?) OpenFirmware limitation, that you can have up to 5 devices in the boot list. Every path is seen as a separate device in OF. Check your paths with lspath command, but in a general case you don't need to many paths to each device. 2 or 4 paths are enough most of times. Remove unnecessary paths with rmpath command.
These 2 Users Gave Thanks to agent.kgb For This Post:
# 5  
Old 01-10-2017
Great !!! Thank you very much

Code:
server074:root:/# bootlist -m normal hdisk0 pathid=0,2 hdisk3

server074:root:/# bootlist -om normal
hdisk0 blv=hd5 pathid=0
hdisk0 blv=hd5 pathid=2
hdisk3 blv=hd5 pathid=0
hdisk3 blv=hd5 pathid=2
hdisk3 blv=hd5 pathid=3

# 6  
Old 01-11-2017
I notice that you have the following in the output of lsvg -l rootvg
Code:
lg_dumplv1          sysdump    8       8       1    open/syncd    N/A

Is this intentional? I have seen both a mirror on the dump device and a secondary dump device allocated on the 'other' disk in rootvg. I'm not sure which one is more sensible, but if hdisk0 failed, you would ungracefully lose your dump device and might have trouble recreating it.


Robin
# 7  
Old 01-11-2017
Actually, I'm not sure why. This is the dump configuration:
Code:
server074:root:/# sysdumpdev -l
primary              /dev/lg_dumplv1
secondary            /dev/sysdumpnull
copy directory       /var/adm/ras
forced copy flag     FALSE
always allow dump    TRUE
dump compression     ON
type of dump         traditional

I have created another LV in the other disk:
Code:
server074:root:/# lspv -l hdisk3 | grep dump
livedump              2       2       01..01..00..00..00    /var/adm/ras/livedump
lg_dumplv1            8       8       08..00..00..00..00    N/A

server074:root:/# lspv -l hdisk0 | grep dump
lg_dumplv2            8       8       08..00..00..00..00    N/A
livedump              2       2       02..00..00..00..00    /var/adm/ras/livedump

server074:root:/# sysdumpdev -Ps /dev/lg_dumplv2
primary              /dev/lg_dumplv1
secondary            /dev/lg_dumplv2
copy directory       /var/adm/ras
forced copy flag     FALSE
always allow dump    TRUE
dump compression     ON
type of dump         traditional


Last edited by Gabriander; 01-11-2017 at 09:23 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remove duplicated records and update last line record counts

Hi Gurus, I need to remove duplicate line in file and update TRAILER (last line) record count. the file is comma delimited, field 2 is key to identify duplicated record. I can use below command to remove duplicated. but don't know how to replace last line 2nd field to new count. awk -F","... (11 Replies)
Discussion started by: green_k
11 Replies

2. Shell Programming and Scripting

How to remove duplicated column in a text file?

Dear all, How can I remove duplicated column in a text file? Input: LG10_PM_map_19_LEnd 1000560 G AA AA AA AA AA GG LG10_PM_map_19_LEnd 1005621 G GG GG GG AA AA GG LG10_PM_map_19_LEnd 1011214 A AA AA AA AA GG GG LG10_PM_map_19_LEnd 1011673 T TT TT TT TT CC CC... (1 Reply)
Discussion started by: huiyee1
1 Replies

3. Shell Programming and Scripting

Merge files and remove duplicated rows

In a folder I'll several times daily receive new files that I want to combine into one big file, without any duplicate rows. The file name in the folder will look like e.q: MissingData_2014-08-25_09-30-18.txt MissingData_2014-08-25_09-30-14.txt MissingData_2014-08-26_09-30-12.txt The content... (9 Replies)
Discussion started by: Bergans
9 Replies

4. Shell Programming and Scripting

How to remove duplicated lines?

Hi, if i have a file like this: Query=1 a a b c c c d Query=2 b b b c c e . . . (7 Replies)
Discussion started by: the_simpsons
7 Replies

5. Shell Programming and Scripting

Remove rows with first 4 fields duplicated in awk

Hi, I am trying to use awk to remove all rows where the first 4 fields are duplicates. e.g. in the following data lines 6-9 would be removed, leaving one copy of the duplicated row (row 5) Borgarhraun FH9822 ol24 FH9822_ol24_m20 ol Deformed c Borgarhraun FH9822 ol24 ... (3 Replies)
Discussion started by: tomahawk
3 Replies

6. Shell Programming and Scripting

Help with remove duplicated content

Input file: hcmv-US25-2-3p hsa-3160-5 hcmv-US33 hsa-47 hcmv-UL70-3p hsa-4508 hcmv-UL70-3p hsa-4486 hcms-US25 hsa-360-5 hcms-US25 hsa-4 hcms-US25 hsa-458 hcms-US25 hsa-44812 . . Desired Output file: hcmv-US25-2-3p hsa-3160-5 hcmv-US33 hsa-47 hcmv-UL70-3p hsa-4508 hsa-4486... (3 Replies)
Discussion started by: perl_beginner
3 Replies

7. UNIX for Dummies Questions & Answers

How to remove duplicated based on longest row & largest value in a column

Hii i have a file with data as shown below. Here i need to remove duplicates of the rows in such a way that it just checks for 2,3,4,5 column for duplicates.When deleting duplicates,retain largest row i.e with many columns with values should be selected.Then it must remove duplicates such that by... (11 Replies)
Discussion started by: reva
11 Replies

8. Shell Programming and Scripting

remove duplicated columns

hi all, i have a file contain multicolumns, this file is sorted by col2 and col3. i want to remove the duplicated columns if the col2 and col3 are the same in another line. example fileA AA BB CC DD CC XX CC DD BB CC ZZ FF DD FF HH HH the output is AA BB CC DD BB CC ZZ FF... (6 Replies)
Discussion started by: kamel.seg
6 Replies

9. Shell Programming and Scripting

remove duplicated lines without sort

Hi Just wondering whether or not I can remove duplicated lines without sort For example, I use the command who, which shows users who are logging on. In some cases, it shows duplicated lines of users who are logging on more than one terminal. Normally, I would do who | cut -d" " -f1 |... (6 Replies)
Discussion started by: lalelle
6 Replies

10. Shell Programming and Scripting

remove duplicated xml record in a file under unix

Hi, If i have a file with xml format, i would like to remove duplicated records and save to a new file. Is it possible...to write script to do it? (8 Replies)
Discussion started by: happyv
8 Replies
Login or Register to Ask a Question