- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Linux image deploy
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 09:29 AM
02-13-2007 09:29 AM
I have a problem deploying a captured linux image on BL25p and 45p servers.
The captured image has this disk layout:
/dev/cciss/c0d0p1 /boot ext3 primary
/dev/cciss/c0d0p2 /home ext3 primary
/dev/cciss/c0d0p3 / ext3 primary
/dev/cciss/c0d0p4 extended
/dev/cciss/c0d0p5
/dev/cciss/c0d0p6 /app ext3 logical
/dev/cciss/c0d0p7 /var ext3 logical
The capture task works fine, but when I try to deploy that image, when CT request me to configure the disk partition layout (task configuration), I can define only primary or extended partitions, not logical ones.
How can I configure the logical partitions and relative mount points ?
If I try to create more than 4 primary partitions the task obviously fails...and also if I try to create more than one extended partition...
Deploy task works only If I capture a linux server configured with 4 or less primary partition... but the problem still exists, because I cannot change customer disk partitioning layout. ;o
Any suggestions ? thanks !!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2007 09:03 AM
02-14-2007 09:03 AM
SolutionI don't see any company name associated... are you running a demo version to check the product out ? or have you purchased Control Tower (v. 1.0 or 1.1) ? or the newest version 1.5 which has a name change to Insight Control Linux Edition ?
best regards,
Robert Crockett
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2007 07:33 PM
02-14-2007 07:33 PM
Re: Linux image deploy
I was working on a customer test (pre production) environment. The product is HP Insight Control Linux 1.5
At the moment it is a trial license in use.
regards,
Davide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2007 03:42 AM
02-15-2007 03:42 AM
Re: Linux image deploy
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2007 10:34 AM
02-20-2007 10:34 AM
Re: Linux image deploy
I will try sending through this forum, but if this doesn't work I just need an email address that can accept zip files. :)
Once you get the file here is what you need to do:
All you need to do is putty into the ICLE system and go to the following folder:
/var/rct/public/provision
You will see a file called 'Partition.js' - I recomend you rename that file and pay attention to permissions and owners.
(screen shot of one of my Control Towers)
controltower:/var/rct/public/provision# ls -al Partition.js
-rw-r--r-- 1 rct rct 5318 Feb 14 17:01 Partition.js
Then unzip the attached file and copy it to that location and verify/modify permissions and owners.
Let me know that this works for you, we have tested it thoroughly.
best regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2007 07:03 PM
02-20-2007 07:03 PM
Re: Linux image deploy
I'll update this topic ASAP.
Regards,
Davide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2007 05:36 PM
03-05-2007 05:36 PM
Re: Linux image deploy
We are facing the same problem and we tried the provided javascript fix, but atleast in our environment it did not solve the problem.
Still, the deploy actually works, ie. CT is able to deploy the image with all data that was included when the image was captured, but the disk layout will not be what it was in the original image.
A workaround 'hack' for creating those logical partitions is to edit the Partition.js -file and find the part
// Handle Extended Partitions
Make a copy of the row after 'else if'. Then modify the copied row by changing the both "extended" strings to "logical". Now you should have also 'logical' selectable in the partition configuration. This is not how this should be fixed but seems to work. Just remember to create an extended partition type with size * after the third primary partition. Then create the rest as 'logical'.
Please note that I have not had the chance to verify this thoroughly, but CT is able to create the defined partitions and boot the system and 'fdisk -l' shows correct partition information after boot. Unfortunately, I do not currently have access to the system we tested this in, so I cannot do any additional testing until tomorrow.
To me it seems that CT is not able to read the partition information from the image info file and it therefore falls back to some default values. It also seems to install it's own version of GRUB configuration during deployment so that possible modifications will be lost. This also needs to be verified still.
We're also using CT 1.5.0 but with a commercial license.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2007 03:03 AM
03-06-2007 03:03 AM
Re: Linux image deploy
If you modify the file I sent in any way I cannot support you, that is not what I intended. :)
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2007 12:01 AM
03-12-2007 12:01 AM
Re: Linux image deploy
Thanks for a quick reply. Indeed, you are correct that the new version of the javascript file works out of the box. Not sure what went wrong the last time we tried. Please note that the file was not modified until we were quite sure it did not work. It was after that when we investigated the file a bit more and tried the modification presented in my previous message.
However, there a still some weird issues with deploying a Linux image.
- Why doesn't CT read the partition information correctly from the info file? It always shows it correctly when starting to create a task profile for deployment, but in the next window it always suggests creating just /boot, / and swap partitions. Nothing else. So now, for each different type of server we need to create the partitions manually when creating a task profile for deploying the particular server. Of course, this only needs to be done once, but still.
- The GRUB configuration file gets modified / overwritten by CT. Is this a feature or a bug?
Br,
/teemu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2007 08:44 AM
03-12-2007 08:44 AM
Re: Linux image deploy
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2007 09:16 PM
03-12-2007 09:16 PM
Re: Linux image deploy
Ok. We'll be waiting for the fixes.
Br,
/teemu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2007 08:26 PM
03-13-2007 08:26 PM
Re: Linux image deploy
We noticed some other weird issues after image deployment, that are related to Disk Partitioning.
Please note the amount of used data before and after image deployment.
Before image deploy
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p2 8256824 162356 7675044 3% /
/dev/cciss/c0d0p1 518000 11576 480112 3% /boot
/dev/cciss/c0d0p7 14449472 32848 13682636 1% /home
/dev/cciss/c0d0p8 4128368 32844 3885816 1% /opt
none 1027636 0 1027636 0% /dev/shm
/dev/cciss/c0d0p9 4128368 32852 3885808 1% /tmp
/dev/cciss/c0d0p6 16513688 971584 14703260 7% /usr
/dev/cciss/c0d0p5 16513688 64620 15610224 1% /var
Same system after image deploy. Image was captured from the same server (right after the above df command was issued) it was deployed to
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p2 8254272 32828 7802148 1% /
/dev/cciss/c0d0p8 4127076 32828 3884604 1% /opt
/dev/cciss/c0d0p9 14452776 32828 13685780 1% /home
/dev/cciss/c0d0p7 16516052 32988 15644072 1% /var
/dev/cciss/c0d0p5 4127076 32828 3884604 1% /tmp
/dev/cciss/c0d0p6 16516052 32828 15644232 1% /usr
/dev/cciss/c0d0p1 505604 8239 471261 2% /boot
The data amount reported by df is incorrect after deploying the image. If I write something to the disk, df reports it ok, but only the newly written data. Once the new file is deleted df again shows that the disks are basicly empty. For example in /usr, there is over 900 Mb of data.
The disk geometry is also different after deployment.
before:
# fdisk -l
Disk /dev/cciss/c0d0: 73.3 GB, 73372631040 bytes
255 heads, 32 sectors/track, 17562 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 129 526304 83 Linux
/dev/cciss/c0d0p2 130 2185 8388480 83 Linux
/dev/cciss/c0d0p3 2186 3213 4194240 82 Linux swap
/dev/cciss/c0d0p4 3214 17562 58543920 f Win95 Ext'd (LBA)
/dev/cciss/c0d0p5 3214 7325 16776944 83 Linux
/dev/cciss/c0d0p6 7326 11437 16776944 83 Linux
/dev/cciss/c0d0p7 11438 15035 14679824 83 Linux
/dev/cciss/c0d0p8 15036 16063 4194224 83 Linux
/dev/cciss/c0d0p9 16064 17091 4194224 83 Linux
after:
# fdisk -l
Disk /dev/cciss/c0d0: 73.3 GB, 73372631040 bytes
255 heads, 63 sectors/track, 8920 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 1 65 522081 83 Linux
/dev/cciss/c0d0p2 66 1109 8385930 83 Linux
/dev/cciss/c0d0p3 1110 1631 4192965 82 Linux swap
/dev/cciss/c0d0p4 1632 8920 58548892+ 5 Extended
/dev/cciss/c0d0p5 1632 2153 4192933+ 83 Linux
/dev/cciss/c0d0p6 2154 4242 16779861 83 Linux
/dev/cciss/c0d0p7 4243 6331 16779861 83 Linux
/dev/cciss/c0d0p8 6332 6853 4192933+ 83 Linux
/dev/cciss/c0d0p9 6854 8681 14683378+ 83 Linux
dmesg after deployment still shows the original information for the disk
cciss: Device 0x3238 has been found at bus 8 dev 8 func 0
blocks= 143305920 block_size= 512
heads= 255, sectors= 32, cylinders= 17562 RAID 1(0+1)
The image deploy task also does not include the following in /etc/fstab
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
OS in use is RHEL3 Update 7
Are these also being investigated on?
Br,
/teemu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2007 03:36 PM
03-15-2007 03:36 PM
Re: Linux image deploy
The [ df ] command often reports open file nodes that are still in use, but that may no longer exist on the file system. It's mostly used for checking "free space". The usage column can vary depending on the situation.
Please try using the [ du -s ] command on the directories that act as file system mount points to get a different perspective. It's mostly used for checking files that occupy file system space. The "-s" option will summarize the results for the parent and all descending directories.
/
/boot
/home
/opt
/..
I'd like to see your before and after results if you don't mind.
The disk geometry changes due to the tools used to partition the disk.
Each Linux OS is installed with a native installer provided by the OS vendor that uses tools packed with that installer.
Since each toolset can vary between OS vendor, version and release, differences can arise in the default treatment of disk geometry.
The Capture and Restore process uses a single toolset common across all OS vendor, versions and releases managed.
Captures are file based and copies the files found on the disk file systems it captures.
Restore repartitions the disk using the common partition toolset and consistently treats disk geometry the same. File systems are created, and the files restored to the new file systems.
We test each combination of supported OS and file systems supported to insure the OS restored will be able to mount and use the new partitions and file systems.
The partition Id type of "- f -" is used by Win95 and similar products to represent an Extended partition, its a place holder for Logical partitions that will be created after the Extended partition type on the disk.
Only four Primary "type" partitions are supported by convention on a single disk.
The Extended "type" is usually used on the fourth parition so that more partitions can be created on the disk.
The "recognition" of Extended Logical partitions is OS dependent and thus the vendor of the OS usually determines the Id number assigned to the Extended partition.
The partition Id type of "- 83 -" is used by Linux to represent an Extended partition type.
The original disk must have been created using a tool that chose to use the Id of "- f -" for the Extended partition type.
Most of the time Linux will honor this and understand it is a valid Extended partition Id, however Win95 OS types generally react badly to Linux partition types given the Id of 5 that are used for Linux file systems.
Pending the results of your before and after using [ du ], we'll be looking into any potential issue.
However the block counts in the fourth column from [ df ] suggest the Restore proceeded as it should.
Disk geometry and position on the disk probably accounts for the slight difference in numbers. This would be expected.
Here's your results slightly rearranged.
Before image deploy
Before
# df
Available Use% Mounted on
_7675044 3% /
__480112 3% /boot
13682636 1% /home
_3885816 1% /opt
_3885808 1% /tmp
14703260 7% /usr
15610224 1% /var
Same system after image deploy. Image was captured from the same server (right after the above df command was issued) it was deployed to
# df
Available Use% Mounted on
_7802148 1% /
__471261 2% /boot
13685780 1% /home
_3884604 1% /opt
_3884604 1% /tmp
15644232 1% /usr
15644072 1% /var
Thank you for your comments, and keen observations.
- JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2007 04:36 PM
03-15-2007 04:36 PM
Re: Linux image deploy
Correction the sentence that read:
The partition Id type of "- 83 -" is used by Linux to represent an Extended partition type.
Should have said:
The partition Id type of "- 5 -" is used by Linux to represent an Extended partition type.
Sorry for the mistake.
- JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2007 09:08 PM
03-15-2007 09:08 PM
Re: Linux image deploy
Thank you for the response. 'du' command shows correct information for each filesystem meaning that for example in "/usr" it shows over 900 Mb before and after image deployment. Probably I should have mentioned that already in the previous post. The point was, that this over 900 Mb of data does not show in 'df' output after image deployment although it is there.
I am aware that 'df' might sometimes report the used space incorrectly, ie. that there's more space in use than there actually is, but I've just never seen it report too little (in use 1% while should be ~ 7%). Gap is quite big to explained only by different HD geometry.
I was not that concerned about the partitions created on the disk, but more of the geometry which is reported differently by 'fdisk' and 'dmesg', but probably this is not something to be concerned about. Just something we noticed. Original disk was created with RedHat installer (kickstart method).
There's also one other thing that caught my eye.
When fsck is run at boot, it displays statistics for each filesystem.
This one is _after_ image deployment:
Dec 1 20:04:37 localhost fsck: /: clean, 22576/1048576 files, 73105/2096482 blocks
Dec 1 20:04:37 localhost fsck: /opt: clean, 11/524288 files, 24671/1048233 blocks
Dec 1 20:04:37 localhost fsck: /home: clean, 12/1836928 files, 65861/3670844 blocks
Dec 1 20:04:37 localhost fsck: /var: clean, 21/2101152 files, 75241/4194965 blocks
Dec 1 20:04:37 localhost fsck: /tmp: clean, 1064/524288 files, 31405/1048233 blocks
Dec 1 20:04:37 localhost fsck: /usr: clean, 11/2101152 files, 74159/4194965 blocks
Dec 1 20:04:37 localhost fsck: /boot: clean, 11/130560 files, 24715/522080 blocks
This also shows incorrect information. For example the "/usr" partition again. fsck shows 11 files, while in reality, there is almost 50000:
# find /usr | wc -l
49874
fsck from boot.log after kickstart install from the same system shows correct information:
Dec 1 21:15:48 localhost fsck: /: clean, 22564/1048576 files, 73495/2097120 blocks
Dec 1 21:15:50 localhost fsck: /boot: clean, 39/65920 files, 4970/131576 blocks
Dec 1 21:15:50 localhost fsck: /home: clean, 15/1835008 files, 65799/3669956 blocks
Dec 1 21:15:50 localhost fsck: /opt: clean, 15/524288 files, 24675/1048556 blocks
Dec 1 21:15:50 localhost fsck: /tmp: clean, 13/524288 files, 24676/1048556 blocks
Dec 1 21:15:50 localhost fsck: /usr: clean, 46401/2097152 files, 308710/4194236 blocks
Dec 1 21:15:50 localhost fsck: /var: clean, 144/2097152 files, 82178/4194236 blocks
So what could cause the difference?
The time in the above lists is incorrect because of current BIOS settings, so don't pay attention to that.
Br,
/teemu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 07:19 PM
03-21-2007 07:19 PM
Re: Linux image deploy
Sorry it took so long to reply.
I'm still learning how to setup my forum notification messages.
Thanks for mentioning the "- du -" command, glad it provides encouraging results.
Going by measured "free space" using "- df -" is somewhat unreliable, other things could be going on in the system that effect its report, it is Inode sensitive and anything can open or close an Inode at any time.
One thing that comes to mind are sparse files, which by nature are mostly full of "hot air". After a restore they would need an index record access to "reinflate" them to their previous size.
I will admit 7% may sound high, but I can only speak from my experience, which is not to use "- df -" to provide an estimated count of files, or disk space in use from inference.
I would suggest you don't use "- df -" for judging the integrity of your files.
One thing that might also be confusing is the "order" the partitions are recreated in.
The Native installer creates its partitions in the order the designers of that OS Vendor, Version, Release needed, due to the order of install operations.
Capture saves the contents and size of the partitions required to restore the system, but does not necessarily put it back in the order the Native installer designers had to create them.
Rather the Deploy process recreates the partitions in the order found in the fstab file of the captured system.
This may have made it hard for you to notice that the before and after results are not line for line the same item unless you rearrange them based on the file system name.
It creates a visual bias that something is further out of alignment than it actually is.
It's hard to reformat your data in a fix width font in this forum but eliminating all but the easiest to interpret columns, here's an attempt
fsck from boot.log after kickstart install
files 1048576 /
files 524288 /opt
files 1835008 /home
files 2097152 /var
files 524288 /tmp
files 2097152 /usr
files 65920 /boot
This one is _after_ image deployment:
files 1048576 /
files 524288 /opt
files 1836928 /home
files 2101152 /var
files 524288 /tmp
files 2101152 /usr
files 130560 /boot
fsck from boot.log after kickstart install
blocks 2097120 /
blocks 1048556 /opt
blocks 3669956 /home
blocks 4194236 /var
blocks 1048556 /tmp
blocks 4194236 /usr
blocks 131576 /boot
This one is _after_ image deployment:
blocks 2096482 /
blocks 1048233 /opt
blocks 3670844 /home
blocks 4194965 /var
blocks 1048233 /tmp
blocks 4194965 /usr
blocks 522080 /boot
e2fsck is a common program, but I'll be the first to admit I am not an expert in its output.
Theorectically is reconstructs the disk by reading each block in the system, reconstructs the inodes and directories and the directory relationships.
The numbers in front of "- / -" slash before the files and blocks columns may refer to the directory inodes or the journaled logs it replayed for each file system per set of files and blocks, but I do not know for sure.
The answer can probably be found in the source code to the e2fsck program developed by Theodore Ts'o
I wouldn't strictly recommend relying on fsck initscript messages for checking the number of files and the file system integrity.
Especially since its output will vary depending on the actual file system type used and author of the fsck extension for that file system type.
I would recommend, if you like, using a "- find -" count as you suggest, and perhaps an "- md5sum -" command on all of the files in the filesystems that are important and "- diff -" the results.
Obviously /var and /tmp will be highly variable and change everytime the system is booted.
And since the most common file system type, and the default in ICLE Kickstarts recommends you to use a journaling file system, Ext3, you can expect the file system count to drift upwards depending on file access patterns and how long the system has been online before capture.
The longer the system is online after kickstart, the more opportunity for user variations in the number of files created, and automated processes to create files or add to them based on logins and cron jobs.
Again thanks for your observations, and great comments.
- JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 07:30 PM
03-21-2007 07:30 PM
Re: Linux image deploy
Thanks for the answers. I guess the conclusion is that the system is ok, though there seems to be a few differences before and after deployment.
As the environment we're building is quite critical, we wanted to make sure that these differences before and after deployment are not something to be concerned about. Especially since with Rapid Deployment Pack things worked differently.
Again, thank you for the responses.
Br,
/teemu